Namespace: Esri::GameEngine::Layers::Base
Class: Esri/GameEngine/Layers/Base/ArcGISLayer
Since: 1.0.0
Implements: ArcGISLoadable
Summary
Abstract class layer, base for layers.
Constructors
ArcGISLayer(const FString&, ArcGISLayerType, const FString&)
Creates a new layer.
Since 1.0.0
Arguments
Name | Type | Const | Summary |
---|---|---|---|
source | Yes | Layer source. | |
type | No | Layer type definition. | |
API | Yes | API key used to load data. |
Properties
Property | Type | Nullable | Readonly | Summary |
---|---|---|---|---|
No | Yes | API key will be sent with every request for ArcGIS location services and/or private content items. | ||
Yes | Yes | The full extent of this layer, which is the extent where all layer data is contained. | ||
No | No | Layer visible true or false. | ||
No | No | This property will help the user to identify the layer on his application. | ||
No | No | Layer Opacity. | ||
No | Yes | Source property is read-only, it will be set up on the constructor. | ||
Yes | Yes | The spatial reference of the layer. |
APIKey
FString GetAPIKey() const
API key will be sent with every request for ArcGIS location services and/or private content items.
Extent
ArcGISExtentRectangle GetExtent() const
The full extent of this layer, which is the extent where all layer data is contained.
You can use this to zoom to all of the data contained in this layer.
Name
FString GetName() const
void SetName(const FString& name)
This property will help the user to identify the layer on his application.
SpatialReference
ArcGISSpatialReference GetSpatialReference() const
The spatial reference of the layer.
ArcGISImageLayer ArcGISSpatialReference must match the ArcGISSpatialReference of the ArcGISMap. ArcGISImageLayer tiling scheme must be compatible with the tiling scheme of the ArcGISMap. If any of the above constraints are violated, an ArcGISLayerViewState error is generated.