-
Notifications
You must be signed in to change notification settings - Fork 41
Map layer configuration
Christian Mayer edited this page May 20, 2020
·
5 revisions
JSON configuration objects for Wegue map layers
The following properties can be applied to all map layer types
Property | Mandatory | Meaning | Example |
---|---|---|---|
type | x | Indicator which layer type is configured | |
lid | x | Unique identifier for the layer | "lid": "my-super-wms-layer" |
name | x | Human readable name for the layer, used e.g. in the LayerList | "name": "My super WMS" |
projection | The projection of the layer. Has to be defined in projectionDefs if not EPSG:4326 or EPSG:3857 . if not set the projection of the map is used |
"projection": "EPSG:3857" |
|
isBaseLayer | Boolean value, whether the layer should be a background layeror not | "isBaseLayer": false |
|
visible | Boolean value, whether the layer should be initially visible | "visible": false |
|
displayInLayerList | Boolean value, whether the layer appear in the LayerList | "displayInLayerList": true |
|
attributions | Text or HTML string to be displayed as source attribution in the map | "attributions": "<a href='https://www.pdok.nl' target='_blank'>PDOK</a> by Dutch Kadaster", |
Property | Mandatory | Meaning | Example |
---|---|---|---|
type | x | Indicator that the layer is a WMS, always WMS here |
"type": "WMS" |
layers | x | The WMS LAYERS parameter |
"layers": "topp:states" |
url | x | The GetMap URL of the WMS | "url": "https://ahocevar.com/geoserver/wms" |
format | Image format for the WMS (has to be supported by the WMS) | "format": "image/png" |
|
transparent | Boolean value, whether the WMS layer should be queried with a transparent background | "transparent": true |
|
singleTile | Boolean value, whether the WMS layer should be queried in single tile mode | "singleTile": false |
|
tileGridRef | Identifier of the tile grid to use for this layer (has to be defined in tileGridDefs
|
"tileGridRef": "dutch_rd" |