bruce-cesium 0.2.8 → 0.2.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bruce-cesium.es5.js +34 -2
- package/dist/bruce-cesium.es5.js.map +1 -1
- package/dist/bruce-cesium.umd.js +31 -0
- package/dist/bruce-cesium.umd.js.map +1 -1
- package/dist/lib/bruce-cesium.js +1 -0
- package/dist/lib/bruce-cesium.js.map +1 -1
- package/dist/types/bruce-cesium.d.ts +1 -0
- package/package.json +1 -1
package/dist/bruce-cesium.umd.js
CHANGED
|
@@ -4026,6 +4026,37 @@
|
|
|
4026
4026
|
return MeasureAddon;
|
|
4027
4027
|
}());
|
|
4028
4028
|
|
|
4029
|
+
(function (ViewUtils) {
|
|
4030
|
+
function GatherLegacyMapTiles(viewer) {
|
|
4031
|
+
var collection = viewer.imageryLayers;
|
|
4032
|
+
var tiles = [];
|
|
4033
|
+
for (var i = 0; i < collection.length; i++) {
|
|
4034
|
+
var layer = collection.get(i);
|
|
4035
|
+
if (layer._bName) {
|
|
4036
|
+
tiles.push({
|
|
4037
|
+
alpha: layer.alpha,
|
|
4038
|
+
brightness: layer.brightness,
|
|
4039
|
+
contrast: layer.contrast,
|
|
4040
|
+
hue: layer.hue,
|
|
4041
|
+
saturation: layer.saturation,
|
|
4042
|
+
gamma: layer.gamma,
|
|
4043
|
+
title: layer._bName,
|
|
4044
|
+
});
|
|
4045
|
+
}
|
|
4046
|
+
}
|
|
4047
|
+
return tiles.reverse();
|
|
4048
|
+
}
|
|
4049
|
+
ViewUtils.GatherLegacyMapTiles = GatherLegacyMapTiles;
|
|
4050
|
+
function GatherLegacyTerrainTile(viewer) {
|
|
4051
|
+
var enabled = viewer.terrainProvider;
|
|
4052
|
+
if (enabled === null || enabled === void 0 ? void 0 : enabled._bName) {
|
|
4053
|
+
return enabled._bName;
|
|
4054
|
+
}
|
|
4055
|
+
return "flatterrain";
|
|
4056
|
+
}
|
|
4057
|
+
ViewUtils.GatherLegacyTerrainTile = GatherLegacyTerrainTile;
|
|
4058
|
+
})(exports.ViewUtils || (exports.ViewUtils = {}));
|
|
4059
|
+
|
|
4029
4060
|
exports.CesiumViewMonitor = CesiumViewMonitor;
|
|
4030
4061
|
exports.MeasureAddon = MeasureAddon;
|
|
4031
4062
|
|