REST API - Map Layer Web resource
The service allows to retrieve a map layer definition, rendered layer (as image) by its identifier.
URL
http://localhost:8080/easygis/services/data/layers/layer_identifier.format
http://localhost:8080/easygis/services/data/layers/layer_identifier/map.format
Formats
html, json, png
HTTP methods
GET, POST, DELETE
Requires Authentication
Only POST, DELETE methods
Parameters
- title: layer title (POST method)
- description: description of the layer (POST method)
- tags: comma separated list of tags (POST method)
- WIDTH: width of resulting image (GET method)
- HEIGHT: height of the layer (GET method)
Example queries
- Interactive layer (OpenLayers): http://localhost:8080/easygis/services/data/layers/googleworldlayer/map?WIDTH=400
- Retrieve the layer as image specifying the image size: http://localhost:8080/easygis/services/data/layers/nwplaceslayer/map.png?WIDTH=300
- Layer definition : http://localhost:8080/easygis/services/data/layers/nwplaceslayer.json