com.supermap.mapping

Class LayerSettingVectorCache



  • public class LayerSettingVectorCache
    extends LayerSetting
    layer setting vecor cache class
    • Constructor Detail

      • LayerSettingVectorCache

        public LayerSettingVectorCache()
    • Method Detail

      • getSubLayerNames

        public java.lang.String[] getSubLayerNames()
        Gets the layer name of the vector map
        Returns:
        The name of the layer of the vector map
      • setSubLayerStyle

        public void setSubLayerStyle(java.lang.String subLayerName,
                                     GeoStyle geoStyle)
        Sets the style of the vector layer
        Parameters:
        subLayerName - sublayer name
        geoStyle - sublayer style. Note: Line layers do not support symbol settings
      • setSubLayerTextStyle

        public void setSubLayerTextStyle(java.lang.String subLayerName,
                                         TextStyle textStyle)
        Sets the sublayer text style
        Parameters:
        subLayerName - sublayer name
        textStyle -
      • setSubLayerVisible

        public void setSubLayerVisible(java.lang.String subLayerName,
                                       boolean subLayerVisible)
        Sets whether the sublayer is visible
        Parameters:
        subLayerName - sublayer name
        whether - the subLayerVisible is visible
      • getSubLayerStyle

        public GeoStyle getSubLayerStyle(java.lang.String subLayerName)
        Get the style of a vector layer
        Parameters:
        subLayerName - sublayer name
        Returns:
        sublayer style
      • getSubLayerTextStyle

        public TextStyle getSubLayerTextStyle(java.lang.String subLayerName)
        Sets the sublayer text style
        Parameters:
        subLayerName - sublayer name
        Returns:
        Text style
      • getSubLayerVisible

        public boolean getSubLayerVisible(java.lang.String subLayerName)
        Gets if the sublayer is visible
        Parameters:
        subLayerName - sublayer name
        Returns:
        Whether it is visible
      • getSubLayerType

        public LayerSettingVectorCache.SubLayerType getSubLayerType(java.lang.String subLayerName)
        Gets the sublayer type
        Parameters:
        subLayerName - sublayer name
        Returns:
        type
      • save

        public boolean save()
        Save the modified style
        Returns:
        Whether the save is successful
      • highLightQuery

        public void highLightQuery(java.lang.String subLayerName,
                                   java.lang.String fieldKey,
                                   java.lang.String fieldValue)
        Attributes: Query the sublayer features and highlight them
        Parameters:
        subLayerName - sublayer name
        fieldKey - field name
        fieldValue - field value
      • cleanHighLight

        public void cleanHighLight(java.lang.String subLayerName)
        Clear sublayer highlights
        Parameters:
        subLayerName - sublayer name