iD icon indicating copy to clipboard operation
iD copied to clipboard

Possibility to use more that one custom layer on ID editor

Open dp7x opened this issue 2 years ago • 18 comments

Hello I wanted to propose a new functionality that would be very useful for me when mapping, and I found this old post with my same idea. Are there any news about this ? It's not fundemental for me to save the custom layers in user's profile: it would be enough to me to have 2 or 3 custom layers options, to set up each time I log in pasting the URL. Then, during the mapping work, it woule let me to switch very fast from a layer to another. Thanks !

        More generally, it would be convenient if we could add as many custom layers as we wish: in France there are at least 3 rendering that might be useful at the same time (IGN aerial photos, cf #3420, Strava heatmap and [BANO](http://tile.openstreetmap.fr/~cquest/leaflet/bano.html)). 

It would mean a bit of UI reworking, but maybe something like that?

capture d ecran de 2017-02-22 19-07-22

Originally posted by @bagage in https://github.com/openstreetmap/iD/issues/2095#issuecomment-281755531

dp7x avatar Dec 31 '23 16:12 dp7x

@dp7x Hey I have been working on this and have come up with a solution. Well its more of a band aid fix tbh. But the way it works is:

  1. You have multiple layers in the custom background section
  2. you can prefix the layer with '#' to not select it
  3. if a layer does not have the '#' prefix then it is selected

Here I have demonstrated how it works Screencast from 15-01-24 05:15:31 PM IST.webm

This way editors can quickly switch between layers rather than having to copy paste manually every time. Please lmk if you liked this implementation or if you have any suggestions.

Asif-Sheriff avatar Jan 15 '24 11:01 Asif-Sheriff

Hello @Asif-Sheriff This is a very good solution in my opinion, it is perfect for my needs. Maybe tomorrow a radio-button could be implemented to automatically activate/deactivate the # prefix, but really, your idea is already a very good solution. Please let me know when it can be ready to use !

Thank you very much !!!!!!

dp7x avatar Jan 15 '24 15:01 dp7x

@dp7x I have created a PR now it has to be reviewed by an admin if they approve the changes the PR gets merged and the feature is added

Asif-Sheriff avatar Jan 16 '24 16:01 Asif-Sheriff

Thanks @Asif-Sheriff , this is great, thanks a lot for your help !!

dp7x avatar Jan 16 '24 18:01 dp7x

The proposed solution was not accepted and I had to close the PR :( But dw i'm still working on this and hopefully I'll come up with a more robust solution like the one suggested in the picture above.

Asif-Sheriff avatar Jan 17 '24 04:01 Asif-Sheriff

@Asif-Sheriff I provided an/my opinion. I did not reject anything nor do I have a role in this project to do so. - I am in favor of a more robust solution though.

tordans avatar Jan 17 '24 05:01 tordans

@tordans I see.. admittedly there are issues with my previous implementation as you pointed out appreciate your input. working on a better fix for this

Asif-Sheriff avatar Jan 17 '24 06:01 Asif-Sheriff

At least two layers of custom data will be great, to not be jumping from one to other. Make it guys, please.... it's much needed...

jjiglesiasg avatar Jan 23 '24 07:01 jjiglesiasg

This is indeed a much needed feature.

Nekzuris avatar Feb 16 '24 17:02 Nekzuris

Hello guys, any news ? If no better solution is found, I think that @Asif-Sheriff proposal could be a good starting point to solve this issue... please !

dp7x avatar Feb 19 '24 16:02 dp7x

This is indeed a much needed feature.

+1

sylvain-m avatar Feb 21 '24 10:02 sylvain-m

While waiting for an implementation I found this extension that allows you to use Strava without the custom layer : https://chromewebstore.google.com/detail/id-strava-heatmap/eglbcifjafncknmpmnelckombmgddlco

Nekzuris avatar Mar 24 '24 17:03 Nekzuris

Hello guys. Since there haven't been any updates on this topic, I decided to develop a simple plugin to address this need while waiting for a definitive solution to be integrated into the standard version. The following video demonstrates how it works. Watch the video

Anyone who would like to help me test it, please contact me so we can ensure everything is in order before sharing it. Thank you!!

dp7x avatar Sep 26 '24 14:09 dp7x

I'm interested! You can contact me via the OpenStreetMap messaging system. Here is my profile: https://www.openstreetmap.org/user/Sylvain%20M

sylvain-m avatar Sep 26 '24 15:09 sylvain-m

Hello Sylvain, thanks for your fast reply. I've sent a message with the link to download from my OSM profile. Let me know !

dp7x avatar Sep 26 '24 17:09 dp7x

The proposed solution was not accepted and I had to close the PR :( But dw i'm still working on this and hopefully I'll come up with a more robust solution like the one suggested in the picture above.

Why was the PR rejected? Can we modify it to get it accepted? Switching back and forth between Strava Heatmap and USGS multidirectional wastes a lot of time, and the automatic tools for Strava Heatmap would overwrite any #-based hack.

endolith avatar Oct 13 '24 14:10 endolith

Ah, it uses the # hack instead of actually supporting multiple custom layers: https://github.com/openstreetmap/iD/pull/10067

endolith avatar Oct 13 '24 14:10 endolith

@dp7x I am interested

endolith avatar Oct 13 '24 14:10 endolith

In general, I agree that this would be a useful feature, and the proposed solution in the top post looks like a decent approach. What's needed for that is a change in the UI to add the custom layers a name, and a mechanism to persist the layers in either local storage or on the OSM user account.

tyrasd avatar Apr 29 '25 08:04 tyrasd

@julcnx as the creator of https://github.com/julcnx/id-strava-heatmap-extension would you know how to make a browser extension that adds more custom layers? Your Strava integration is very good.

Image

Or someone who knows how to make browser extensions could modify that one to do this?

endolith avatar Aug 27 '25 20:08 endolith

Hello @endolith , I've already deployed an extension, you can find it here: https://github.com/dp7x/iD-multilayer and here, already packed: https://chromewebstore.google.com/detail/osm-id-custom-layer-selec/fpdlhefglgiccjhljnpbebieaehocmpc Sorry for not updating this thread.

dp7x avatar Aug 28 '25 07:08 dp7x