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>
    Inherits: QLabel

    Public Functions

    NorthArrow(QWidget *parent = nullptr)
    virtual ~NorthArrow() override
    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

    NorthArrow::NorthArrow(QWidget *parent = nullptr)

    Constructor

    • parent Parent widget.

    [override virtual] 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.