url-map
url-map copied to clipboard
Ability to set a map style from a parameter?
It would be great to be able to select a map style from a given URL parameter.
Maybe from https://openmaptiles.org/styles/ ?
Styles look to be defined by a JSON configuration file: https://github.com/openmaptiles/maptiler-basic-gl-style/blob/master/style.json
There is a list of (free) tile hosting companies here: https://switch2osm.org/providers/
And here is an interactive demo: http://leaflet-extras.github.io/leaflet-providers/preview/
This is a really good idea.
Could make these three lines customizable by URL parameters:
https://github.com/simonw/url-map/blob/a13d9334d9978585a93064df21ae0a0e86fc8541/index.html#L30-L32