SceneConfigDataParser

new Cesium.SceneConfigDataParser()

场景配置解析器

Methods

static Cesium.SceneConfigDataParser.parseXmlFile(dataUrl)Promise.<Object>

解析场景配置文件
Name Type Description
dataUrl String optional 场景配置文件路径,格式为xml
Returns:
解析结果的异步对象,包含ok,message、resultObject属性的json对象

static Cesium.SceneConfigDataParser.parseXmlNode(xmlDoc)Object

解析场景配置文件
Name Type Description
xmlDoc Object optional 场景配置文件对象
Returns:
解析结果的异步对象,包含ok,message、resultObject属性的json对象
Need help? The fastest way to get answers is from the community and team on the Cesium Forum.