Class: GeoJSONSource

.Source. GeoJSONSource

GeoJSON数据源

new GeoJSONSource(options)

Parameters:
Name Type Description
options Object 源相关选项设置。
Deprecated:
  • Yes
Source:
View2D/Source/GeoJSONSource.js

Members


buffer :number

每边的瓷砖缓冲区大小
Type:
  • number
Default Value:
  • null
Source:
View2D/Source/GeoJSONSource.js

cluster :boolean

聚合
Type:
  • boolean
Default Value:
  • null
Source:
View2D/Source/GeoJSONSource.js

clusterMaxZoom :number

聚合最大级别
Type:
  • number
Default Value:
  • null
Source:
View2D/Source/GeoJSONSource.js

clusterRadius :number

聚合半径
Type:
  • number
Default Value:
  • null
Source:
View2D/Source/GeoJSONSource.js

data :array

GeoJSON文件或内联GeoJSON
Type:
  • array
Default Value:
  • null
Source:
View2D/Source/GeoJSONSource.js

maxzoom :number

最大层级
Type:
  • number
Default Value:
  • null
Source:
View2D/Source/GeoJSONSource.js

minzoom :number

最小层级
Type:
  • number
Default Value:
  • 0
Source:
View2D/Source/GeoJSONSource.js

tolerance :number

容差
Type:
  • number
Default Value:
  • null
Source:
View2D/Source/GeoJSONSource.js