Possibility to use more that one custom layer on ID editor
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?

Originally posted by @bagage in https://github.com/openstreetmap/iD/issues/2095#issuecomment-281755531
@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:
- You have multiple layers in the custom background section
- you can prefix the layer with '#' to not select it
- 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.
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 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
Thanks @Asif-Sheriff , this is great, thanks a lot for your help !!
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 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 I see.. admittedly there are issues with my previous implementation as you pointed out appreciate your input. working on a better fix for this
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...
This is indeed a much needed feature.
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 !
This is indeed a much needed feature.
+1
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
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.

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!!
I'm interested! You can contact me via the OpenStreetMap messaging system. Here is my profile: https://www.openstreetmap.org/user/Sylvain%20M
Hello Sylvain, thanks for your fast reply. I've sent a message with the link to download from my OSM profile. Let me know !
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.
Ah, it uses the # hack instead of actually supporting multiple custom layers: https://github.com/openstreetmap/iD/pull/10067
@dp7x I am interested
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.
@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.
Or someone who knows how to make browser extensions could modify that one to do this?
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.