New channels can be added to enable addition of common geospatial services such as WMS, WMTS, TMS
WMS Example:
map.services.wms.add - add service to map. If service with url already exists, treat as a refresh, remove current WMS, get the capabilities again
{
name: "Example Name",
url: "http://wmsserviceurlhere",
enabled: true,
defaultLayerNames : ["layer1","layer2"],
overlayId: "f324r-gfwf342g-wq34w-w34tg"
}
map.services.wms.remove - removes the service from map
{
url: "http://wmsserviceurlhere"
}
map.services.wms.enable - Turns service back on with previously selected layers active
{
url: "http://wmsserviceurlhere"
}
map.services.wms.disable - Allows developer to disable the entire service
{
url: "http://wmsserviceurlhere"
}
map.services.wms.showlayers - Allows developer to show on or more layers from service
{
url: "http://wmsserviceurlhere",
lyerNames: ["layer1","layer2"]
}
map.services.wms.hidelayers - Allows developer to hide one or more layers from service
{
url: "http://wmsserviceurlhere",
lyerNames: ["layer1","layer2"]
}
New channels can be added to enable addition of common geospatial services such as WMS, WMTS, TMS
WMS Example:
map.services.wms.add - add service to map. If service with url already exists, treat as a refresh, remove current WMS, get the capabilities again
{
name: "Example Name",
url: "http://wmsserviceurlhere",
enabled: true,
defaultLayerNames : ["layer1","layer2"],
overlayId: "f324r-gfwf342g-wq34w-w34tg"
}
map.services.wms.remove - removes the service from map
{
url: "http://wmsserviceurlhere"
}
map.services.wms.enable - Turns service back on with previously selected layers active
{
url: "http://wmsserviceurlhere"
}
map.services.wms.disable - Allows developer to disable the entire service
{
url: "http://wmsserviceurlhere"
}
map.services.wms.showlayers - Allows developer to show on or more layers from service
{
url: "http://wmsserviceurlhere",
lyerNames: ["layer1","layer2"]
}
map.services.wms.hidelayers - Allows developer to hide one or more layers from service
{
url: "http://wmsserviceurlhere",
lyerNames: ["layer1","layer2"]
}