new VectorGrid(options)
Usage
import { VectorGrid } from '@supermapgis/iclient-leaflet';
new VectorGrid(options);<script type="text/javascript" src="https://iclient.supermap.io/dist/leaflet/iclient-leaflet.js"></script>
<script>
new L.supermap.VectorGrid({paramsNames});
</script>
leaflet/overlay/vectortile/VectorGrid.js, line 15
| Name | Type | Description | ||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
Object |
参数。
|
API Relations
Returned by:
TiledVectorLayer.resetFeatureStyle
, TiledVectorLayer.setFeatureStyle
, VectorGrid.resetFeatureStyle
, VectorGrid.setFeatureStyle.
Extends
VectorGrid
-> L.GridLayer
Subclasses
Methods
-
getDataLayerNames(){Array}
leaflet/overlay/vectortile/VectorGrid.js, line 159 -
获取数据图层名称。
Returns:
Type Description Array 返回数据图层名称数组。 -
getStyle(layerName){Object}
leaflet/overlay/vectortile/VectorGrid.js, line 102 -
获取指定图层样式。
Name Type Description layerNamestring 图层名称。
Returns:
Type Description Object 指定图层的样式。 -
getStyles(){Object}
leaflet/overlay/vectortile/VectorGrid.js, line 93 -
获取图层样式。
Returns:
Type Description Object 所有图层的样式。 -
resetFeatureStyle(id, layerName){VectorGrid}
leaflet/overlay/vectortile/VectorGrid.js, line 136 -
指定要素 ID 和图层名称重绘要素风格。
Name Type Description idnumber 要素 ID。
layerNamestring 图层名称。
Returns:
Type Description VectorGrid VectorGrid 的实例对象。 -
setFeatureStyle(id, layerName, layerStyle){VectorGrid}
leaflet/overlay/vectortile/VectorGrid.js, line 112 -
指定要素 ID 和图层名称设置要素风格。
Name Type Description idnumber 要素 ID。
layerNamestring 图层名称。
layerStyleArray | function 图层样式。
Returns:
Type Description VectorGrid VectorGrid 的实例对象。