符号标绘库
PlottingSymbolLib
管理器,用以管理已加载的符号库
Example:
const options ={
url : "http://172.30.80.144:8090/fontTest/MapServerParks.ttf",
}
const symbolLib = Cesium.PlottingSymbolLibManager.getOrCreateSymbolLib(options);
symbolLib.initEvent.addEventListener(function (result) {
if(result.success)//初始化成功
{
//do something
}
else
{
//do something
}
console.log(result.message);
});
Methods
static Cesium.PlottingSymbolLibManager.getOrCreateSymbolLib(options) → PlottingSymbolLib
获取或创建符号库
Name | Type | Description | ||||||
---|---|---|---|---|---|---|---|---|
options |
Object |
对象具有如下属性:
|
Returns:
返回符号库对象
static Cesium.PlottingSymbolLibManager.getSymbolLibByID(id) → PlottingSymbolLib
根据id获取符号库
Name | Type | Description |
---|---|---|
id |
String | 符号库的id. |
Returns:
如果已经存在返回符号库对象,否则返回undefined