com.supermap.mapping
Class LayerSettingVectorCache
- java.lang.Object
-
- com.supermap.mapping.LayerSetting
-
- com.supermap.mapping.LayerSettingVectorCache
-
public class LayerSettingVectorCache extends LayerSetting
layer setting vecor cache class
-
-
Nested Class Summary
Nested Classes Modifier and Type Class and Description static class
LayerSettingVectorCache.SubLayerType
子图层类型
-
Constructor Summary
Constructors Constructor and Description LayerSettingVectorCache()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description void
cleanHighLight(java.lang.String subLayerName)
Clear sublayer highlightsjava.lang.String[]
getSubLayerNames()
Gets the layer name of the vector mapGeoStyle
getSubLayerStyle(java.lang.String subLayerName)
Get the style of a vector layerTextStyle
getSubLayerTextStyle(java.lang.String subLayerName)
Sets the sublayer text styleLayerSettingVectorCache.SubLayerType
getSubLayerType(java.lang.String subLayerName)
Gets the sublayer typeboolean
getSubLayerVisible(java.lang.String subLayerName)
Gets if the sublayer is visibleLayerSettingType
getType()
Gets the type of vector layer.void
highLightQuery(java.lang.String subLayerName, java.lang.String fieldKey, java.lang.String fieldValue)
Attributes: Query the sublayer features and highlight themboolean
save()
Save the modified stylevoid
setSubLayerStyle(java.lang.String subLayerName, GeoStyle geoStyle)
Sets the style of the vector layervoid
setSubLayerTextStyle(java.lang.String subLayerName, TextStyle textStyle)
Sets the sublayer text stylevoid
setSubLayerVisible(java.lang.String subLayerName, boolean subLayerVisible)
Sets whether the sublayer is visible
-
-
-
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 namegeoStyle
- 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 nametextStyle
-
-
setSubLayerVisible
public void setSubLayerVisible(java.lang.String subLayerName, boolean subLayerVisible)
Sets whether the sublayer is visible- Parameters:
subLayerName
- sublayer namewhether
- the subLayerVisible is visible
-
getType
public LayerSettingType getType()
Gets the type of vector layer.- Specified by:
getType
in classLayerSetting
- Returns:
- the type of the layer.
-
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 namefieldKey
- field namefieldValue
- field value
-
cleanHighLight
public void cleanHighLight(java.lang.String subLayerName)
Clear sublayer highlights- Parameters:
subLayerName
- sublayer name
-
-