simonw / datasette-cluster-map

Datasette plugin that shows a map for any data with latitude/longitude columns
Apache License 2.0
88 stars 16 forks source link

Allow latitude/longitude columns to be configured #3

Closed simonw closed 5 years ago

simonw commented 5 years ago

Plugins can now have configuration options. The plugin configuration documentation actually uses an imaginary version of datesette-cluster-map as an example!

https://datasette.readthedocs.io/en/latest/plugins.html#plugin-configuration

{
    "databases: {
        "sf-trees": {
            "tables": {
                "Street_Tree_List": {
                    "plugins": {
                        "datasette-cluster-map": {
                            "latitude_column": "lat",
                            "longitude_column": "lng"
                        }
                    }
                }
            }
        }
    }
}

This should become a real feature.