PlottingSymbolLibManager

new Cesium.PlottingSymbolLibManager()

符号标绘库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 对象具有如下属性:
Name Type Description
url String optional
Returns:
返回符号库对象

static Cesium.PlottingSymbolLibManager.getSymbolLibByID(id)PlottingSymbolLib

根据id获取符号库
Name Type Description
id String 符号库的id.
Returns:
如果已经存在返回符号库对象,否则返回undefined
Need help? The fastest way to get answers is from the community and team on the Cesium Forum.