getBaseUri

getBaseUri(uri, includeQuery)String

获取或推导基础 URI‌,为构建绝对 URI 提供基准路径
Name Type Default Description
uri String Uri。
includeQuery Boolean false optional 是否在 uri 中包含查询字符串和片段。
Returns:
Uri 的基本路径。
Example:
// basePath will be "/Gallery/";
var basePath = SuperMap3D.getBaseUri('/Gallery/simple.czml?value=true&example=false');

// basePath will be "/Gallery/?value=true&example=false";
var basePath = SuperMap3D.getBaseUri('/Gallery/simple.czml?value=true&example=false', true);