Closed simonw closed 4 years ago
Ideally it would only be injected on pages that have columns containing GeoJSON - but that's not currently possible since the plugin hooks make the names of the columns available as columns
but don't let you inspect the individual row data.
The JavaScript could selectively load the Leaflet.js code though.
Easiest solution: see if columns
was passed (which means this page will be rendering a table).
The JavaScript should only be injected on pages that are displaying a table. It currently gets injected everywhere including the Datasette instance index.html homepage.