This is an example dataset that demonstrates how to package up GeoJSON data and display it on the map. We are using GeoJSON data for United Kingdom.
We assume that you are familiar with what datapackage.json is and its specifications.
To display your GeoJSON data on the map you should define path to your data inside resources and set format attribute to geojson
. See example datapackage.json:
{
"name": "geojson-tutorial",
"title": "GeoJSON Tutorial",
"version": "0.1.0",
"resources": [
{
"name": "example",
"path": "data/example.geojson",
"format": "geojson",
"mediatype": "application/json"
}
]
}
Note: We are currently not supporting the TopoJSON format. You can use "Vega Graph Spec" and display you TopoJSON data using Vega specification. See our example dataset