bruce-cesium 4.6.0 → 4.6.1
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 +28 -5
- package/dist/bruce-cesium.es5.js.map +1 -1
- package/dist/bruce-cesium.umd.js +26 -3
- package/dist/bruce-cesium.umd.js.map +1 -1
- package/dist/lib/bruce-cesium.js +1 -1
- package/dist/lib/rendering/render-managers/tilesets/tileset-osm-render-manager.js +25 -2
- package/dist/lib/rendering/render-managers/tilesets/tileset-osm-render-manager.js.map +1 -1
- package/dist/types/bruce-cesium.d.ts +1 -1
- package/dist/types/rendering/render-managers/tilesets/tileset-osm-render-manager.d.ts +1 -0
- package/package.json +1 -1
package/dist/bruce-cesium.es5.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { BruceEvent, Cartes, Entity as Entity$1, Carto, Geometry, MathUtils, LRUCache, Api, Calculator, ClientFile, EntityTag, EntityType, ObjectUtils, Style, ProjectViewTile, DelayQueue, EntityLod, Bounds, ZoomControl, EntityRelationType, ENVIRONMENT, EntityHistoricData, Tileset, EntityCoords, EntitySource, MenuItem, EntityRelation, ProgramKey, ProjectView, ProjectViewBookmark, ProjectViewLegacyTile,
|
|
1
|
+
import { BruceEvent, Cartes, Entity as Entity$1, Carto, Geometry, MathUtils, LRUCache, Api, Calculator, ClientFile, EntityTag, EntityType, ObjectUtils, Style, ProjectViewTile, DelayQueue, EntityLod, Bounds, ZoomControl, EntityRelationType, ENVIRONMENT, EntityHistoricData, Tileset, EntityCoords, EntitySource, MenuItem, EntityRelation, ProgramKey, ProjectView, ProjectViewBookmark, Camera, ProjectViewLegacyTile, AbstractApi, Session, EntityAttribute, EntityAttachment, EntityAttachmentType } from 'bruce-models';
|
|
2
2
|
import * as Cesium from 'cesium';
|
|
3
|
-
import { Cartographic, Cartesian2, Math as Math$1, Cartesian3, CallbackProperty, Color, HeightReference, Rectangle, JulianDate, Entity, DistanceDisplayCondition, ClassificationType, ArcType, CornerType, ShadowMode,
|
|
3
|
+
import { Cartographic, Cartesian2, Math as Math$1, Cartesian3, CallbackProperty, Color, HeightReference, Rectangle, JulianDate, Entity, DistanceDisplayCondition, HorizontalOrigin, VerticalOrigin, ConstantProperty, ConstantPositionProperty, ClassificationType, ArcType, CornerType, ShadowMode, PolygonHierarchy, PolylineGraphics, ColorMaterialProperty, ColorBlendMode, HeadingPitchRoll, Transforms, Model, Primitive, Cesium3DTileFeature, SceneMode, GeoJsonDataSource, Cesium3DTileColorBlendMode, HeadingPitchRange, Cesium3DTileStyle, Ion, KmlDataSource, SceneTransforms, OrthographicFrustum, EasingFunction, NearFarScalar, EllipsoidTerrainProvider, BingMapsImageryProvider, BingMapsStyle, MapboxImageryProvider, MapboxStyleImageryProvider, ArcGisMapServerImageryProvider, OpenStreetMapImageryProvider, UrlTemplateImageryProvider, GridImageryProvider, GeographicTilingScheme, ImageryLayer, TileMapServiceImageryProvider, IonImageryProvider, CesiumTerrainProvider, Cesium3DTileset, Matrix4, Matrix3, IonResource, CesiumInspector, defined, ClockRange, EllipsoidGeodesic, sampleTerrainMostDetailed, PolygonPipeline, BoundingSphere, GeometryInstance, ModelGraphics, PolygonGraphics, CorridorGraphics, PointGraphics, BillboardGraphics, EllipseGraphics, PolylineDashMaterialProperty, Quaternion, ScreenSpaceEventHandler, ScreenSpaceEventType, CzmlDataSource, Intersect, Fullscreen } from 'cesium';
|
|
4
4
|
|
|
5
5
|
/*! *****************************************************************************
|
|
6
6
|
Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -16714,6 +16714,7 @@ var TilesetOsmRenderManager;
|
|
|
16714
16714
|
this.entityTypeId = null;
|
|
16715
16715
|
this.queueCheckInterval = null;
|
|
16716
16716
|
this.processingQueue = 0;
|
|
16717
|
+
this._osmIdToBruceId = {};
|
|
16717
16718
|
var viewer = params.viewer, visualsManager = params.register, apiGetter = params.getters, monitor = params.monitor, item = params.item;
|
|
16718
16719
|
this.viewer = viewer;
|
|
16719
16720
|
this.getters = apiGetter;
|
|
@@ -16964,7 +16965,7 @@ var TilesetOsmRenderManager;
|
|
|
16964
16965
|
};
|
|
16965
16966
|
Manager.prototype.mapTileBatch = function (features) {
|
|
16966
16967
|
return __awaiter(this, void 0, void 0, function () {
|
|
16967
|
-
var featureIds, featureMap, _loop_1, this_1, i, api, bIds, i, osmId, bruceId, feature, rego, visual;
|
|
16968
|
+
var featureIds, featureMap, _loop_1, this_1, i, toSearchFeatureIds, i, api, bIds, i, osmId, bId, i, osmId, bruceId, feature, rego, visual;
|
|
16968
16969
|
return __generator(this, function (_a) {
|
|
16969
16970
|
switch (_a.label) {
|
|
16970
16971
|
case 0:
|
|
@@ -16986,6 +16987,13 @@ var TilesetOsmRenderManager;
|
|
|
16986
16987
|
for (i = 0; i < features.length; i++) {
|
|
16987
16988
|
_loop_1(i);
|
|
16988
16989
|
}
|
|
16990
|
+
toSearchFeatureIds = [];
|
|
16991
|
+
for (i = 0; i < featureIds.length; i++) {
|
|
16992
|
+
if (!this._osmIdToBruceId[featureIds[i]]) {
|
|
16993
|
+
toSearchFeatureIds.push(featureIds[i]);
|
|
16994
|
+
}
|
|
16995
|
+
}
|
|
16996
|
+
if (!toSearchFeatureIds.length) return [3 /*break*/, 2];
|
|
16989
16997
|
api = this.getters.GetBruceApi();
|
|
16990
16998
|
return [4 /*yield*/, EntitySource.GetEntityIdsBySourceKeys({
|
|
16991
16999
|
api: api,
|
|
@@ -16996,7 +17004,22 @@ var TilesetOsmRenderManager;
|
|
|
16996
17004
|
bIds = (_a.sent()).idMapping;
|
|
16997
17005
|
for (i = 0; i < featureIds.length; i++) {
|
|
16998
17006
|
osmId = featureIds[i];
|
|
16999
|
-
|
|
17007
|
+
bId = bIds[osmId];
|
|
17008
|
+
if (!bId) {
|
|
17009
|
+
bId = ObjectUtils.UId();
|
|
17010
|
+
}
|
|
17011
|
+
// Record so the same OSM ID will correlate to the same Nextspace ID.
|
|
17012
|
+
// This is important because we can have multiple pieces of the same building with the same OSM ID.
|
|
17013
|
+
// We need to ensure we don't generate a placeholder that is difference for each piece.
|
|
17014
|
+
this._osmIdToBruceId[osmId] = bId;
|
|
17015
|
+
}
|
|
17016
|
+
_a.label = 2;
|
|
17017
|
+
case 2:
|
|
17018
|
+
for (i = 0; i < featureIds.length; i++) {
|
|
17019
|
+
osmId = featureIds[i];
|
|
17020
|
+
bruceId = this._osmIdToBruceId[osmId];
|
|
17021
|
+
// Should not happen.
|
|
17022
|
+
// We cover unknowns earlier, this is just in case.
|
|
17000
17023
|
if (!bruceId) {
|
|
17001
17024
|
bruceId = ObjectUtils.UId();
|
|
17002
17025
|
}
|
|
@@ -27839,7 +27862,7 @@ var WidgetViewBar = /** @class */ (function (_super) {
|
|
|
27839
27862
|
return WidgetViewBar;
|
|
27840
27863
|
}(Widget.AWidget));
|
|
27841
27864
|
|
|
27842
|
-
var VERSION = "4.6.
|
|
27865
|
+
var VERSION = "4.6.1";
|
|
27843
27866
|
|
|
27844
27867
|
export { VERSION, CesiumViewMonitor, ViewerUtils, ViewerEventTracker, MenuItemManager, EntityRenderEngine, EntityRenderEnginePoint, EntityRenderEnginePolyline, EntityRenderEnginePolygon, EntityRenderEngineModel3d, MenuItemCreator, VisualsRegister, RenderManager, EntitiesIdsRenderManager, EntitiesLoadedRenderManager, EntitiesRenderManager, EntityRenderManager, TilesetCadRenderManager, TilesetArbRenderManager, TilesetEntitiesRenderManager, TilesetOsmRenderManager, TilesetPointcloudRenderManager, TilesetGooglePhotosRenderManager, DataSourceStaticKmlManager, GoogleSearchRenderManager, RelationsRenderManager, SharedGetters, CesiumParabola, EntityLabel, ViewRenderEngine, TileRenderEngine, TilesetRenderEngine, CESIUM_INSPECTOR_KEY, CESIUM_TIMELINE_KEY, ViewUtils, DrawingUtils, MeasureUtils, EntityUtils, CesiumEntityStyler, CesiumAnimatedProperty, CesiumAnimatedInOut, Draw3dPolygon, Draw3dPolyline, MeasureCreator, Widget, VIEWER_BOOKMARKS_WIDGET_KEY, WidgetBookmarks, WidgetBranding, WidgetCursorBar, WidgetEmbeddedInfoView, WidgetInfoView, WidgetNavCompass$$1 as WidgetNavCompass, VIEWER_VIEW_BAR_WIDGET_KEY, WidgetViewBar, WidgetControlViewBar, WidgetControlViewBarSearch, VIEWER_LEFT_PANEL_WIDGET_KEY, VIEWER_LEFT_PANEL_CSS_VAR_LEFT, WidgetLeftPanel, WidgetLeftPanelTab, WidgetLeftPanelTabBookmarks };
|
|
27845
27868
|
//# sourceMappingURL=bruce-cesium.es5.js.map
|