ABOUTDEVELOPERS |
SpatialStream® Code Examples
Adding WMS Layer
The example below shows how to add a SpatialStream™ Parcel layer using the Mapbox GL addLayer function.
GetMap
map.addSource("samplesite.dmp/parcelS", {
type: "raster", tiles: [ Dmp.Env.Connections["SS"].getBaseUrl() + "GetMap.aspx?layers=samplesite.dmp/parcels&z={ z }&y={y }&x={x }&SLD=samplesite.dmp.styles.parcels/default.sld.xml&ss_candy="+Dmp.Env.Connections["SS"]._candy], tileSize: 256, map.addLayer( { id: "ss-parcel", type: "raster", source: "samplesite.dmp/parcelS", paint: {}, "aeroway-line" ); Run Sample Back To Index |