Members
(constant) ActiveType :String
Properties:
Name | Type | Description |
---|---|---|
BLINK |
String | 呼吸灯效果,点(广告版)、线、面对象均有效 |
SCALING |
String | 闪烁(缩放)效果,限点(广告版)、线对象生效,面对象无效 |
JUMP |
String | 跳跃效果,仅点(广告版)对象有效,线和面对象无效 |
图层对象,高亮类型,正对于地图场景中以Entity形式加载的对象
Type:
- String
(constant) ChinaCode
Properties:
Name | Type | Description |
---|---|---|
regionData |
Array.<RegionCode> | 三级行政区划对象 |
provinceAndCityData |
Array.<RegionCode> | 二级行政区划对象 |
codeToText |
String | 三级行政区划对象 |
中国行政区划及编码
Type Definitions
BillboardOption
- Description:
广告版参数
- Source:
Properties:
Name | Type | Attributes | Default | Description | |||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
scale |
Number |
<optional> |
1.0
|
可选:放大倍比,默认1.0 |
|||||||||
width |
Number |
<optional> |
64
|
可选:图标宽度,默认64px |
|||||||||
height |
Number |
<optional> |
64
|
可选:图标高度,默认64px |
|||||||||
onGround |
Boolean |
<optional> |
true
|
可选:是否贴地,默认自动贴地 |
|||||||||
image |
String | HTMLCanvasElement |
<optional> |
广告版图标路径 |
||||||||||
style |
Object |
<optional> |
null
|
多联级样式设置参数 Properties
|
广告版参数
CameraStatus
- Description:
相机状态参数
- Source:
Properties:
Name | Type | Description | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
degrees |
DegreePosZ | WGS84坐标值 |
||||||||||||
position |
Cartesian3 | 笛卡尔坐标值 |
||||||||||||
hpr |
Object | 欧拉角 Properties
|
相机状态参数
Cartesian2
- Description:
2D笛卡尔点
- Source:
Properties:
Name | Type | Description |
---|---|---|
x |
Number | The X component |
y |
Number | The Y component |
2D笛卡尔点
Cartesian3
- Description:
3D笛卡尔点
- Source:
Properties:
Name | Type | Description |
---|---|---|
x |
Number | The X component |
y |
Number | The Y component |
z |
Number | The Z component |
3D笛卡尔点
Cartographic
- Description:
弧度坐标点
- Source:
Properties:
Name | Type | Description |
---|---|---|
longitude |
Number | The longitude, in radians. |
latitude |
Number | The latitude, in radians. |
height |
Number | The height, in meters, above the ellipsoid. |
弧度坐标点
DegreePos
- Description:
2D WGS84坐标点
- Source:
Properties:
Name | Type | Description |
---|---|---|
x |
Number | 经度X |
y |
Number | 纬度y |
2D WGS84坐标点
DegreePosZ
- Description:
3D WGS84坐标点
- Source:
Properties:
Name | Type | Description |
---|---|---|
x |
Number | 经度X |
y |
Number | 纬度y |
z |
Number | 高度z,单位米 |
3D WGS84坐标点
DomOptions
- Description:
DOM跟随对象参数
- Source:
Properties:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
offset |
Cartesian2 |
<optional> |
{x:0,y:0}
|
视角偏移 |
maxHeight |
Number |
<optional> |
50000000
|
最高可视距离,指的是相机距离,超过该距离元素就被隐藏 |
DOM跟随对象参数
GeocodeGd
- Description:
高德地理编码结果
- Source:
Properties:
Name | Type | Description |
---|---|---|
province |
String | 地址所在的省份名 |
city |
String | 地址所在的城市名 |
district |
String | 地址所在的区 |
street |
String | 街道 |
number |
String | 门牌 |
location |
LngLat | 坐标点位置,WGS84坐标 |
高德地理编码结果
GeoserverWmtsOptions
- Description:
Geoserver发布的WMTS数据参数
- Source:
Properties:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
id |
String |
<optional> |
唯一标识ID |
|
layer |
String | 图层名称 |
||
sourceUrl |
String | geoserver发布wmts的根地址,如:https://ip:port/geoserver/gwc/service/wmts/rest,可以在geoserver首页查询 |
||
style |
String |
<optional> |
''
|
数据样式 |
format |
String |
<optional> |
'image/png'
|
瓦片格式类型 |
tileMatrixSetID |
String |
<optional> |
'EPSG:4326'
|
坐标系 |
maximumLevel |
Number |
<optional> |
20
|
最大显示层级 |
alpha |
Number |
<optional> |
1.0
|
透明度 |
Geoserver发布的WMTS数据参数
GltfOption
- Description:
GLTF模型参数
- Source:
Properties:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
scale |
Number |
<optional> |
1.0
|
可选:模型放大倍比,默认1.0 |
shadow |
Boolean |
<optional> |
true
|
可选:模型是否支持阴影效果,默认true |
onGround |
Boolean |
<optional> |
false
|
可选:模型是否贴地,默认自动贴地 |
heading |
Number |
<optional> |
0.0
|
可选:模型角度heading值,默认0.0,单位:度 |
pitch |
Number |
<optional> |
0.0
|
可选:模型角度pitch值,默认0.0,单位:度 |
roll |
Number |
<optional> |
0.0
|
可选:模型角度roll值,默认0.0,单位:度 |
GLTF模型参数
HeatmapDatas
- Description:
热力图数据类型
- Source:
Properties:
Name | Type | Description |
---|---|---|
lnglat |
Array.<Number> | 经纬度坐标,WGS84坐标系,如:[120,35] |
value |
Number | 热力值,用于绘制热力图的数值 |
热力图数据类型
HeatmapOptions
- Description:
热力图参数
- Source:
Properties:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
radius |
Number |
<optional> |
10
|
可选 热力图绘制半径,参考值 |
gradient |
Object |
<optional> |
{ '.3': 'blue', '.5': 'green', '.7': 'yellow', '.95': 'red'}
|
热力图配色梯度值,key为递变百分比位置,值为颜色值,如"red","#ff0000" |
baseHeight |
Number |
<optional> |
0
|
可选,基准高度,仅限于3D热力图生效 |
primitiveType |
String |
<optional> |
'TRIANGLES'
|
可选,热力图形式,仅限于3D热力图生效。"TRIANGLES"-三角形基元,其中每个三个顶点(或索引)是一个三角形。三角形不一定共享边;"LINES"-线基元,其中每个两个顶点(或索引)都是一个线段。线段不一定连接。 |
热力图参数
LngLat
- Description:
LngLat坐标类型
- Source:
Properties:
Name | Type | Description |
---|---|---|
lng |
Number | 经度坐标 |
lat |
Number | 纬度坐标 |
LngLat坐标类型
MapboxOption
- Description:
Mapbox切片服务参数
- Source:
Properties:
Name | Type | Description |
---|---|---|
userName |
String | 用户名 |
styleId |
String | 图层样式唯一ID |
token |
String | token指令 |
Mapbox切片服务参数
MouseClickEvent(event)
- Description:
鼠标点击事件回调参数
- Source:
Parameters:
Name | Type | Description | ||||||
---|---|---|---|---|---|---|---|---|
event |
Object | 鼠标事件对象 Properties
|
MouseMoveEvent(event)
- Description:
鼠标移动事件回调参数
- Source:
Parameters:
Name | Type | Description | |||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
event |
Object | 鼠标事件对象 Properties
|
MouseWheelEvent(value)
- Description:
鼠标滚轮事件回调参数
- Source:
Parameters:
Name | Type | Description |
---|---|---|
value |
Number | 鼠标滚轮滚动幅度,>0表示向前,<0表示向后 |
PanelOptions
- Description:
热点面板参数
- Source:
Properties:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
id |
String | 热点面板ID,具有唯一性 |
||
position |
Cartesian3 | 热点面板空间位置,笛卡尔坐标 |
||
text |
String | 热点面板内容 |
||
maxHeight |
Number | 热点面板最大可视距离,超过该距离将移除 |
||
type |
String |
<optional> |
'hot'
|
热点面板类型。'hot'-普通热点面板;'process'-进度热点面板 |
热点面板参数
PathAnalysisGD
- Description:
高德路径规划返回对象
- Source:
Properties:
Name | Type | Description |
---|---|---|
origin |
LngLat | 起始点位置,WGS84坐标 |
destination |
LngLat | 终点位置,WGS84坐标 |
paths |
Array.<PathGD> | 路线集合 |
高德路径规划返回对象
PathGD
- Description:
高德路径规划路线
- Source:
Properties:
Name | Type | Description |
---|---|---|
distance |
Number | 距离,单位:米(m) |
duration |
Number | 用时,单位:秒(s) |
steps |
Array.<StepGD> | 路线分段 |
高德路径规划路线
PickPosCallback(res)
- Description:
方法回调,返回坐标拾取位置结果
- Source:
Parameters:
Name | Type | Description | |||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
res |
Object | 返回的结构体 Properties
|
PlotArrow
- Description:
标绘-箭头类-参数
- Source:
Properties:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
geo |
Number | 箭头类型,对应关系:0-平尾,1-燕尾。 |
||
fill |
String |
<optional> |
'#FF0000'
|
填充颜色,默认值 #FF0000 |
outline |
Boolean |
<optional> |
true
|
是否显示轮廓线,默认显示 |
outlineColor |
String |
<optional> |
'#FFFF00'
|
轮廓线颜色,仅outline=true时生效,默认值 #FFFF00 |
outlineWidth |
Number |
<optional> |
10.0
|
轮廓线宽度,仅outline=true时生效,默认值10.0 |
标绘-箭头类-参数
PlotBillboard
- Description:
标绘-广告版-参数
- Source:
Properties:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
image |
String | HTMLCanvasElement |
<optional> |
广告版图标image |
|
scale |
Number |
<optional> |
1.0
|
缩放倍比,默认值1.0 |
标绘-广告版-参数
PlotColor
- Description:
标绘-简单颜色类-参数
- Source:
Properties:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
color |
String |
<optional> |
'#FF0000'
|
填充颜色,默认值 #FF0000 |
标绘-简单颜色类-参数
PlotFlag
- Description:
标绘-旗标类-参数
- Source:
Properties:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
geo |
Number | 旗标类型,对应关系:0-曲线旗标;1-矩形旗标;2-正三角旗标;3-倒三角旗标;4-对三角旗标。 |
||
fill |
String |
<optional> |
'#FF0000'
|
填充颜色,默认值 #FF0000 |
outline |
Boolean |
<optional> |
true
|
是否显示轮廓线,默认显示 |
outlineColor |
String |
<optional> |
'#FFFF00'
|
轮廓线颜色,仅outline=true时生效,默认值 #FFFF00 |
outlineWidth |
Number |
<optional> |
10.0
|
轮廓线宽度,仅outline=true时生效,默认值10.0 |
标绘-旗标类-参数
PlotFormation
- Description:
标绘-阵型类-参数
- Source:
Properties:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
geo |
Number |
<optional> |
1
|
阵型类型,0-防御阵型,1-进攻阵型 |
color |
String |
<optional> |
'#FF0000'
|
线段颜色,默认值 #FF0000 |
width |
Number |
<optional> |
10.0
|
线宽度,默认值10.0 |
标绘-阵型类-参数
PlotLabel
- Description:
标绘-文本类-参数
- Source:
Properties:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
color |
String |
<optional> |
'#FFFFFF'
|
文本填充色,默认值 #FFFFFF |
size |
Number |
<optional> |
32
|
文本字体大小,默认值 32 |
text |
String |
<optional> |
'undefined'
|
文本内容,默认值 undefined |
outline |
Boolean |
<optional> |
false
|
是否显示文本轮廓,默认不显示 |
outlineColor |
String |
<optional> |
'#000'
|
文本轮廓颜色,默认值 #000000 |
outlineWidth |
Number |
<optional> |
0
|
文本轮廓宽度,默认值 0 |
标绘-文本类-参数
PlotPoint
- Description:
标绘-点类-参数
- Source:
Properties:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
color |
String |
<optional> |
'#ff0000'
|
点颜色,默认值 #ff0000 |
pixelSize |
Number |
<optional> |
20.0
|
点大小,默认值20.0 |
outlineColor |
String |
<optional> |
'#ffff00'
|
轮廓线颜色,默认值 #ffff00 |
outlineWidth |
Number |
<optional> |
3.0
|
轮廓线宽度,默认值3.0 |
标绘-点类-参数
PlotPolygon
- Description:
标绘-多边形类-参数
- Source:
Properties:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
fill |
String |
<optional> |
'#FF0000'
|
填充颜色,默认值 #FF0000 |
outline |
Boolean |
<optional> |
true
|
是否显示轮廓线,默认显示 |
outlineColor |
String |
<optional> |
'#FFFF00'
|
轮廓线颜色,仅outline=true时生效,默认值 #FFFF00 |
outlineWidth |
Number |
<optional> |
10.0
|
轮廓线宽度,仅outline=true时生效,默认值10.0 |
counts |
Number |
<optional> |
5
|
仅在绘制正多边形时有效,代表正多边形边的数量 |
标绘-多边形类-参数
PlotPolyline
- Description:
标绘-折线类-参数
- Source:
Properties:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
color |
String |
<optional> |
'#FF0000'
|
线段颜色,默认值 #FF0000 |
width |
Number |
<optional> |
10.0
|
线宽度,默认值10.0 |
标绘-折线类-参数
PoiGdParams
- Description:
高德POI搜索条件参数
- Source:
Properties:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
region |
String | 限制返回数据在区域内,默认全国范围搜索。行政区划编码或者名称,如"北京市","110000"。 |
||
count |
Number |
<optional> |
20
|
返回结果数量 |
高德POI搜索条件参数
PoiResultGd
- Description:
高德POI搜索结果对象
- Source:
Properties:
Name | Type | Description |
---|---|---|
address |
String | poi详细地址 |
adname |
String | poi所属区县 |
cityname |
String | poi所属城市 |
pname |
String | poi所属省份 |
name |
String | poi名称 |
type |
String | poi所属类型 |
location |
LngLat | poi经纬度坐标,WGS84坐标 |
高德POI搜索结果对象
PointOption
- Description:
点参数
- Source:
Properties:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
color |
String |
<optional> |
'#ff0000'
|
可选:点颜色,默认值 #ff0000 |
pixelSize |
Number |
<optional> |
10.0
|
可选:点大小,默认值10.0 |
outlineColor |
String |
<optional> |
'#ffff00'
|
可选:轮廓线颜色,默认值 #ffff00 |
outlineWidth |
Number |
<optional> |
3.0
|
可选:轮廓线宽度,默认值3.0 |
onGround |
Number |
<optional> |
true
|
可选:是否贴地,默认自动贴地 |
点参数
PolygonOption
- Description:
Polygon面参数
- Source:
Properties:
Name | Type | Attributes | Default | Description | |||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
fill |
String |
<optional> |
'#65df43'
|
可选:面填充颜色,默认 #65df43 |
|||||||||
outline |
Boolean |
<optional> |
true
|
可选:是否显示轮廓线,默认为true |
|||||||||
outlineColor |
String |
<optional> |
'#fff000'
|
可选:只有在outline=true时生效,轮廓线颜色,默认为 #fff000 |
|||||||||
outlineWidth |
Number |
<optional> |
1.0
|
可选:只有在outline=true时生效,轮廓线宽度,默认1.0 |
|||||||||
onGround |
Boolean |
<optional> |
true
|
可选:是否贴地,默认自动贴地 |
|||||||||
index |
Number |
<optional> |
1
|
地图场景中,显示层级,值越高显示优先级越高,默认1 |
|||||||||
style |
Object |
<optional> |
null
|
多联级样式设置参数 Properties
|
Polygon面参数
PolylineOption
- Description:
Polyline线参数
- Source:
Properties:
Name | Type | Attributes | Default | Description | |||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
width |
Number |
<optional> |
5.0
|
可选:线段宽度,默认5.0 |
|||||||||
color |
String |
<optional> |
'#ffff00'
|
可选:线段颜色,默认为 #ffff00 |
|||||||||
onGround |
Boolean |
<optional> |
true
|
可选:是否贴地,默认自动贴地 |
|||||||||
index |
Number |
<optional> |
2
|
地图场景中,显示层级,值越高显示优先级越高,默认2 |
|||||||||
style |
Object |
<optional> |
null
|
多联级样式设置参数 Properties
|
Polyline线参数
ProfileResult(line, points)
- Description:
剖面分析回调参数
- Source:
Parameters:
Name | Type | Description |
---|---|---|
line |
Entity | 绘制的剖面线,Entity类对象,参考Cesium |
points |
Array.<DegreePosZ> | 剖面线的点集,WGS84坐标数组 |
ReGeocodeGd
- Description:
高德逆地理编码结果
- Source:
Properties:
Name | Type | Description |
---|---|---|
province |
String | 坐标点所在的省份名 |
city |
String | 坐标点所在的城市名 |
district |
String | 坐标点所在的区 |
township |
String | 坐标点所在乡镇/街道 |
address |
String | 坐标点格式化地址 |
高德逆地理编码结果
RegionCode
- Description:
行政区划对象
- Source:
Properties:
Name | Type | Description |
---|---|---|
label |
string | 地区名称 |
value |
string | 区划编码 |
children |
Array.<RegionCode> | 子级行政区划对象 |
行政区划对象
StepGD
- Description:
高德路径规划路线分段
- Source:
Properties:
Name | Type | Description |
---|---|---|
distance |
Number | 距离,单位:米(m) |
duration |
Number | 用时,单位:秒(s) |
instruction |
String | 行驶指示 |
orientation |
String | 进入道路方向 |
road_name |
String | 分段道路名称 |
tmcs |
Array.<TmcGD> | 分段路况详情 |
高德路径规划路线分段
StyleFilter
- Description:
多联级样式参数
- Source:
Properties:
Name | Type | Description |
---|---|---|
key |
String | 筛选条件关键词,将根据选择的字段关键字进行组合,比如图层所选关键字为"age",当前key设定为">10&&<30",则最终筛选条件为"age>10&&age<30" |
value |
BillboardOption | PolylineOption | PolygonOption | 样式参数,需根据图层类型不同选择 |
多联级样式参数
TmcGD
- Description:
高德路径规划路线分段路况
- Source:
Properties:
Name | Type | Description |
---|---|---|
tmc_distance |
Number | 从当前坐标点开始step中路况相同的距离 |
tmc_status |
String | 路况信息,包括:未知、畅通、缓行、拥堵、严重拥堵 |
tmc_polyline |
Array.<LngLat> | 此段路况涉及的道路坐标集合,WGS84坐标系 |
高德路径规划路线分段路况
ViewExtent
- Description:
地图四至对象,WGS84坐标
- Source:
Properties:
Name | Type | Description |
---|---|---|
minx |
Number | 最小经度值 |
miny |
Number | 最小纬度值 |
maxx |
Number | 最大经度值 |
maxy |
Number | 最大纬度值 |
地图四至对象,WGS84坐标
ViewStatus
- Description:
视角参数
- Source:
Properties:
Name | Type | Description | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
position |
Cartesian3 | DegreePosZ | 笛卡尔坐标值 |
||||||||||||
hpr |
Object | 欧拉角 Properties
|
视角参数
VolumeRes
- Description:
体积量测结果.
- Source:
Properties:
Name | Type | Description |
---|---|---|
minH |
boolean | 区域高程最高值,单位:米(m) |
maxH |
boolean | 区域高程最低值,单位:米(m) |
volume |
boolean | 体积值,单位:立方米(m³) |
体积量测结果.
VoxelsData
- Description:
体元栅格数据参数(三维)
- Source:
Properties:
Name | Type | Description |
---|---|---|
x |
Number | 经度值,WGS84坐标 |
y |
Number | 纬度值,WGS84坐标 |
z |
Number | 高度值,建议海拔高度 |
value |
Number | 待计算体元值 |
体元栅格数据参数(三维)
WaterGunOption
- Description:
水枪粒子参数
- Source:
Properties:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
angle |
Number |
<optional> |
30
|
喷射角度,以垂直于底面位0°,单位:度(°) |
gravity |
Number | 重力系数,控制水枪喷射过程水粒子下降程度,默认计算值为(-2.0 * dis) / (pos0.z - pos1.z) |
||
speed |
Number | 喷射速度,默认计算值为Math.ceil(dis / 5) |
水枪粒子参数
entityCallback(result)
- Description:
方法回调,返回Entity对象
- Source:
Parameters:
Name | Type | Description |
---|---|---|
result |
Entity | Entity对象,参照Cesium |
measureCallback(result)
- Description:
距离、面积、高度量测回调
- Source:
Parameters:
Name | Type | Description |
---|---|---|
result |
Number | 距离、面积、高度量测结果 |
objectCallback(res)
- Description:
方法回调,返Object对象
- Source:
Parameters:
Name | Type | Description |
---|---|---|
res |
Object | 返回的结构体 |
primitiveCallback(result)
- Description:
方法回调,返回Primitive类对象
- Source:
Parameters:
Name | Type | Description |
---|---|---|
result |
Primitive | GroundPrimitive | Primitive类对象,参照Cesium |
triangleCallback(result)
- Description:
三角、方位角量测回调
- Source:
Parameters:
Name | Type | Description |
---|---|---|
result |
Array.<Cartesian> | 三角、方位角量测结果 |
volumeCallback(result)
- Description:
体积量测回调
- Source:
Parameters:
Name | Type | Description |
---|---|---|
result |
VolumeRes | 三角、方位角量测结果 |