getFilenameFromUri
Given a URI, returns the last segment of the URI, removing any path or query information.
//fileName will be"simple.czml";
const fileName = getFilenameFromUri('/Gallery/simple.czml?value=true&example=false');
Content copied to clipboard
Return
The last segment of the Uri.
Parameters
uri
The Uri.