url-map icon indicating copy to clipboard operation
url-map copied to clipboard

Ability to set a map style from a parameter?

Open davidbgk opened this issue 3 years ago • 2 comments

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/

davidbgk avatar Jun 13 '22 02:06 davidbgk

This is a really good idea.

simonw avatar Jun 16 '22 04:06 simonw

Could make these three lines customizable by URL parameters:

https://github.com/simonw/url-map/blob/a13d9334d9978585a93064df21ae0a0e86fc8541/index.html#L30-L32

simonw avatar Jun 16 '22 04:06 simonw