new SuperMap.Layer.MapVLayer(name, options)
Name | Type | Description | |||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
name |
string |
The layer name. |
|||||||||
options |
Object |
parameters.
|
Extends
Members
-
canvasCanvas
-
The main rendering panel of the MapV.
-
dataSetmapv.DataSet
-
The dataset object of the mapv.
-
optionsObject
-
The configuration information of the mapv drawing style.
-
supportedboolean
-
Whether the current browser supports canvas rendering, the default is false. This determines whether the MapV is available, use of the internal judgment.
Methods
-
addData(dataSet, options)
MapVLayer.js, line 95 -
Add data.
Name Type Description dataSet
mapv.DataSet The mapv dataset.
options
Object Parameters of the mapv drawing.
-
clearData()
MapVLayer.js, line 145 -
Clear data.
-
destroy()
MapVLayer.js, line 78 -
-
getData(){mapv.DataSet}
MapVLayer.js, line 117 -
Get data.
Returns:
Type Description mapv.DataSet - The mapV dataset.
-
moveTo(bounds, zoomChanged, dragging)
MapVLayer.js, line 170 -
Reset the div of the current MapV layer and consistent with the Map control once again. Modify the current display bounds, redraw the rendering effect of the MapV map after the translation or scaling.
Name Type Description bounds
SuperMap.Bounds The layer bounds
zoomChanged
boolean optional Whether the zoom level is changes or not.
dragging
boolean optional Whether or not to drag.
-
removeData(filter)
MapVLayer.js, line 129 -
Delete data that conforms to the filter conditions.
Name Type Description filter
function The filter conditions, the conditions parameter is data items.The return value is true, meaning to delete this element, otherwise the expression is not deleted.
Example
filter=function(data){ if(data.id=="1"){ return true } return false; }
-
setMap(map)
MapVLayer.js, line 154 -
Layer has been added to the Map. If the current browser supports canvas, start to rendering elements. If don't supports canvas remove this layer.
Name Type Description map
SuperMap.Map Map objects that need to be bound.
-
deprecated transferToMapLatLng(latLng)
MapVLayer.js, line 211 -
Transform the Latitude and longitude to the projection coordinate of the map.
Name Type Description latLng
SuperMap.Lonlat The SuperMap.Lonlat