Represents a grid consisting of east-west lines of latitude and north-south lines of longitude (also known as graticules). More...
Header: | #include <LatitudeLongitudeGrid.h> |
Since: | Esri::ArcGISRuntime 100.0 |
Inherits: | Esri::ArcGISRuntime::Grid |
Public Functions
LatitudeLongitudeGrid(QObject *parent = nullptr) | |
virtual | ~LatitudeLongitudeGrid() override |
Esri::ArcGISRuntime::LatitudeLongitudeGridLabelFormat | labelFormat() const |
void | setLabelFormat(Esri::ArcGISRuntime::LatitudeLongitudeGridLabelFormat labelFormat) |
Detailed Description
This class represents graticules–lines showing parallels of latitude and meridians of longitude for the earth.
The position of the graticules are based on the WGS84 ellipsoid, irrespective of the spatial reference used by the map or scene view.
To display graticules, create a LatitudeLongitudeGrid and set it as the grid property within the MapView or SceneView.
LatitudeLongitudeGrid extends Grid, adding the label unit property. The grid is supported in spatial references which are continuously pannable or some polar spatial references.
You can check that the isPannable property is true
on your spatial reference.
Examples of continuously pannable spatial references include WGS84 (WKID 4326) and Web Mercator Auxilliary Sphere (WKID 102113, 102100, or 3857).
The following polar spatial references are also supported:
- North pole Azimuthal Equidistant (WKID 102016)
- North pole gnomic (WKID 102034)
- North pole lambert equal area (WKID 102017)
- North pole orthographic (WKID 102035)
- North pole stereographic (WKID 102018)
- NSIDE EASE North (WKID 3408)
- NSIDC Sea Ice polar stereographic north (WKID 3411)
- WGS 1984 NSIDC Sea Ice Polar Stereographic North (WKID 3413)
- UPS North (WKID 32661)
- South pole Azimuthal Equidistant (WKID 102019)
- South pole gnomic (WKID 102036)
- South pole lambert equal area (WKID 102020)
- South pole orthographic (WKID 102037)
- South pole stereographic (WKID 102021)
- NSIDE EASE South (WKID 3409)
- NSIDC Sea Ice polar stereographic South (WKID 3412)
- UPS South (WKID 32761)
- WGS1984 Antarctic polar stereographic (WKID 3031)
Relevant samples:
- Display a grid: Display coordinate system grids including Latitude/Longitude, MGRS, UTM and USNG on a map or scene view. Also, toggle label visibility and change the color of grid lines and grid labels.
See also Esri::ArcGISRuntime::GeoView::grid.
Member Function Documentation
[explicit]
LatitudeLongitudeGrid::LatitudeLongitudeGrid (QObject *parent = nullptr)
Default constructor with an optional parent.
[override virtual]
LatitudeLongitudeGrid::~LatitudeLongitudeGrid ()
Destructor.
Esri::ArcGISRuntime::LatitudeLongitudeGridLabelFormat LatitudeLongitudeGrid::labelFormat () const
Returns the labeling format of the grid, such as decimal degrees or degrees-minutes-seconds.
See also setLabelFormat().
void LatitudeLongitudeGrid::setLabelFormat (Esri::ArcGISRuntime::LatitudeLongitudeGridLabelFormat labelFormat )
Sets the labeling format of the grid, such as decimal degrees or degrees-minutes-seconds, to labelFormat.
See also labelFormat().