osm-fr / osmose-frontend

Part of osmose that shows results on the website http://osmose.openstreetmap.fr
GNU General Public License v3.0
41 stars 38 forks source link

Use dynamic list of background layers #347

Open frodrigo opened 3 years ago

frodrigo commented 3 years ago

Same as https://osminedit.pavie.info/

@PanierAvide there is a component available for the dynamic list of background layers used in OsminEdit ? (Note Osmose VueJS but OsminEdit React)

PanierAvide commented 3 years ago

As far as I know, there is no ready-to-use component for handling this. I use mainly https://github.com/osmlab/editor-layer-index plus a bit of code to get list of imagery available at some coordinates https://framagit.org/PanierAvide/osminedit/-/blob/master/src/ctrl/ImageryManager.js#L49

And react component for display is here https://framagit.org/PanierAvide/osminedit/-/blob/master/src/view/panes/Imagery.js