List of layers

Basic principles

This web service returns the list of all the layers declared in Geoconcept Web.

Availability

This web service is available with Geoconcept Web by setting the services.activate.getAllLayers parameter to true (cf. parameters section).

V1

Parameters / properties

Input

No parameter as input

Output

parameter type min/max description

id

long

1/1

Identifier for the layer.

name

string

1/1

Name of the layer.

kind

string

1/1

Types of layers
- RASTER: for tiled layers
- VECTOR: for vector layers
- HYBRID: for hybrid layers

REST (GET)

Query

JSON query 

http://<server>/<webapp>/api/lbs/layers/getAll

Response

The response is always in UTF-8 format.

JSON format 

{
  "layers": [
    {
      "id": "123",
      "name": "ADMINISTRATIVE",
      "kind": "RASTER"
    },
    {
      "id": "124",
      "name": "BASEMAP",
      "kind": "RASTER"
    },
    {
      "id": "128",
      "name": "ADMINISTRATIVE MAP",
      "kind": "RASTER"
    },
    {
      "id": "130",
      "name": "EMPTY",
      "kind": "RASTER"
    },
    {
      "id": "133",
      "name": "COMPLETE",
      "kind": "RASTER"
    },
    {
      "id": "122",
      "name": "samplePoints",
      "kind": "VECTOR"
    }
  ]
}