ArcGIS Runtime SDK for Qt

WMS layer (URL)

Loading

Code

import QtQuick 2.6
import Esri.ArcGISRuntime 100.3

Rectangle {
    id: rootRectangle
    clip: true
    width: 800
    height: 600

    MapView {
        id: mapView
        anchors.fill: parent

        Map {
            BasemapImagery {}                        

            // Add a WMS Layer by specifying the URL and layer name
            WmsLayer {
                url: "https://certmapper.cr.usgs.gov/arcgis/services/geology/africa/MapServer/WMSServer?request=GetCapabilities&service=WMS"
                layerNames: ["0"]
            }
        }
    }
}


In this topic
  1. Code