Closed mfa closed 1 year ago
I wanted to use statiamaps in Datasette but in this plugin the tile_layer is set in the js-file. This change adds TILE_LAYER and TILE_LAYER_OPTIONS the same way as in https://github.com/simonw/datasette-cluster-map.
example usage with stadiamaps in metadata.yml:
--- plugins: datasette-leaflet-geojson: tile_layer: "https://tiles.stadiamaps.com/tiles/osm_bright/{z}/{x}/{y}{r}.png?api_key=YOUR_API_KEY" tile_layer_options: attribution: '© <a href="https://stadiamaps.com/">Stadia Maps</a>, © <a href="https://openmaptiles.org/">OpenMapTiles</a> © <a href="https://openstreetmap.org">OpenStreetMap</a> contributors' maxZoom: 20
duplicate of #18 about a year prior. sorry for the noise.
I wanted to use statiamaps in Datasette but in this plugin the tile_layer is set in the js-file. This change adds TILE_LAYER and TILE_LAYER_OPTIONS the same way as in https://github.com/simonw/datasette-cluster-map.
example usage with stadiamaps in metadata.yml: