NorthArrow Class

  • NorthArrow
  • class Esri::ArcGISRuntime::Toolkit::NorthArrow

    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 orientated to 0 (North). More...

    Header: #include <NorthArrow>

    Public Functions

    NorthArrow(QWidget *parent = nullptr)
    ~NorthArrow()
    Esri::ArcGISRuntime::Toolkit::NorthArrowController *controller() const
    void setMapView(Esri::ArcGISRuntime::MapGraphicsView *mapView)
    void setSceneView(Esri::ArcGISRuntime::SceneGraphicsView *sceneView)

    Detailed Description

    Note: default width and height is 48.

    Member Function Documentation

    [explicit] NorthArrow::NorthArrow(QWidget *parent = nullptr)

    Constructor

    • parent Parent widget.

    NorthArrow::~NorthArrow()

    Destructor

    Esri::ArcGISRuntime::Toolkit::NorthArrowController *NorthArrow::controller() const

    Returns the controller object driving this widget.

    void NorthArrow::setMapView(Esri::ArcGISRuntime::MapGraphicsView *mapView)

    Set the GeoView.

    • mapView Sets the GeoView to a MapView.

    void NorthArrow::setSceneView(Esri::ArcGISRuntime::SceneGraphicsView *sceneView)

    Set the GeoView.

    • sceneView Sets the GeoView to a SceneView.

    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