TiandituAnnotationProvider

new SuperMap3D.TiandituAnnotationProvider(options)

天地图三维注记类。
Name Type Description
options Object optional 对象具有以下属性:
Name Type Description
viewer viewer 当前的viewer对象。
url String 天地图三维注记服务的地址如:https://{s}.tianditu.gov.cn/mapservice。
token String 天地图token。
proxy proxy 获取该供应商使用的代理。

Methods

addCacheLabel(x)

将label的Entity加入缓存
Name Type Description
x

addCacheTile(tile)

添加文字切片缓存
Name Type Description
tile

createLabel(fontInfo, fontInfoCollection)

创建标签对象
Name Type Description
fontInfo 某个注记的信息
fontInfoCollection 一张切片上所有注记的信息

getCacheLabel(oid)*

根据oid属性获取label的Entity对象
Name Type Description
oid
Returns:

getCacheTile(x, y, level, b)*

从缓存中取出文字切片
Name Type Description
x
y
level
b
Returns:
缓存中找不到返回null

getIcoUrl()string

获得图标切片的url模板
Returns:

getTileUrl()string

获得label切片的url模板
Returns:

removeCacheLabel(oid)

根据oid移除label的Entity
Name Type Description
oid

removeCacheTile(x, y, level, t)

移除指定x, y, level的文字切片
Name Type Description
x
y
level
t