Class MapServiceLayerIdInfo
The class is derived from the IdInfo
class. Changing type just to make it clear you get back a derived type.
You will get this object from various methods.
This is a subset of the full metadata that would be available if the sublayer was requested on its own.
The full metadata for the sublayer is available if you create a
ServiceFeatureTable
for the layer and access its
ArcGISFeatureLayerInfo
.
To do this, append the ID from IdInfo.getId()
to the URL of the feature service or map service.
For example, assume you had the ArcGISMapServiceInfo
for the following service:
http://sampleserver6.arcgisonline.com/arcgis/rest/services/Sync/WildfireSync/MapServer
. In that case,
IdInfo.getId()
would return 0 for the Wildfire_Response_Points
layer (as its ID is 0).
Therefore, you would create a ServiceFeatureTable
for this layer using the following URL:
http://sampleserver6.arcgisonline.com/arcgis/rest/services/Sync/WildfireSync/MapServer/0
.
- Since:
- 100.0.0
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Returns the default visibility of the map service sublayer.double
Returns the maximum scale of the map service sublayer.double
Returns the minimum scale of the map service sublayer.long
Returns the sublayer's parent ID.Returns the type of data held in the layer on the service.Returns the list of child sublayer IDs of the map service sublayer.
-
Method Details
-
getDefaultVisibility
public boolean getDefaultVisibility()Returns the default visibility of the map service sublayer.- Returns:
- the default visibility of the map service sublayer
- Since:
- 100.0.0
-
getMaxScale
public double getMaxScale()Returns the maximum scale of the map service sublayer.Will return NaN if an error occurs.
- Returns:
- the maximum scale of the map service sublayer if set, otherwise 0
- Since:
- 100.0.0
-
getMinScale
public double getMinScale()Returns the minimum scale of the map service sublayer.WIll return NaN if an error occurs.
- Returns:
- the minimum scale of the map service sublayer if set, otherwise 0
- Since:
- 100.0.0
-
getParentLayerId
public long getParentLayerId()Returns the sublayer's parent ID.Will return -1 if an error occurs or if the sublayer has no parent.
- Returns:
- the parent ID of the map service sublayer
- Since:
- 100.0.0
-
getServiceType
Returns the type of data held in the layer on the service.- Returns:
- the type of data held in the layer on the service
- Since:
- 100.7.0
-
getSubLayerIds
Returns the list of child sublayer IDs of the map service sublayer.- Returns:
- an unmodifiable list of child sublayer IDs
- Since:
- 100.0.0
-