Module: getBaseUri

Given a URI, returns the base path of the URI.
Parameters:
Name Type Attributes Default Description
uri String The Uri.
includeQuery Boolean <optional>
false Whether or not to include the query string and fragment form the uri
Source:
Returns:
The base path of the Uri.
Type
String
Example
// basePath will be "/Gallery/";
var basePath = Cesium.getBaseUri('/Gallery/simple.czml?value=true&example=false');

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