new SuperMap.Feature.Theme.Vector(data, layer, style, options)
Name | Type | Description | ||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
data |
SuperMap.Feature.Vector |
User data, required. The format of the vector thematic elements is vector data feature. |
||||||||||||||||||||||||
layer |
SuperMap.Layer |
The layer the theme element is in, required. |
||||||||||||||||||||||||
style |
Object |
style. |
||||||||||||||||||||||||
options |
Object |
The optional parameters when create thematic elements.
|
Extends
Members
-
dataObject
-
{ReadOnly} User data, used to generate visible shape, and can define data format and type in the sub class. e.g.: <SuperMap.Feature.Vector> 。
-
dataBoundsSuperMap.Bounds
-
The geographic scope of user data.(feature.geometry)
-
highlightStyleObject
-
The highlight Style.
-
idstring
-
Unique identification of thematic elements
-
isClickAbleboolean
-
Whether the shape can be clicked or not, default true.
- Default Value: true
isMultiHoverboolean
Whether or not to use multi - Graphics highlighting,It's valid when isHoverAble is true, default true.
- Default Value: true
layerSuperMap.Layer.Theme
{ReadOnly} Thematic layer where thematic features are.
locationArray
Thematic feature pixel reference position. In general, it is determined by geographic reference. It is an array, the first element is x coordinate, and the second element is y coordinate.
lonlatSuperMap.LonLat
Thematic feature geographic reference position. In sub class, it is assigned by user data (or geographic position parameter).
nodesClipPixelnumber
The node has a sparse pixel distance, the default value of 2.
- Default Value: 2
shapeOptionsObject
modify some properties to shape before adding to the renderer is not usually allowed to do so in a non special case.
shapesArray
{ReadOnly} The visible shape array by thematic features. The order of the array controls the render.
styleObject
Style of visual graphics. The object structure and the default attribute value are specified in the subclass.
Methods
-
inherited constructor(data, layer){SuperMap.Feature.Theme}
Theme.js, line 14 -
The Constructor.
Name Type Description data
Object User data which is used to generate visible shape. Required.
layer
SuperMap.Layer.Theme The layer the theme element is in, required.
Returns:
Type Description SuperMap.Feature.Theme Return a thematic feature. -
inherited destroy()
Theme.js, line 75 -
Destroys thematic features.
-
inherited destroy()
Theme.js, line 75 -
Destroys thematic features.
-
geoTextToTF(geometry)
ThemeVector.js, line 577 -
Transform text feature.
Name Type Description geometry
SuperMap.Geometry The geometric and geographic information of the user data must be GeoText.
-
getLocalXY(lonlat)
ThemeVector.js, line 654 -
The geographic coordinates are converted to pixel coordinates.
Name Type Description lonlat
SuperMap.LonLat The geographical location of the thematic elements.
-
getShapesCount(){number}
ThemeVector.js, line 644 -
Get the number of visualization shape in the thematic elements.
Returns:
Type Description number the number of visualization shape -
lineToTF(geometry)
ThemeVector.js, line 159 -
Conversion line and line ring elements.
Name Type Description geometry
SuperMap.Geometry User data geo geographic information, which must be LineString or LineRing.
-
multiLineStringToTF(geometry)
ThemeVector.js, line 320 -
Conversion of multi line elements.
Name Type Description geometry
SuperMap.Geometry The geometric and geographic information of the user data must be MultiLineString.
-
multiPointToTF(geometry)
ThemeVector.js, line 236 -
Convert multipoint elements.
Name Type Description geometry
SuperMap.Geometry The geometric and geographic information of the user data must be MultiPoint.
-
multiPolygonToTF(geometry)
ThemeVector.js, line 335 -
Convert multiPolygon elements.
Name Type Description geometry
SuperMap.Geometry The geometric and geographic information of the user data must be MultiPolygon.
-
pointToTF(geometry)
ThemeVector.js, line 350 -
Convert point elements.
Name Type Description geometry
SuperMap.Geometry The geometric and geographic information of the user data must be Point.
-
polygonToThemeFeature(geometry)
ThemeVector.js, line 398 -
Transform polygon feature.
Name Type Description geometry
SuperMap.Geometry The geometric and geographic information of the user data must be Polygon.
-
rectangleToTF(geometry)
ThemeVector.js, line 521 -
Convert the rectangle feature.
Name Type Description geometry
SuperMap.Geometry The geometric and geographic information of the user data must be Rectangle.
-
updateAndAddShapes()
ThemeVector.js, line 626 -
Modify the position, for map translation, this function is called after the map roaming operation.