datasette-geojson-map icon indicating copy to clipboard operation
datasette-geojson-map copied to clipboard

Render a map for any query with a geometry column

Results 19 datasette-geojson-map issues
Sort by recently updated
recently updated
newest added

Right now, I run a query and the map fits the bounds of the returned features. But, if I have a bounding box, I could go the other way and...

If I want to use Mapbox tiles (and probably others) I need to pass an API key with each request. Is there a way to keep this out of version...

This isn't super useful: Nor is a popup with 40 rows that's too tall for the map viewport.

Right now, a map will fit bounds of visible features on load. But in a view [like this](https://nicar22-seismic-datasette.fly.dev/quakes/countries), I might want to direct your attention without changing the actual query....

This would involve setting the [pointToLayer](https://leafletjs.com/SlavaUkraini/reference.html#geojson-pointtolayer) option. It would also be an extension of simple-style-spec, so again, writing my own version of that.

This probably means rolling my own simple-style-spec implementation, but I'm fine with that.

Could I add a view that generates a map on its own page? This would make maps embeddable direct from datasette. Not sure if that's really what I want to...

Height is set to 400 pixels in CSS here: https://github.com/eyeseast/datasette-geojson-map/blob/main/datasette_geojson_map/static/map.css#L2 Making this configurable would require an inline style, but I think that's fine.

The current configuration setup assumes one tile layer: ```yml datasette-geojson-map: tile_layer: https://stamen-tiles-{s}.a.ssl.fastly.net/terrain/{z}/{x}/{y}.{ext} tile_layer_options: attribution: >- Map tiles by Stamen Design, under CC BY 3.0. Data by OpenStreetMap, under ODbL. subdomains:...