I Try to use a layer from a WMS service in my app.
But I can't figure out how to filter the layers in the WMS service.
Even if I use the LAYER=<layername> parameter in the url, then will all layers still be showed.
here is my code <-
Map {
id: map
anchors {
left: parent.left
right: parent.right
top: titleRect.bottom
bottom: parent.bottom
}
wrapAroundEnabled: true
rotationByPinchingEnabled: true
magnifierOnPressAndHoldEnabled: true
mapPanningByMagnifierEnabled: true
zoomByPinchingEnabled: true
positionDisplay {
positionSource: PositionSource {
}
}
ArcGISTiledMapServiceLayer {
url: app.info.propertyValue("basemapServiceUrl", "http://server.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer")
}
WmsDynamicMapServiceLayer{
id:matrikel
url:"http://kortforsyningen.kms.dk/service?servicename=mat&client=arcGIS&service=WMS&version=1.1.1&login=USER&password=PASSWORD&LAYERS=Jordstykke"
visible: true
}
NorthArrow {
anchors {
right: parent.right
top: parent.top
margins: 10
}
visible: map.mapRotation != 0
}
onStatusChanged: {
if(status == Enums.MapStatusReady) {
console.log("Map Ready!!");
map.addLayer(matrikel)
}
}
ZoomButtons {
anchors {
right: parent.right
verticalCenter: parent.verticalCenter
margins: 10
}
}
}
-->
Request in fiddler
http://kortforsyningen.kms.dk/service?servicename=mat&client=arcGIS&service=WMS&version=1.1.1&login=USER&password=PASSWO…