bruce-cesium 1.6.3 → 1.6.4
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
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { BruceEvent, Cartes, Carto, Entity as Entity$1, Geometry, Tileset, ZoomControl, Style, EntityTag, Calculator, EntityLod, EntityType, ClientFile, ObjectUtils, DelayQueue, BatchedDataGetter, EntityRelationType, EntityCoords, EntityFilterGetter, EntitySource, MenuItem, EntityRelation, ProjectView, ProjectViewBookmark, ProjectViewTile, ProjectViewLegacyTile, ProgramKey, Camera } from 'bruce-models';
|
|
2
|
-
import { Cartesian2, Cartographic, Math as Math$1,
|
|
2
|
+
import { Cartesian2, Cartographic, Math as Math$1, SceneMode, Cartesian3, Entity, Primitive, Cesium3DTileFeature, Color, HeightReference, EllipsoidTerrainProvider, HorizontalOrigin, VerticalOrigin, ClassificationType, ArcType, PolygonHierarchy, ShadowMode, PolylineGraphics, HeadingPitchRoll, Transforms, ColorBlendMode, Cesium3DTileColorBlendMode, HeadingPitchRange, KmlDataSource, createOsmBuildings, Cesium3DTileStyle, Rectangle, CallbackProperty, createWorldTerrain, CesiumTerrainProvider, BingMapsImageryProvider, BingMapsStyle, MapboxImageryProvider, MapboxStyleImageryProvider, ArcGisMapServerImageryProvider, OpenStreetMapImageryProvider, GridImageryProvider, GeographicTilingScheme, ImageryLayer, UrlTemplateImageryProvider, TileMapServiceImageryProvider, IonImageryProvider, PolygonPipeline, Cesium3DTileset, Matrix4, IonResource, OrthographicFrustum, JulianDate, EllipsoidGeodesic, sampleTerrainMostDetailed, ColorMaterialProperty, Matrix3, EasingFunction, GeometryInstance } from 'cesium';
|
|
3
3
|
|
|
4
4
|
var TIME_LAG = 300;
|
|
5
5
|
var POSITION_CHECK_TIMER = 950;
|
|
@@ -766,7 +766,12 @@ var EntityUtils;
|
|
|
766
766
|
function evaluateRecord() {
|
|
767
767
|
if (entity.location && Carto.ValidateCarto(entity.location)) {
|
|
768
768
|
var location_1 = entity.location;
|
|
769
|
-
|
|
769
|
+
var latitude = EnsureNumber(location_1.latitude);
|
|
770
|
+
var longitude = EnsureNumber(location_1.longitude);
|
|
771
|
+
// Disallowing exact 0.
|
|
772
|
+
if (latitude || longitude) {
|
|
773
|
+
return Cartesian3.fromDegrees(longitude, latitude, EnsureNumber(location_1.altitude));
|
|
774
|
+
}
|
|
770
775
|
}
|
|
771
776
|
if (entity.geometry && typeof entity.geometry == "object") {
|
|
772
777
|
var pointStr = entity.geometry.Point;
|
|
@@ -818,8 +823,11 @@ var EntityUtils;
|
|
|
818
823
|
longitude: (EnsureNumber(entity.boundaries.minLongitude) + EnsureNumber(entity.boundaries.maxLongitude)) / 2,
|
|
819
824
|
altitude: 0
|
|
820
825
|
};
|
|
821
|
-
|
|
822
|
-
|
|
826
|
+
// Disallowing exact 0.
|
|
827
|
+
if (point.latitude || point.longitude) {
|
|
828
|
+
if (Carto.ValidateCarto(point)) {
|
|
829
|
+
return Cartesian3.fromDegrees(point.longitude, point.latitude, point.altitude);
|
|
830
|
+
}
|
|
823
831
|
}
|
|
824
832
|
}
|
|
825
833
|
}
|