TiandituAnnotationProvider

new SuperMap3D.TiandituAnnotationProvider(options)

Tiantu 3D annotation class.
Name Type Description
options Object optional The object has the following properties:
Name Type Description
viewer viewer The current viewer object.
url String The address of Tiandi Ditu's 3D annotation service is: https://{s}.tianditu.gov.cn/mapservice.
token String Tiantu token.
proxy proxy Get the proxy used by this provider.

Methods

addCacheLabel(x)

Add the label's Entity to the cache
Name Type Description
x

addCacheTile(tile)

Add Text Slice Cache
Name Type Description
tile

createLabel(fontInfo, fontInfoCollection)

Create label object
Name Type Description
fontInfo information about a note
fontInfoCollection Information about all annotations on a slice

getCacheLabel(oid)*

Get the Entity object of the label according to the oid attribute
Name Type Description
oid
Returns:

getCacheTile(x, y, level, b)*

Get text slices from the cache
Name Type Description
x
y
level
b
Returns:
not found in the cache returns null

getIcoUrl()string

Get the url template of the icon slice
Returns:

getTileUrl()string

Get the url template of the label slice
Returns:

removeCacheLabel(oid)

Remove the Entity of the label according to the oid
Name Type Description
oid

removeCacheTile(x, y, level, t)

Remove the text slice with the specified x, y, level
Name Type Description
x
y
level
t