You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
438 B
JavaScript
18 lines
438 B
JavaScript
import { defined } from "../Source/Cesium.js";
|
|
import { DeveloperError } from "../Source/Cesium.js";
|
|
|
|
function createTileKey(xOrTile, y, level) {
|
|
if (!defined(xOrTile)) {
|
|
throw new DeveloperError("xOrTile is required");
|
|
}
|
|
|
|
if (typeof xOrTile === "object") {
|
|
var tile = xOrTile;
|
|
xOrTile = tile.x;
|
|
y = tile.y;
|
|
level = tile.level;
|
|
}
|
|
return "L" + level + "X" + xOrTile + "Y" + y;
|
|
}
|
|
export default createTileKey;
|