VGeoSource

GeoSource 数据源组件。

<v-geo-source
  id="geo-source-id"
  :data="animate"
  :coordinates="coordinates"
/>

例子

渲染点

渲染 v-geo-source 组件

渲染线

渲染 v-geo-source 组件

渲染面

渲染 v-geo-source 组件

渲染聚合

渲染 v-geo-source 组件

属性

属性必选类型描述
id是string数据源 ID
attribution否string归属信息
buffer否number缓冲区大小,0~512 之间,默认 128
cluster否boolean是否聚合,默认 false
clusterMaxZoom否number聚合最大缩放
clusterMinPoints否number聚合需要最少点数量,默认 2
clusterProperties否object聚合属性
clusterRadius否number聚合半径,默认 50
filter否expression过滤规则
generateId否boolean是否自动生成 feature.id,默认 false
lineMetrics否boolean是否计算线距离度量,默认 false
maxzoom否number最大缩放,默认 18
promoteId否PromoteIdSpecification用作 feature id 的属性
tolerance否numberDouglas-Peucker 简化容差,默认 0.375

想要更多信息请访问 mapbox 官网, 查看open in new window

Last Updated:
Contributors: timeroute, chinesejar