Class: symbolLibManager

L.supermap.plotting.symbolLibManager

标号库管理类。

L.supermap.plotting.symbolLibManager(url, options)

leaflet/plot/SymbolLibManager.js, line 3
Name Type Description
url string

标绘服务地址。

options Object

标号库参数。

Name Type Description
libIDs Array.<number> 可选

指定要初始化标号库的ID列表,否则初始化所有标号库。

Example
var symbolLibManager = new L.supermap.plotting.symbolLibManager(url);
     symbolLibManager.on(SuperMap.Plot.Event.initializecompleted, function(){ });
     symbolLibManager.initializeAsync();

Methods

cacheSymbolLib(libID)

leaflet/plot/SymbolLibManager.js, line 253

缓存指定标号库的所有点标号。缓存完成后触发事件"cacheSymbolLibCompleted"。

Name Type Description
libID number

标号库的ID。

destroy()

leaflet/plot/SymbolLibManager.js, line 72

销毁图形对象。

findSymbolByCode(code){Object}

leaflet/plot/SymbolLibManager.js, line 304

根据标号的code在标号库中查找标号。

Name Type Description
code number

标号的code。

Returns:
Type Description
Object 返回标号信息。

findSymbolByName(name){Object}

leaflet/plot/SymbolLibManager.js, line 286

根据标号名称在标号库中查询标号。

Name Type Description
name string

标号的名称。

Returns:
Type Description
Object 返回标号信息。

getSymbolLibByIndex(index){L.supermap.plotting.symbolLib}

leaflet/plot/SymbolLibManager.js, line 202

获取指定索引的标号库。

Name Type Description
index number

标号库的索引。

Returns:
Type Description
L.supermap.plotting.symbolLib 返回指定索引的标号库。

getSymbolLibByLibId(libID){L.supermap.plotting.symbolLib}

leaflet/plot/SymbolLibManager.js, line 216

获取指定库标识的标号库。

Name Type Description
libID number

标号库的ID。

Returns:
Type Description
L.supermap.plotting.symbolLib 返回指定库标识的标号库。

getSymbolLibID(index){number}

leaflet/plot/SymbolLibManager.js, line 175

获取指定索引的标号库标识。

Name Type Description
index number

指定的索引。

Returns:
Type Description
number 返回指定索引的标号库标识。

getSymbolLibJSONInfo(){String}

leaflet/plot/SymbolLibManager.js, line 189

获取JSON格式的标号库信息。

Returns:
Type Description
String 返回JSON格式的标号库信息。

getSymbolLibNumber(){number}

leaflet/plot/SymbolLibManager.js, line 166

获取当前系统中标号库数量。

Returns:
Type Description
number 返回当前系统中标号库数量。

getSymbolName(libID, code){String}

leaflet/plot/SymbolLibManager.js, line 270

获取标号名称。

Name Type Description
libID number

标号的ID。

code number

标号的code。

Returns:
Type Description
String 返回标号名称。

initializeAsync()

leaflet/plot/SymbolLibManager.js, line 85

异步初始化标号库管理对象。

isInitializeOK(){boolean}

leaflet/plot/SymbolLibManager.js, line 157

获取标号库管理对象是否初始化完成。

Returns:
Type Description
boolean 初始化完成返回true,否则返回false。