SpatialStream® Code Examples

Adding Parcel Tile Layer

The example below shows how to add a SpatialStream™ Parcel Tile layer using the Mapbox GL addLayer function.

GetMap

map.addSource("samplesite.dmp/parceltiles", {

type: "raster",
tiles: [
Dmp.Env.Connections["SS"].getBaseUrl() +"GetMap.aspx?layers=samplesite.dmp/parceltiles&z={
z
}&y={
y
}&x={
x
}&ss_candy="+Dmp.Env.Connections["SS"
]._candy
],
tileSize: 256,
});
map.addLayer(
{

id: "ss-parcel-tile",
type: "raster",
source: "samplesite.dmp/parceltiles",
paint: {
},
},
"aeroway-line"
);


Run Sample   Back To Index