Show magnifier

Loading

Code

import QtQuick 2.6
import Esri.ArcGISRuntime 100.3

Rectangle {
    width: 800
    height: 600

    // create MapView that contains a Map with the Imagery basemap
    MapView {
        id: mapView
        anchors.fill: parent
        // set the magnifier to true
        magnifierEnabled: true

        Map {
            BasemapImagery {}

            onLoadStatusChanged: {
                if (loadStatus === Enums.LoadStatusLoaded) {
                    mapView.setViewpoint(initialViewpoint);
                }
            }
        }
    }

    // create the initial viewpoint
    ViewpointCenter {
        id: initialViewpoint
        center: Point {
            x: -110.8258
            y: 32.1545089
            spatialReference: SpatialReference {wkid: 4326}
        }
        targetScale: 2e4
    }
}


In this topic
  1. Code