Class: Vector

Vector

SuperMap 矢量图层类。

new Vector(options)

Usage
// 浏览器
<script type="text/javascript" src="https://iclient.supermap.io/dist/mapboxgl/iclient-mapboxgl.js"></script>
<script>
  new mapboxgl.supermap.Vector(options);
  
  // 弃用的写法
  new SuperMap.Vector(options);

</script>

// ES6 Import
import { Vector } from '@supermap/iclient-mapboxgl';

new Vector(options);

common/iServer/Vector.js, line 8
Name Type Description
options Object

可选参数。

Name Type Description
style ServerStyle 可选

矢量图层的风格。

Extends

Members

datasetInfoDatasetInfo

数据集信息。

displayFilterstring

图层显示过滤条件。

joinItemsJoinItem

连接信息类。

representationFieldstring

存储制图表达信息的字段。

矢量图层的风格。

ugcLayerTypeLayerType

图层类型。

Methods

inherited destroy()

common/iServer/Vector.js, line 33

销毁对象,将其属性置空。

fromJson(jsonObject)

common/iServer/Vector.js, line 43

将服务端 JSON 对象转换成当前客户端对象。

Name Type Description
jsonObject Object

要转换的 JSON 对象。

toServerJSONObject(){Object}

common/iServer/Vector.js, line 56

转换成对应的 JSON 格式对象。

Returns:
Type Description
Object 对应的 JSON 格式对象