Set map spatial reference

Loading

Code

import QtQuick 2.6
import Esri.ArcGISRuntime 100.2

Rectangle {
    width: 800
    height: 600

    MapView {
        anchors.fill: parent
        wrapAroundMode: Enums.WrapAroundModeDisabled

        Map {
            id: map
            // Specify the SpatialReference
            spatialReference: SpatialReference { wkid:54024 }
        }
    }

    Basemap {
        id: basemap
        ArcGISMapImageLayer {
            url: "http://sampleserver6.arcgisonline.com/arcgis/rest/services/SampleWorldCities/MapServer"
        }
    }

    Component.onCompleted: {
        map.basemap = basemap;
    }
}


In this topic
  1. Code