ENACIT4Research tile server using Martin.
Setup environment variables
Build images and start services
make run
make stop
When running locally:
curl http://localhost:3000/catalog | jq
Or on the deployed instance:
curl https://enacit4r-tiles.epfl.ch/catalog | jq
Martin does not automatically refresh its catalog, then after new layers have been added to the database, restart the Martin's service:
make refresh-catalog
Visit enacit4r-tiles.epfl.ch/catalog to find your layer IDs.
Declare one source per table of geometries:
"sources": {
"landuse_abiotic": {
"type": "vector",
"url": "https://enacit4r-tiles.epfl.ch/LandUse_Sg_Sel_2020_abiotic"
},
"landuse_biotic": {
"type": "vector",
"url": "https://enacit4r-tiles.epfl.ch/LandUse_Sg_Sel_2020_biotic"
}
}
Or use composite sources (note: use composite sources with caution as it affects processing performance):
"sources": {
"landuse": {
"type": "vector",
"url": "https://enacit4r-tiles.epfl.ch/LandUse_Sg_Sel_2020_abiotic,LandUse_Sg_Sel_2020_biotic"
}
}
Both source
and source-layer
must be specified, for instance:
"layers": [
{
"id": "landuse_abiotic",
"source": "landuse",
"source-layer": "LandUse_Sg_Sel_2020_abiotic",
...
},
{
"id": "landuse_biotic",
"source": "landuse",
"source-layer": "LandUse_Sg_Sel_2020_biotic",
...
}
]