REST API

GET [root]/sources/[key]

This endpoint returns the definition of a single layer-source based on a key. This definition can be of a number of different types e.g. vector layer sources or tiled raster layer sources.

Response Type

application/json

Example URL

ROOTURL/mz/sources/EUROPECITIES_SHP

https://mapzania.com/mz/sources/EUROPECITIES_SHP

Parameters

Name Required Description
key Yes The key of the layer-source.

Example Results

{
  "attribution": null,
  "key": "EUROPECITIES_SHP",
  "name": null,
  "srid": "LOCAL_SHP_1",
  "idFieldName": null,
  "geometryFieldName": null,
  "geometryType": 1,
  "sourceName": "EuropeCities",
  "filter": null,
  "fields": [
    {
      "name": "NAME",
      "type": "String"
    },
    {
      "name": "POP_MAX",
      "type": "Int32"
    },
    {
      "name": "TIMEZONE",
      "type": "String"
    }
  ]
}