simonw / datasette-leaflet-geojson

Datasette plugin that replaces any GeoJSON column values with a Leaflet map.
20 stars 8 forks source link

GeoJSON Doesn't Render? #2

Closed psychemedia closed 4 years ago

psychemedia commented 6 years ago

Does the plugin need enabling somewhere in order to use it?

I'm trying to render a shapefile column in a SpatiaLite table using a query of the form:

SELECT name, AsGeoJSON(wgs84) FROM adminboundaries LIMIT 3

but all I get is the text output?

I tried a local install:

pip install --upgrade datasette
pip install --upgrade datasette-leaflet-geojson

datasette -p 8003 adminboundaries.db  --load-extension=/usr/local/lib/mod_spatialite.dylib

and a Docker install:

docker run datasetteproject/datasette pip install datasette-leaflet-geojson

docker commit $(docker ps -lq) psychemedia/geodatasette

docker run -d -p 8002:8001 -v `pwd`:/mnt psychemedia/geodatasette \
    datasette -p 8001 -h 0.0.0.0 /mnt/adminboundaries.db  --load-extension=/usr/local/lib/mod_spatialite.so

and got the same result in each case (OS/X, Chrome)?

simonw commented 4 years ago

I'm closing this as the codebase has changed quite a bit since this was filed.