Skip to content

layer element

stefano edited this page Jan 16, 2017 · 5 revisions

This is the layer element

Parameters and predefined values

parameters type default values description
slippyLayer Input
wmsLayer Input
name Input the name for both wmsLayer and layerControl
opacity Input 1 the opacity of the layer
type Input 1 either overlay or basemap
attribution Input 1 adds attribution text for that layer on the existing attribution-control

OSM example

<leaf-element>
    <layer-element [slippyLayer]="'http://{s}.tile.osm.org/{z}/{x}/{y}.png'">
</layer-element>
</leaf-element>

WMS example

<leaf-element>
    <layer-element 
		[wmsLayer]="'http://sedac.ciesin.columbia.edu/geoserver/wms'"
		[name]="'gpw-v3:gpw-v3-population-density_2000'"
		[opacity]=0.3></layer-element>
</leaf-element>
Clone this wiki locally