datasette-geojson-map
datasette-geojson-map copied to clipboard
Render a map for any query with a geometry column
Probably also switch to Poetry. Need to get a better handle on this.
Docs: https://docs.datasette.io/en/1.0a8/javascript_plugins.html#javascript-plugins
I don't know why I'm getting broken marker images. For some reason they point to mapbox. Which is weird, because I don't see mapbox in the code. The file it's...
``` Unfortunately, simplestyle isn't working for me. ``` ``` I'm using a similar structure as the boston example. ``` ``` The default map does display: ``` Do you have any...
`https://stamen-tiles-{s}.a.ssl.fastly.net/terrain/{z}/{x}/{y}.{ext}` is no longer available. There is another deprecated url that puts up a comment rendering the map useless. (that other URL was: "https://tiles.stadiamaps.com/tiles/stamen_terrain/{z}/{x}/{y}{r}.{ext}") and I planned a little pull...
In the documentation. The link displayed in the example is wrong: `wget -O neighborhoods.geojson https://opendata.arcgis.com/datasets/3525b0ee6e6b427f9aab5d0a1d0a1a28_0`
Maybe with this: https://github.com/Leaflet/Leaflet.VectorGrid
This looks very promising: https://protomaps.com/blog/serverless-maps-now-open-source Leaflet integration: https://protomaps.com/docs/frontends/leaflet
Lots of options here: https://leafletjs.com/reference.html#map Need to decide what makes sense to configure.
This import was probably a bad idea: https://github.com/eyeseast/datasette-geojson-map/blob/main/datasette_geojson_map/__init__.py#L6 That ended up breaking with PR that changed how Leaflet URLs get generated: https://github.com/simonw/datasette-leaflet/pull/9. I could run the plugin hook inside _this...