NorthArrow QML Type

The NorthArrow displays a compass overlaid on the GeoView, with the compass heading matching the current rotation of the MapView, or Camera heading of the SceneView. Double clicking on the NorthArrow triggers the heading of the connected GeoView to be orientainted to 0. More...

Since: Esri.ArcGISRuntime 100.10
Inherits:

Item

Properties

Detailed Description

Note: default width and height is 48.

northarrow

Example code in the QML API (C++ API might differ):

        MapView {
            Map {
                initBasemapStyle: Enums.BasemapStyleArcGISDarkGray
            }
            NorthArrow {
                geoView: parent
                anchors {
                    right: parent.right
                    margins: 10
                    bottom: parent.attributionTop
                }
            }
            rotationByPinchingEnabled: true
        }

Property Documentation

autoHide : bool

When autohide is true, this view is only visible when the heading is a non-zero value.


controller : var

The Controller handles connections writing/reading to the GeoView.

The QML controller is documented here and the CPP controller is documented here.


geoView : var

The GeoView for this tool. Should be a SceneView or a MapView.


Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.

You can no longer sign into this site. Go to your ArcGIS portal or the ArcGIS Location Platform dashboard to perform management tasks.

Your ArcGIS portal

Create, manage, and access API keys and OAuth 2.0 developer credentials, hosted layers, and data services.

Your ArcGIS Location Platform dashboard

Manage billing, monitor service usage, and access additional resources.

Learn more about these changes in the What's new in Esri Developers June 2024 blog post.

Close