REST API

GET [root]/sources

This endpoint returns the list of layer-source definitions that have been configured on the the server. These definitions can be of a number of different types e.g. vector layer sources or tiled raster layer sources.

Response Type

application/json

Example URL

http://devzone.sites.mapzania.com/mz/sources

Parameters

No Parameters.

Example Results

[
  {
    "url": "http://a.tile.openstreetmap.org/{z}/{x}/{y}.png",
    "key": "OSM_TILES",
    "type": "TiledRaster",
    "attribution": "<a href='https://www.openstreetmap.org/copyright'>© OpenStreetMap</a> contributors"
  },
  {
    "geometryType": "1",
    "srid": "LOCAL_SHP_1",
    "key": "EUROPECITIES_SHP",
    "type": "Vector",
    "attribution": null
  },
  {
    "geometryType": "1",
    "srid": "LOCAL_SHP_2",
    "key": "LONDONPOI_SHP",
    "type": "Vector",
    "attribution": null
  },
  {
    "geometryType": "3",
    "srid": "LOCAL_SHP_2",
    "key": "LONDONWARD_SHP",
    "type": "Vector",
    "attribution": null
  },
  {
    "geometryType": "3",
    "srid": "LOCAL_SHP_2",
    "key": "WORLD_SHP",
    "type": "Vector",
    "attribution": null
  },
  {
    "geometryType": "7",
    "srid": "LATLONG",
    "key": "LONDONTUBE_KML",
    "type": "Vector",
    "attribution": null
  }
]