You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently an OpenStreetMap layer is used as base map, but not everyone needs it as the background for visualisation. For some cases the coordinate reference system (CRS) isn't available (corrupted, missing, or the GIS data is demo files with no link to the real world), making it impossible to use a base map.
Describe the solution you'd like
In MapModule add an additional parameter to turn on/off basemap, e.g.,
map_element=MapModule(..., basemap=True, ...)
Additional context
Leaflet has many basemap providers apart from OpenStreetMap. It would be nice to have a systematic way to integrate more basemaps. Perhaps this can be raised as a separate feature request.
Then the basemap parameter can be either boolean (True/False) or string (name of the basemap provider).
What's the problem this feature will solve?
Currently an OpenStreetMap layer is used as base map, but not everyone needs it as the background for visualisation. For some cases the coordinate reference system (CRS) isn't available (corrupted, missing, or the GIS data is demo files with no link to the real world), making it impossible to use a base map.
Describe the solution you'd like
In
MapModule
add an additional parameter to turn on/off basemap, e.g.,Additional context
Leaflet has many basemap providers apart from OpenStreetMap. It would be nice to have a systematic way to integrate more basemaps. Perhaps this can be raised as a separate feature request.
Then the
basemap
parameter can be either boolean (True/False) or string (name of the basemap provider).Third-party libraries that might be useful: leaflet-providers (javascript), xyzservices (python)
Similar function in the lets-plot library: Configuring Basemap Tiles for Interactive Maps
The text was updated successfully, but these errors were encountered: