getBaseUri

getBaseUri(uri, includeQuery)String

给定一个URI,返回该URI的基本路径。
Name Type Default Description
uri String Uri.
includeQuery Boolean false optional 是否包含查询字符串和uri片段。
Returns:
Uri的基本路径。
Example:
// basePath 将为 "/Gallery/";
var basePath = Cesium.getBaseUri('/Gallery/simple.czml?value=true&example=false');

// basePath 将为 "/Gallery/?value=true&example=false";
var basePath = Cesium.getBaseUri('/Gallery/simple.czml?value=true&example=false', true);