new TiandituAnnotationProvider()
天地图三维注记类。
| Name | Type | Description |
|---|---|---|
options.viewer |
viewer |
当前的viewer对象。 |
options.url |
String |
天地图三维注记服务的地址如:https://{s}.tianditu.gov.cn/mapservice。 |
options.token |
String |
天地图token。 |
options.proxy |
proxy |
获取该供应商使用的代理。 |
Methods
-
addCacheLabel()
-
将label的Entity加入瓦片。
-
addCacheTile(tile)
-
添加文字瓦片。
Name Type Description tiletile 瓦片。
-
createLabel(fontInfo, fontInfoCollection)
-
创建标签对象。
Name Type Description fontInfo某个注记的信息。
fontInfoCollection一张瓦片上所有注记的信息。
-
getCacheLabel(){*}
-
根据oid属性获取label的Entity对象。
Returns:
Type Description * -
getCacheTile(x, y, level){*}
-
从瓦片中取出文字瓦片。
Name Type Description x瓦片的X坐标。
y瓦片的Y坐标。
level瓦片的级别。
Returns:
Type Description * 瓦片中找不到返回null -
getIcoUrl(){string}
-
获得图标瓦片的url模板。
Returns:
Type Description string -
getTileUrl(){string}
-
获得label瓦片的url模板。
Returns:
Type Description string -
removeCacheLabel()
-
根据oid移除label的Entity。
-
removeCacheTile()
-
移除指定x, y, level的文字瓦片。