ArcGIS Runtime SDK for Qt

Feature layer (feature service)

Loading

Code

import QtQuick 2.6
import QtQuick.Controls 1.4
import QtQuick.Controls.Styles 1.4
import Esri.ArcGISRuntime 100.4

Rectangle {
    width: 800
    height: 600

    // Map view UI presentation at top
    MapView {
        id: mv

        anchors.fill: parent


        Map {
            BasemapTerrainWithLabels {}
            initialViewpoint: vc

            FeatureLayer {
                ServiceFeatureTable {
                    url: "https://sampleserver6.arcgisonline.com/arcgis/rest/services/Energy/Geology/FeatureServer/9"
                }
            }
        }


        ViewpointCenter {
            id: vc
            center: Point {
                x: -13176752
                y: 4090404
                spatialReference: SpatialReference {
                    wkid: 102100
                }
            }
            targetScale: 300000
        }
    }
}


In this topic
  1. Code