Class MapServiceLayerIdInfo


  • public final class MapServiceLayerIdInfo
    extends IdInfo
    Represents the service level metadata for a sublayer in an ArcGIS map service (from ArcGISMapServiceInfo).

    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: If one had the ArcGISMapServiceInfo for the following service: http://sampleserver6.arcgisonline.com/arcgis/rest/services/Sync/WildfireSync/MapServer IdInfo.getId() would return 0 for the Wildfire_Response_Points layer (as its ID is 0), so one 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:
    ArcGISMapServiceInfo, ArcGISFeatureServiceInfo, ServiceFeatureTable
    • 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.
        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.
        Returns:
        the minimum scale of the map service sublayer if set, otherwise 0
        Since:
        100.0.0
      • getParentLayerId

        public long getParentLayerId()
        Returns the parent id of the map service sublayer.
        Returns:
        the parent id of the map service sublayer
        Since:
        100.0.0
      • getSubLayerIds

        public List<Long> 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