Class MapServiceLayerIdInfo
- java.lang.Object
-
- com.esri.arcgisruntime.arcgisservices.IdInfo
-
- com.esri.arcgisruntime.arcgisservices.MapServiceLayerIdInfo
-
public final class MapServiceLayerIdInfo extends IdInfo
Represents the sub layer metadata for a Map service.The class is derived from the
IdInfo
class. Changing type just to make it clear you get back a derived type. You need to pass this object to all map service layer ID info methods. 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 itsArcGISFeatureLayerInfo
. To do this, append the ID fromIdInfo.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 theWildfire_Response_Points
layer (as its ID is 0). Therefore, you would create aServiceFeatureTable
for this layer using the following URL:http://sampleserver6.arcgisonline.com/arcgis/rest/services/Sync/WildfireSync/MapServer/0
.- Since:
- 100.0.0
- See Also:
ArcGISMapServiceInfo
,ArcGISFeatureServiceInfo
,ServiceFeatureTable
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
getDefaultVisibility()
Returns the default visibility of the map service sublayer.double
getMaxScale()
Returns the maximum scale of the map service sublayer.double
getMinScale()
Returns the minimum scale of the map service sublayer.long
getParentLayerId()
Returns the sublayer's parent ID.ArcGISMapServiceSublayerInfo.ServiceType
getServiceType()
Returns the type of data held in the layer on the service.List<Long>
getSubLayerIds()
Returns the list of child sublayer IDs of the map service sublayer.
-
-
-
Method Detail
-
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
public ArcGISMapServiceSublayerInfo.ServiceType 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
-
-