@cesium/engine 10.1.0 → 11.1.0
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/Build/Workers/{chunk-EB7PNZTK.js → chunk-26GA3JAM.js} +6 -5
- package/Build/Workers/{chunk-RZLZWKFN.js → chunk-27HUZ7SA.js} +4 -4
- package/Build/Workers/{chunk-A5CODJ4M.js → chunk-2ZGOQXYU.js} +6 -6
- package/Build/Workers/{chunk-TF776XCO.js → chunk-3Q2L65QU.js} +7 -7
- package/Build/Workers/{chunk-NVOABL76.js → chunk-472HQ3EH.js} +5 -5
- package/Build/Workers/{chunk-QX5XS4LC.js → chunk-5ODQSF26.js} +2 -2
- package/Build/Workers/{chunk-4YSNMHZ4.js → chunk-5OOFQLKF.js} +6 -6
- package/Build/Workers/{chunk-OXALEQPI.js → chunk-5PTXS2GO.js} +49 -23
- package/Build/Workers/{chunk-T77JILCU.js → chunk-6CHGCNMW.js} +2 -2
- package/Build/Workers/{chunk-FEVVHITK.js → chunk-76BYBWHP.js} +4 -4
- package/Build/Workers/{chunk-65MZOUNU.js → chunk-7BMOHCPM.js} +13 -13
- package/Build/Workers/{chunk-VE7BFUIX.js → chunk-7JO7GPJN.js} +1 -1
- package/Build/Workers/{chunk-5BLJ5ZM6.js → chunk-7KTQP4VB.js} +5 -5
- package/Build/Workers/{chunk-G5V4GPZE.js → chunk-7O373FFS.js} +8 -34
- package/Build/Workers/{chunk-S3PI2KFM.js → chunk-AD63PIY6.js} +2 -2
- package/Build/Workers/{chunk-6D66DPRV.js → chunk-BHQJ2NT7.js} +6 -6
- package/Build/Workers/{chunk-I2RC4XVN.js → chunk-C6YYBQXW.js} +4 -4
- package/Build/Workers/{chunk-X2ZQ7RJR.js → chunk-CKY7HOHV.js} +9 -9
- package/Build/Workers/{chunk-TO2PVHKI.js → chunk-DHYHSFFJ.js} +2 -2
- package/Build/Workers/{chunk-R6B7UCQB.js → chunk-DI5NGJUP.js} +2 -2
- package/Build/Workers/{chunk-X23FRWHJ.js → chunk-E27BLMDD.js} +7 -9
- package/Build/Workers/{chunk-N4QEHO3U.js → chunk-E63IIM5T.js} +1 -1
- package/Build/Workers/{chunk-BY3E4ONI.js → chunk-E6V6SQZW.js} +6 -6
- package/Build/Workers/{chunk-LSSWVB2X.js → chunk-EJZTDTUH.js} +4 -4
- package/Build/Workers/{chunk-XLTOBCDI.js → chunk-FDOV2LBJ.js} +7 -7
- package/Build/Workers/{chunk-ACRTCBN5.js → chunk-FIGIZHAQ.js} +11 -11
- package/Build/Workers/{chunk-4RMIRG6T.js → chunk-GESF4OXQ.js} +2 -2
- package/Build/Workers/{chunk-PNFHVBSF.js → chunk-GGZJN2TI.js} +16 -15
- package/Build/Workers/{chunk-KV4EQHK4.js → chunk-GNBFYG7F.js} +83 -79
- package/Build/Workers/{chunk-FOZWUH4T.js → chunk-GWCFU2SA.js} +7 -7
- package/Build/Workers/{chunk-Q55ECN3Y.js → chunk-I2ITFFPX.js} +1 -1
- package/Build/Workers/{chunk-XQI7XZHX.js → chunk-IBLIYJZR.js} +6 -6
- package/Build/Workers/{chunk-D2U4RI64.js → chunk-JW4FOI6M.js} +7 -7
- package/Build/Workers/{chunk-2J3JKXCP.js → chunk-K4GQUNB5.js} +9 -5
- package/Build/Workers/{chunk-POSRARY7.js → chunk-M3GMB5OP.js} +10 -10
- package/Build/Workers/{chunk-OOK53QUQ.js → chunk-MXIZJAPH.js} +1 -1
- package/Build/Workers/{chunk-OWGTMVDB.js → chunk-N5KJGGCM.js} +18 -20
- package/Build/Workers/{chunk-J7MQUQJY.js → chunk-NGPPMXRM.js} +12 -7
- package/Build/Workers/{chunk-OOMCT7OL.js → chunk-O3E4OAOE.js} +13 -13
- package/Build/Workers/{chunk-C3Z23UUJ.js → chunk-PGRPDNHG.js} +19 -23
- package/Build/Workers/{chunk-4VFBBNQ3.js → chunk-PRGYLLJT.js} +1 -1
- package/Build/Workers/{chunk-XZZNKIEV.js → chunk-S6MRMMQU.js} +6 -6
- package/Build/Workers/{chunk-76BYYG7N.js → chunk-SMDOP47J.js} +10 -10
- package/Build/Workers/{chunk-ZU334IDQ.js → chunk-TGONEMZO.js} +11 -11
- package/Build/Workers/{chunk-VRZ46QZ5.js → chunk-TKVT5GQM.js} +13 -13
- package/Build/Workers/{chunk-FDCLACT5.js → chunk-U72QNFOJ.js} +15 -25
- package/Build/Workers/{chunk-F3NDOSTZ.js → chunk-VJZB3WAV.js} +7 -7
- package/Build/Workers/{chunk-GPJR7MPQ.js → chunk-VU2MNO7L.js} +7 -7
- package/Build/Workers/{chunk-R4OIEIPE.js → chunk-XY4BATBS.js} +4 -4
- package/Build/Workers/{chunk-T6LPN7RI.js → chunk-YFXQECWV.js} +5 -5
- package/Build/Workers/{chunk-UCIPJSZX.js → chunk-YSGTGQQO.js} +14 -14
- package/Build/Workers/{chunk-BGE4QVG7.js → chunk-YZ733KKS.js} +12 -12
- package/Build/Workers/combineGeometry.js +23 -25
- package/Build/Workers/createBoxGeometry.js +16 -16
- package/Build/Workers/createBoxOutlineGeometry.js +14 -14
- package/Build/Workers/createCircleGeometry.js +24 -24
- package/Build/Workers/createCircleOutlineGeometry.js +17 -17
- package/Build/Workers/createCoplanarPolygonGeometry.js +31 -31
- package/Build/Workers/createCoplanarPolygonOutlineGeometry.js +29 -29
- package/Build/Workers/createCorridorGeometry.js +27 -27
- package/Build/Workers/createCorridorOutlineGeometry.js +26 -26
- package/Build/Workers/createCylinderGeometry.js +18 -18
- package/Build/Workers/createCylinderOutlineGeometry.js +16 -16
- package/Build/Workers/createEllipseGeometry.js +24 -24
- package/Build/Workers/createEllipseOutlineGeometry.js +17 -17
- package/Build/Workers/createEllipsoidGeometry.js +17 -17
- package/Build/Workers/createEllipsoidOutlineGeometry.js +16 -16
- package/Build/Workers/createFrustumGeometry.js +16 -16
- package/Build/Workers/createFrustumOutlineGeometry.js +16 -16
- package/Build/Workers/createGeometry.js +25 -26
- package/Build/Workers/createGroundPolylineGeometry.js +20 -20
- package/Build/Workers/createPlaneGeometry.js +14 -14
- package/Build/Workers/createPlaneOutlineGeometry.js +13 -13
- package/Build/Workers/createPolygonGeometry.js +36 -40
- package/Build/Workers/createPolygonOutlineGeometry.js +40 -48
- package/Build/Workers/createPolylineGeometry.js +23 -23
- package/Build/Workers/createPolylineVolumeGeometry.js +32 -31
- package/Build/Workers/createPolylineVolumeOutlineGeometry.js +25 -25
- package/Build/Workers/createRectangleGeometry.js +28 -30
- package/Build/Workers/createRectangleOutlineGeometry.js +19 -19
- package/Build/Workers/createSimplePolylineGeometry.js +21 -21
- package/Build/Workers/createSphereGeometry.js +17 -17
- package/Build/Workers/createSphereOutlineGeometry.js +16 -16
- package/Build/Workers/createTaskProcessorWorker.js +3 -3
- package/Build/Workers/createVectorTileClampedPolylines.js +13 -13
- package/Build/Workers/createVectorTileGeometries.js +22 -22
- package/Build/Workers/createVectorTilePoints.js +12 -12
- package/Build/Workers/createVectorTilePolygons.js +20 -20
- package/Build/Workers/createVectorTilePolylines.js +13 -13
- package/Build/Workers/createVerticesFromGoogleEarthEnterpriseBuffer.js +22 -26
- package/Build/Workers/createVerticesFromHeightmap.js +26 -26
- package/Build/Workers/createVerticesFromQuantizedTerrainMesh.js +42 -32
- package/Build/Workers/createWallGeometry.js +22 -22
- package/Build/Workers/createWallOutlineGeometry.js +21 -21
- package/Build/Workers/decodeDraco.js +11 -11
- package/Build/Workers/decodeGoogleEarthEnterprisePacket.js +28 -5
- package/Build/Workers/decodeI3S.js +10 -10
- package/Build/Workers/transcodeKTX2.js +19 -18
- package/Build/Workers/transferTypedArrayTest.js +1 -1
- package/Build/Workers/upsampleQuantizedTerrainMesh.js +20 -20
- package/Source/Core/ApproximateTerrainHeights.js +15 -15
- package/Source/Core/ArcGISTiledElevationTerrainProvider.js +33 -35
- package/Source/Core/AttributeCompression.js +12 -12
- package/Source/Core/AxisAlignedBoundingBox.js +2 -2
- package/Source/Core/BingMapsGeocoderService.js +1 -1
- package/Source/Core/BoundingRectangle.js +3 -3
- package/Source/Core/BoundingSphere.js +44 -44
- package/Source/Core/BoxGeometry.js +6 -6
- package/Source/Core/BoxOutlineGeometry.js +3 -3
- package/Source/Core/Cartesian2.js +7 -7
- package/Source/Core/Cartesian3.js +20 -20
- package/Source/Core/Cartesian4.js +8 -8
- package/Source/Core/Cartographic.js +6 -6
- package/Source/Core/CatmullRomSpline.js +6 -6
- package/Source/Core/CesiumTerrainProvider.js +66 -68
- package/Source/Core/Check.d.ts +3 -3
- package/Source/Core/Check.js +11 -11
- package/Source/Core/CircleGeometry.js +6 -6
- package/Source/Core/CircleOutlineGeometry.js +4 -4
- package/Source/Core/Clock.js +4 -4
- package/Source/Core/Color.js +11 -8
- package/Source/Core/ColorGeometryInstanceAttribute.js +1 -1
- package/Source/Core/ComponentDatatype.js +4 -4
- package/Source/Core/CompressedTextureBuffer.js +13 -2
- package/Source/Core/ConstantSpline.js +1 -1
- package/Source/Core/CoplanarPolygonGeometry.js +44 -41
- package/Source/Core/CoplanarPolygonGeometryLibrary.js +5 -5
- package/Source/Core/CoplanarPolygonOutlineGeometry.js +6 -6
- package/Source/Core/CorridorGeometry.js +77 -77
- package/Source/Core/CorridorGeometryLibrary.js +45 -45
- package/Source/Core/CorridorOutlineGeometry.js +16 -16
- package/Source/Core/CullingVolume.js +4 -4
- package/Source/Core/CustomHeightmapTerrainProvider.js +13 -13
- package/Source/Core/CylinderGeometry.js +8 -8
- package/Source/Core/CylinderGeometryLibrary.js +1 -1
- package/Source/Core/CylinderOutlineGeometry.js +4 -4
- package/Source/Core/DeveloperError.js +1 -1
- package/Source/Core/DistanceDisplayConditionGeometryInstanceAttribute.js +20 -21
- package/Source/Core/DoubleEndedPriorityQueue.js +2 -2
- package/Source/Core/EarthOrientationParameters.js +21 -25
- package/Source/Core/EarthOrientationParametersSample.js +1 -1
- package/Source/Core/EllipseGeometry.js +54 -55
- package/Source/Core/EllipseGeometryLibrary.js +12 -12
- package/Source/Core/EllipseOutlineGeometry.js +19 -19
- package/Source/Core/Ellipsoid.js +25 -33
- package/Source/Core/EllipsoidGeodesic.js +17 -16
- package/Source/Core/EllipsoidGeometry.js +9 -8
- package/Source/Core/EllipsoidOutlineGeometry.js +4 -4
- package/Source/Core/EllipsoidRhumbLine.js +33 -32
- package/Source/Core/EllipsoidTangentPlane.js +16 -16
- package/Source/Core/EllipsoidTerrainProvider.js +11 -10
- package/Source/Core/EllipsoidalOccluder.js +110 -130
- package/Source/Core/FeatureDetection.js +4 -4
- package/Source/Core/FrustumGeometry.js +14 -14
- package/Source/Core/FrustumOutlineGeometry.js +4 -4
- package/Source/Core/GeographicTilingScheme.js +6 -6
- package/Source/Core/Geometry.js +15 -17
- package/Source/Core/GeometryAttribute.js +4 -9
- package/Source/Core/GeometryAttributes.js +6 -6
- package/Source/Core/GeometryInstance.js +3 -4
- package/Source/Core/GeometryInstanceAttribute.js +1 -6
- package/Source/Core/GeometryPipeline.js +133 -137
- package/Source/Core/GoogleEarthEnterpriseMetadata.js +19 -20
- package/Source/Core/GoogleEarthEnterpriseTerrainData.js +25 -24
- package/Source/Core/GoogleEarthEnterpriseTerrainProvider.js +17 -21
- package/Source/Core/GoogleEarthEnterpriseTileInformation.js +2 -2
- package/Source/Core/GoogleMaps.js +1 -1
- package/Source/Core/GregorianDate.js +4 -4
- package/Source/Core/GroundPolylineGeometry.js +104 -104
- package/Source/Core/HeadingPitchRoll.js +7 -7
- package/Source/Core/HeightmapTerrainData.js +58 -54
- package/Source/Core/HeightmapTessellator.js +22 -23
- package/Source/Core/HermitePolynomialApproximation.js +8 -8
- package/Source/Core/HermiteSpline.js +11 -11
- package/Source/Core/HilbertOrder.js +1 -1
- package/Source/Core/Iau2006XysData.js +6 -6
- package/Source/Core/IauOrientationAxes.js +2 -2
- package/Source/Core/IauOrientationParameters.js +1 -1
- package/Source/Core/IndexDatatype.js +5 -5
- package/Source/Core/IntersectionTests.js +36 -78
- package/Source/Core/Intersections2D.js +3 -3
- package/Source/Core/Ion.js +1 -1
- package/Source/Core/IonGeocoderService.js +2 -2
- package/Source/Core/IonResource.js +5 -5
- package/Source/Core/Iso8601.js +3 -3
- package/Source/Core/JulianDate.js +23 -33
- package/Source/Core/KTX2Transcoder.js +11 -18
- package/Source/Core/LagrangePolynomialApproximation.js +1 -1
- package/Source/Core/LinearApproximation.js +4 -4
- package/Source/Core/LinearSpline.js +2 -2
- package/Source/Core/Math.js +4 -4
- package/Source/Core/Matrix2.js +3 -3
- package/Source/Core/Matrix3.js +16 -16
- package/Source/Core/Matrix4.js +31 -31
- package/Source/Core/MorphWeightSpline.js +2 -2
- package/Source/Core/NearFarScalar.js +1 -1
- package/Source/Core/Occluder.js +52 -56
- package/Source/Core/OpenCageGeocoderService.js +2 -2
- package/Source/Core/OrientedBoundingBox.js +52 -51
- package/Source/Core/OrthographicFrustum.js +11 -11
- package/Source/Core/OrthographicOffCenterFrustum.js +17 -17
- package/Source/Core/PeliasGeocoderService.js +1 -1
- package/Source/Core/PerspectiveFrustum.js +61 -55
- package/Source/Core/PerspectiveOffCenterFrustum.js +58 -59
- package/Source/Core/PinBuilder.js +1 -1
- package/Source/Core/PixelFormat.js +7 -21
- package/Source/Core/Plane.js +9 -9
- package/Source/Core/PlaneGeometry.js +1 -1
- package/Source/Core/PolygonGeometry.js +95 -94
- package/Source/Core/PolygonGeometryLibrary.js +49 -51
- package/Source/Core/PolygonOutlineGeometry.js +49 -51
- package/Source/Core/PolygonPipeline.js +31 -31
- package/Source/Core/PolylineGeometry.js +10 -10
- package/Source/Core/PolylinePipeline.js +25 -25
- package/Source/Core/PolylineVolumeGeometry.js +9 -9
- package/Source/Core/PolylineVolumeGeometryLibrary.js +51 -51
- package/Source/Core/PolylineVolumeOutlineGeometry.js +6 -6
- package/Source/Core/QuadraticRealPolynomial.js +1 -1
- package/Source/Core/QuantizedMeshTerrainData.js +28 -28
- package/Source/Core/QuarticRealPolynomial.js +1 -1
- package/Source/Core/Quaternion.js +19 -19
- package/Source/Core/QuaternionSpline.js +2 -2
- package/Source/Core/Rectangle.js +34 -13
- package/Source/Core/RectangleCollisionChecker.js +3 -3
- package/Source/Core/RectangleGeometry.js +55 -56
- package/Source/Core/RectangleGeometryLibrary.js +8 -8
- package/Source/Core/RectangleOutlineGeometry.js +20 -20
- package/Source/Core/RequestScheduler.js +6 -6
- package/Source/Core/Resource.js +24 -24
- package/Source/Core/S2Cell.js +16 -80
- package/Source/Core/ScreenSpaceEventHandler.js +54 -53
- package/Source/Core/Simon1994PlanetaryPositions.js +13 -13
- package/Source/Core/SimplePolylineGeometry.js +7 -7
- package/Source/Core/SphereGeometry.js +2 -2
- package/Source/Core/SphereOutlineGeometry.js +3 -3
- package/Source/Core/Spline.js +1 -1
- package/Source/Core/SteppedSpline.js +1 -1
- package/Source/Core/Stereographic.js +9 -9
- package/Source/Core/TaskProcessor.js +13 -13
- package/Source/Core/TerrainEncoding.js +33 -38
- package/Source/Core/TerrainMesh.js +1 -1
- package/Source/Core/TerrainProvider.js +12 -12
- package/Source/Core/TileAvailability.js +28 -28
- package/Source/Core/TileProviderError.js +5 -5
- package/Source/Core/TilingScheme.js +1 -1
- package/Source/Core/TimeInterval.js +4 -4
- package/Source/Core/TimeIntervalCollection.js +16 -15
- package/Source/Core/Tipsify.js +2 -2
- package/Source/Core/Transforms.js +52 -54
- package/Source/Core/TranslationRotationScale.js +1 -1
- package/Source/Core/TridiagonalSystemSolver.js +4 -4
- package/Source/Core/VRTheWorldTerrainProvider.js +28 -26
- package/Source/Core/VertexFormat.js +6 -6
- package/Source/Core/VerticalExaggeration.js +4 -4
- package/Source/Core/VideoSynchronizer.js +1 -1
- package/Source/Core/WallGeometry.js +18 -18
- package/Source/Core/WallGeometryLibrary.js +7 -7
- package/Source/Core/WallOutlineGeometry.js +8 -8
- package/Source/Core/WebMercatorProjection.js +5 -6
- package/Source/Core/WebMercatorTilingScheme.js +13 -13
- package/Source/Core/WireframeIndexGenerator.js +8 -8
- package/Source/Core/arrayRemoveDuplicates.js +1 -1
- package/Source/Core/buildModuleUrl.js +2 -2
- package/Source/Core/decodeGoogleEarthEnterpriseData.js +3 -3
- package/Source/Core/decodeVectorPolylinePositions.js +4 -4
- package/Source/Core/destroyObject.js +1 -1
- package/Source/Core/getJsonFromTypedArray.js +1 -1
- package/Source/Core/getMagic.js +1 -1
- package/Source/Core/loadImageFromTypedArray.js +2 -2
- package/Source/Core/loadKTX2.js +1 -1
- package/Source/Core/pointInsideTriangle.js +1 -1
- package/Source/Core/resizeImageToNextPowerOfTwo.js +1 -1
- package/Source/Core/sampleTerrain.js +7 -7
- package/Source/Core/sampleTerrainMostDetailed.js +7 -7
- package/Source/Core/scaleToGeodeticSurface.js +3 -3
- package/Source/Core/srgbToLinear.js +1 -1
- package/Source/Core/writeTextToCanvas.js +1 -1
- package/Source/DataSources/BillboardGraphics.js +13 -13
- package/Source/DataSources/BillboardVisualizer.js +24 -24
- package/Source/DataSources/BoxGeometryUpdater.js +33 -32
- package/Source/DataSources/BoxGraphics.js +3 -3
- package/Source/DataSources/CallbackPositionProperty.js +173 -0
- package/Source/DataSources/CallbackProperty.js +8 -2
- package/Source/DataSources/Cesium3DTilesetGraphics.js +1 -1
- package/Source/DataSources/Cesium3DTilesetVisualizer.js +6 -6
- package/Source/DataSources/CheckerboardMaterialProperty.js +9 -3
- package/Source/DataSources/ColorMaterialProperty.js +8 -2
- package/Source/DataSources/CompositeEntityCollection.js +14 -15
- package/Source/DataSources/CompositeMaterialProperty.js +10 -11
- package/Source/DataSources/CompositePositionProperty.js +11 -6
- package/Source/DataSources/CompositeProperty.js +7 -7
- package/Source/DataSources/ConstantPositionProperty.js +9 -3
- package/Source/DataSources/CorridorGeometryUpdater.js +61 -56
- package/Source/DataSources/CorridorGraphics.js +6 -6
- package/Source/DataSources/CylinderGeometryUpdater.js +42 -40
- package/Source/DataSources/CylinderGraphics.js +4 -4
- package/Source/DataSources/CzmlDataSource.js +365 -368
- package/Source/DataSources/DataSourceCollection.js +1 -1
- package/Source/DataSources/DataSourceDisplay.js +23 -23
- package/Source/DataSources/DynamicGeometryBatch.js +2 -2
- package/Source/DataSources/DynamicGeometryUpdater.js +14 -18
- package/Source/DataSources/EllipseGeometryUpdater.js +67 -63
- package/Source/DataSources/EllipseGraphics.js +7 -7
- package/Source/DataSources/EllipsoidGeometryUpdater.js +88 -86
- package/Source/DataSources/EllipsoidGraphics.js +5 -5
- package/Source/DataSources/Entity.js +14 -14
- package/Source/DataSources/EntityCluster.js +29 -27
- package/Source/DataSources/EntityCollection.js +7 -7
- package/Source/DataSources/EntityView.js +23 -23
- package/Source/DataSources/GeoJsonDataSource.js +25 -25
- package/Source/DataSources/GeometryUpdater.js +9 -10
- package/Source/DataSources/GeometryUpdaterSet.js +3 -3
- package/Source/DataSources/GeometryVisualizer.js +65 -71
- package/Source/DataSources/GpxDataSource.js +10 -10
- package/Source/DataSources/GridMaterialProperty.js +12 -6
- package/Source/DataSources/GroundGeometryUpdater.js +6 -6
- package/Source/DataSources/ImageMaterialProperty.js +10 -3
- package/Source/DataSources/KmlDataSource.js +212 -212
- package/Source/DataSources/LabelGraphics.js +14 -14
- package/Source/DataSources/LabelVisualizer.js +24 -24
- package/Source/DataSources/MaterialProperty.js +7 -1
- package/Source/DataSources/ModelGraphics.js +37 -17
- package/Source/DataSources/ModelVisualizer.js +41 -32
- package/Source/DataSources/NodeTransformationProperty.js +10 -4
- package/Source/DataSources/PathGraphics.js +2 -2
- package/Source/DataSources/PathVisualizer.js +99 -35
- package/Source/DataSources/PlaneGeometryUpdater.js +38 -37
- package/Source/DataSources/PlaneGraphics.js +2 -2
- package/Source/DataSources/PointGraphics.js +8 -8
- package/Source/DataSources/PointVisualizer.js +29 -29
- package/Source/DataSources/PolygonGeometryUpdater.js +68 -64
- package/Source/DataSources/PolygonGraphics.js +9 -9
- package/Source/DataSources/PolylineArrowMaterialProperty.js +8 -2
- package/Source/DataSources/PolylineDashMaterialProperty.js +11 -5
- package/Source/DataSources/PolylineGeometryUpdater.js +39 -44
- package/Source/DataSources/PolylineGlowMaterialProperty.js +10 -4
- package/Source/DataSources/PolylineGraphics.js +4 -4
- package/Source/DataSources/PolylineOutlineMaterialProperty.js +10 -4
- package/Source/DataSources/PolylineVisualizer.js +39 -43
- package/Source/DataSources/PolylineVolumeGeometryUpdater.js +70 -68
- package/Source/DataSources/PolylineVolumeGraphics.js +2 -2
- package/Source/DataSources/PositionProperty.js +5 -4
- package/Source/DataSources/PositionPropertyArray.js +10 -4
- package/Source/DataSources/Property.js +2 -2
- package/Source/DataSources/PropertyArray.js +6 -6
- package/Source/DataSources/PropertyBag.js +10 -9
- package/Source/DataSources/RectangleGeometryUpdater.js +68 -63
- package/Source/DataSources/RectangleGraphics.js +6 -6
- package/Source/DataSources/ReferenceProperty.js +13 -7
- package/Source/DataSources/Rotation.js +2 -2
- package/Source/DataSources/SampledPositionProperty.js +13 -7
- package/Source/DataSources/SampledProperty.js +22 -20
- package/Source/DataSources/ScaledPositionProperty.js +8 -2
- package/Source/DataSources/StaticGeometryColorBatch.js +41 -41
- package/Source/DataSources/StaticGeometryPerMaterialBatch.js +40 -40
- package/Source/DataSources/StaticGroundGeometryColorBatch.js +26 -27
- package/Source/DataSources/StaticGroundGeometryPerMaterialBatch.js +46 -44
- package/Source/DataSources/StaticGroundPolylinePerMaterialBatch.js +44 -43
- package/Source/DataSources/StaticOutlineGeometryBatch.js +28 -29
- package/Source/DataSources/StripeMaterialProperty.js +9 -3
- package/Source/DataSources/TerrainOffsetProperty.js +20 -11
- package/Source/DataSources/TimeIntervalCollectionPositionProperty.js +35 -31
- package/Source/DataSources/TimeIntervalCollectionProperty.js +6 -6
- package/Source/DataSources/VelocityOrientationProperty.js +9 -4
- package/Source/DataSources/VelocityVectorProperty.js +7 -9
- package/Source/DataSources/WallGeometryUpdater.js +25 -25
- package/Source/DataSources/WallGraphics.js +4 -4
- package/Source/DataSources/createPropertyDescriptor.js +3 -3
- package/Source/DataSources/exportKml.js +90 -86
- package/Source/DataSources/getElement.js +1 -1
- package/Source/DataSources/heightReferenceOnEntityPropertyChanged.js +4 -4
- package/Source/Renderer/AutomaticUniforms.js +3 -18
- package/Source/Renderer/Buffer.js +18 -18
- package/Source/Renderer/ClearCommand.js +1 -1
- package/Source/Renderer/ComputeEngine.js +1 -1
- package/Source/Renderer/Context.js +55 -40
- package/Source/Renderer/CubeMap.js +332 -354
- package/Source/Renderer/CubeMapFace.js +43 -65
- package/Source/Renderer/DrawCommand.js +50 -5
- package/Source/Renderer/Framebuffer.js +48 -49
- package/Source/Renderer/FramebufferManager.js +40 -34
- package/Source/Renderer/MultisampleFramebuffer.js +35 -14
- package/Source/Renderer/PixelDatatype.js +23 -0
- package/Source/Renderer/RenderState.js +36 -36
- package/Source/Renderer/Renderbuffer.js +3 -3
- package/Source/Renderer/Sampler.js +9 -15
- package/Source/Renderer/ShaderBuilder.js +8 -8
- package/Source/Renderer/ShaderCache.js +11 -15
- package/Source/Renderer/ShaderFunction.js +1 -1
- package/Source/Renderer/ShaderProgram.js +22 -15
- package/Source/Renderer/ShaderSource.js +40 -40
- package/Source/Renderer/Texture.js +455 -380
- package/Source/Renderer/UniformState.js +68 -80
- package/Source/Renderer/VertexArray.js +20 -20
- package/Source/Renderer/VertexArrayFacade.js +15 -16
- package/Source/Renderer/createUniform.js +1 -1
- package/Source/Renderer/createUniformArray.js +4 -4
- package/Source/Renderer/demodernizeShader.js +7 -5
- package/Source/Renderer/loadCubeMap.js +3 -8
- package/Source/Scene/ArcGisMapServerImageryProvider.js +39 -45
- package/Source/Scene/ArcGisMapService.js +4 -7
- package/Source/Scene/AutoExposure.js +4 -5
- package/Source/Scene/Axis.js +6 -6
- package/Source/Scene/B3dmParser.js +9 -9
- package/Source/Scene/BatchTable.js +7 -7
- package/Source/Scene/BatchTableHierarchy.js +62 -59
- package/Source/Scene/BatchTexture.js +2 -2
- package/Source/Scene/Billboard.js +45 -43
- package/Source/Scene/BillboardCollection.js +81 -83
- package/Source/Scene/BingMapsImageryProvider.js +13 -13
- package/Source/Scene/BoundingVolumeSemantics.js +10 -10
- package/Source/Scene/BoxEmitter.js +1 -1
- package/Source/Scene/BufferLoader.js +1 -1
- package/Source/Scene/Camera.js +161 -164
- package/Source/Scene/CameraEventAggregator.js +67 -23
- package/Source/Scene/CameraFlightPath.js +25 -25
- package/Source/Scene/Cesium3DTile.js +89 -95
- package/Source/Scene/Cesium3DTileBatchTable.js +61 -61
- package/Source/Scene/Cesium3DTileContentFactory.js +7 -7
- package/Source/Scene/Cesium3DTileFeature.js +1 -1
- package/Source/Scene/Cesium3DTileFeatureTable.js +8 -8
- package/Source/Scene/Cesium3DTileOptimizations.js +1 -1
- package/Source/Scene/Cesium3DTilePointFeature.js +11 -11
- package/Source/Scene/Cesium3DTileStyle.js +26 -24
- package/Source/Scene/Cesium3DTilesVoxelProvider.js +14 -20
- package/Source/Scene/Cesium3DTileset.js +81 -83
- package/Source/Scene/Cesium3DTilesetBaseTraversal.js +8 -16
- package/Source/Scene/Cesium3DTilesetCache.js +2 -2
- package/Source/Scene/Cesium3DTilesetHeatmap.js +5 -5
- package/Source/Scene/Cesium3DTilesetMetadata.js +2 -2
- package/Source/Scene/Cesium3DTilesetMostDetailedTraversal.js +2 -2
- package/Source/Scene/Cesium3DTilesetSkipTraversal.js +8 -12
- package/Source/Scene/Cesium3DTilesetStatistics.js +1 -1
- package/Source/Scene/Cesium3DTilesetTraversal.js +8 -10
- package/Source/Scene/ClassificationPrimitive.js +70 -69
- package/Source/Scene/ClippingPlaneCollection.js +39 -41
- package/Source/Scene/ClippingPolygon.js +8 -8
- package/Source/Scene/ClippingPolygonCollection.js +62 -63
- package/Source/Scene/CloudCollection.js +3 -10
- package/Source/Scene/Composite3DTileContent.js +6 -6
- package/Source/Scene/ConditionsExpression.js +5 -5
- package/Source/Scene/ContentMetadata.js +4 -4
- package/Source/Scene/CreditDisplay.js +8 -8
- package/Source/Scene/CumulusCloud.js +4 -4
- package/Source/Scene/DebugAppearance.js +2 -2
- package/Source/Scene/DebugCameraPrimitive.js +2 -2
- package/Source/Scene/DebugInspector.js +3 -3
- package/Source/Scene/DebugModelMatrixPrimitive.js +4 -4
- package/Source/Scene/DepthPlane.js +7 -7
- package/Source/Scene/DerivedCommand.js +422 -238
- package/Source/Scene/DiscardMissingTileImagePolicy.js +1 -1
- package/Source/Scene/DracoLoader.js +3 -3
- package/Source/Scene/EllipsoidPrimitive.js +7 -7
- package/Source/Scene/EllipsoidSurfaceAppearance.js +3 -3
- package/Source/Scene/Empty3DTileContent.js +1 -1
- package/Source/Scene/Expression.js +91 -91
- package/Source/Scene/Fog.js +8 -41
- package/Source/Scene/FrameRateMonitor.js +22 -22
- package/Source/Scene/FrameState.js +31 -0
- package/Source/Scene/Geometry3DTileContent.js +20 -20
- package/Source/Scene/GetFeatureInfoFormat.js +15 -14
- package/Source/Scene/Globe.js +33 -28
- package/Source/Scene/GlobeDepth.js +95 -66
- package/Source/Scene/GlobeSurfaceShaderSet.js +41 -34
- package/Source/Scene/GlobeSurfaceTile.js +33 -33
- package/Source/Scene/GlobeSurfaceTileProvider.js +132 -127
- package/Source/Scene/GlobeTranslucency.js +4 -4
- package/Source/Scene/GlobeTranslucencyFramebuffer.js +9 -9
- package/Source/Scene/GlobeTranslucencyState.js +53 -55
- package/Source/Scene/GltfBufferViewLoader.js +2 -2
- package/Source/Scene/GltfIndexBufferLoader.js +5 -5
- package/Source/Scene/GltfJsonLoader.js +2 -2
- package/Source/Scene/GltfLoader.js +177 -100
- package/Source/Scene/GltfStructuralMetadataLoader.js +9 -8
- package/Source/Scene/GltfTextureLoader.js +5 -5
- package/Source/Scene/GltfVertexBufferLoader.js +12 -13
- package/Source/Scene/GoogleEarthEnterpriseImageryProvider.js +9 -9
- package/Source/Scene/GoogleEarthEnterpriseMapsProvider.js +9 -9
- package/Source/Scene/GridImageryProvider.js +2 -2
- package/Source/Scene/GroundPolylinePrimitive.js +38 -39
- package/Source/Scene/GroundPrimitive.js +47 -45
- package/Source/Scene/GroupMetadata.js +4 -4
- package/Source/Scene/I3SDataProvider.js +12 -12
- package/Source/Scene/I3SDecoder.js +7 -8
- package/Source/Scene/I3SField.js +8 -8
- package/Source/Scene/I3SGeometry.js +14 -14
- package/Source/Scene/I3SLayer.js +26 -20
- package/Source/Scene/I3SNode.js +17 -17
- package/Source/Scene/I3SSublayer.js +4 -4
- package/Source/Scene/I3SSymbology.js +8 -8
- package/Source/Scene/I3dmParser.js +9 -9
- package/Source/Scene/ImageBasedLighting.js +58 -56
- package/Source/Scene/Imagery.js +3 -3
- package/Source/Scene/ImageryLayer.js +64 -66
- package/Source/Scene/ImageryLayerCollection.js +13 -15
- package/Source/Scene/ImageryLayerFeatureInfo.js +19 -20
- package/Source/Scene/ImageryProvider.js +1 -1
- package/Source/Scene/Implicit3DTileContent.js +34 -37
- package/Source/Scene/ImplicitAvailabilityBitstream.js +2 -2
- package/Source/Scene/ImplicitMetadataView.js +2 -2
- package/Source/Scene/ImplicitSubtree.js +29 -30
- package/Source/Scene/ImplicitSubtreeCache.js +1 -1
- package/Source/Scene/ImplicitSubtreeMetadata.js +5 -5
- package/Source/Scene/ImplicitTileCoordinates.js +11 -11
- package/Source/Scene/ImplicitTileset.js +2 -2
- package/Source/Scene/InvertClassification.js +7 -7
- package/Source/Scene/IonImageryProvider.js +6 -6
- package/Source/Scene/JobScheduler.js +4 -4
- package/Source/Scene/Label.js +31 -31
- package/Source/Scene/LabelCollection.js +17 -15
- package/Source/Scene/MapboxImageryProvider.js +3 -3
- package/Source/Scene/MapboxStyleImageryProvider.js +4 -4
- package/Source/Scene/Material.js +50 -29
- package/Source/Scene/MaterialAppearance.js +4 -4
- package/Source/Scene/Megatexture.js +21 -24
- package/Source/Scene/MetadataClassProperty.js +11 -11
- package/Source/Scene/MetadataComponentType.js +1 -1
- package/Source/Scene/MetadataEntity.js +8 -8
- package/Source/Scene/MetadataEnum.js +1 -1
- package/Source/Scene/MetadataPicking.js +305 -0
- package/Source/Scene/MetadataSchemaLoader.js +1 -1
- package/Source/Scene/MetadataTable.js +2 -2
- package/Source/Scene/MetadataTableProperty.js +22 -22
- package/Source/Scene/Model/AlphaPipelineStage.js +2 -2
- package/Source/Scene/Model/AtmospherePipelineStage.js +3 -3
- package/Source/Scene/Model/B3dmLoader.js +8 -8
- package/Source/Scene/Model/BatchTexturePipelineStage.js +2 -2
- package/Source/Scene/Model/CPUStylingPipelineStage.js +4 -4
- package/Source/Scene/Model/ClassificationModelDrawCommand.js +8 -8
- package/Source/Scene/Model/ClassificationPipelineStage.js +5 -5
- package/Source/Scene/Model/CustomShader.js +9 -9
- package/Source/Scene/Model/CustomShaderPipelineStage.js +37 -38
- package/Source/Scene/Model/DequantizationPipelineStage.js +5 -5
- package/Source/Scene/Model/Extensions/Gpm/AnchorPointDirect.js +61 -0
- package/Source/Scene/Model/Extensions/Gpm/AnchorPointIndirect.js +77 -0
- package/Source/Scene/Model/Extensions/Gpm/CorrelationGroup.js +81 -0
- package/Source/Scene/Model/Extensions/Gpm/GltfGpmLoader.js +248 -0
- package/Source/Scene/Model/Extensions/Gpm/GltfGpmLocal.js +179 -0
- package/Source/Scene/Model/Extensions/Gpm/GltfMeshPrimitiveGpmLoader.js +548 -0
- package/Source/Scene/Model/Extensions/Gpm/MeshPrimitiveGpmLocal.js +28 -0
- package/Source/Scene/Model/Extensions/Gpm/PpeMetadata.js +79 -0
- package/Source/Scene/Model/Extensions/Gpm/PpeSource.js +75 -0
- package/Source/Scene/Model/Extensions/Gpm/PpeTexture.js +127 -0
- package/Source/Scene/Model/Extensions/Gpm/Spdcf.js +103 -0
- package/Source/Scene/Model/Extensions/Gpm/StorageType.js +30 -0
- package/Source/Scene/Model/FeatureIdPipelineStage.js +40 -40
- package/Source/Scene/Model/GeoJsonLoader.js +17 -17
- package/Source/Scene/Model/GeometryPipelineStage.js +23 -24
- package/Source/Scene/Model/I3dmLoader.js +36 -36
- package/Source/Scene/Model/ImageBasedLightingPipelineStage.js +22 -30
- package/Source/Scene/Model/InstancingPipelineStage.js +86 -86
- package/Source/Scene/Model/LightingPipelineStage.js +4 -4
- package/Source/Scene/Model/MaterialPipelineStage.js +78 -93
- package/Source/Scene/Model/MetadataPickingPipelineStage.js +96 -0
- package/Source/Scene/Model/MetadataPipelineStage.js +39 -47
- package/Source/Scene/Model/Model.js +134 -54
- package/Source/Scene/Model/Model3DTileContent.js +32 -13
- package/Source/Scene/Model/ModelAnimationChannel.js +2 -2
- package/Source/Scene/Model/ModelAnimationCollection.js +9 -9
- package/Source/Scene/Model/ModelArticulation.js +2 -2
- package/Source/Scene/Model/ModelArticulationStage.js +4 -4
- package/Source/Scene/Model/ModelClippingPlanesPipelineStage.js +11 -11
- package/Source/Scene/Model/ModelClippingPolygonsPipelineStage.js +6 -6
- package/Source/Scene/Model/ModelColorPipelineStage.js +12 -13
- package/Source/Scene/Model/ModelDrawCommand.js +5 -5
- package/Source/Scene/Model/{buildDrawCommand.js → ModelDrawCommands.js} +85 -28
- package/Source/Scene/Model/ModelFeatureTable.js +5 -5
- package/Source/Scene/Model/ModelMatrixUpdateStage.js +24 -12
- package/Source/Scene/Model/ModelRenderResources.js +1 -1
- package/Source/Scene/Model/ModelRuntimeNode.js +15 -15
- package/Source/Scene/Model/ModelRuntimePrimitive.js +8 -5
- package/Source/Scene/Model/ModelSceneGraph.js +42 -43
- package/Source/Scene/Model/ModelSilhouettePipelineStage.js +4 -4
- package/Source/Scene/Model/ModelSkin.js +4 -4
- package/Source/Scene/Model/ModelSplitterPipelineStage.js +8 -9
- package/Source/Scene/Model/ModelUtility.js +5 -5
- package/Source/Scene/Model/MorphTargetsPipelineStage.js +18 -18
- package/Source/Scene/Model/NodeRenderResources.js +1 -1
- package/Source/Scene/Model/NodeStatisticsPipelineStage.js +1 -1
- package/Source/Scene/Model/PickingPipelineStage.js +5 -5
- package/Source/Scene/Model/PntsLoader.js +7 -7
- package/Source/Scene/Model/PointCloudStylingPipelineStage.js +22 -23
- package/Source/Scene/Model/PrimitiveOutlineGenerator.js +6 -6
- package/Source/Scene/Model/PrimitiveOutlinePipelineStage.js +7 -7
- package/Source/Scene/Model/PrimitiveRenderResources.js +3 -3
- package/Source/Scene/Model/PrimitiveStatisticsPipelineStage.js +1 -1
- package/Source/Scene/Model/SceneMode2DPipelineStage.js +23 -23
- package/Source/Scene/Model/SelectedFeatureIdPipelineStage.js +10 -14
- package/Source/Scene/Model/SkinningPipelineStage.js +5 -5
- package/Source/Scene/Model/StyleCommandsNeeded.js +1 -1
- package/Source/Scene/Model/TextureManager.js +2 -2
- package/Source/Scene/Model/TextureUniform.js +3 -3
- package/Source/Scene/Model/TilesetPipelineStage.js +2 -2
- package/Source/Scene/Model/VerticalExaggerationPipelineStage.js +4 -4
- package/Source/Scene/Model/WireframePipelineStage.js +7 -7
- package/Source/Scene/Model/pickModel.js +26 -26
- package/Source/Scene/ModelComponents.js +13 -4
- package/Source/Scene/Moon.js +6 -5
- package/Source/Scene/Multiple3DTileContent.js +15 -14
- package/Source/Scene/OIT.js +48 -97
- package/Source/Scene/OpenStreetMapImageryProvider.js +8 -7
- package/Source/Scene/OrderedGroundPrimitiveCollection.js +2 -2
- package/Source/Scene/Particle.js +3 -3
- package/Source/Scene/ParticleEmitter.js +1 -1
- package/Source/Scene/ParticleSystem.js +32 -32
- package/Source/Scene/PerInstanceColorAppearance.js +1 -1
- package/Source/Scene/PickDepth.js +16 -4
- package/Source/Scene/PickDepthFramebuffer.js +1 -1
- package/Source/Scene/PickFramebuffer.js +24 -12
- package/Source/Scene/PickedMetadataInfo.js +39 -0
- package/Source/Scene/Picking.js +270 -120
- package/Source/Scene/PntsParser.js +28 -28
- package/Source/Scene/PointCloud.js +39 -38
- package/Source/Scene/PointCloudEyeDomeLighting.js +6 -6
- package/Source/Scene/PointCloudShading.js +3 -3
- package/Source/Scene/PointPrimitive.js +31 -28
- package/Source/Scene/PointPrimitiveCollection.js +34 -33
- package/Source/Scene/Polyline.js +9 -9
- package/Source/Scene/PolylineCollection.js +55 -57
- package/Source/Scene/PolylineColorAppearance.js +3 -3
- package/Source/Scene/PolylineMaterialAppearance.js +3 -3
- package/Source/Scene/PostProcessStage.js +95 -115
- package/Source/Scene/PostProcessStageCollection.js +73 -49
- package/Source/Scene/PostProcessStageComposite.js +2 -2
- package/Source/Scene/PostProcessStageLibrary.js +30 -4
- package/Source/Scene/PostProcessStageTextureCache.js +10 -10
- package/Source/Scene/Primitive.js +93 -93
- package/Source/Scene/PrimitiveCollection.js +1 -1
- package/Source/Scene/PrimitiveLoadPlan.js +1 -1
- package/Source/Scene/PrimitivePipeline.js +30 -30
- package/Source/Scene/PropertyTable.js +5 -5
- package/Source/Scene/PropertyTextureProperty.js +36 -7
- package/Source/Scene/QuadtreePrimitive.js +56 -58
- package/Source/Scene/QuadtreeTile.js +4 -4
- package/Source/Scene/QuadtreeTileProvider.js +1 -1
- package/Source/Scene/ResourceCache.js +7 -7
- package/Source/Scene/ResourceCacheKey.js +15 -15
- package/Source/Scene/Scene.js +897 -677
- package/Source/Scene/SceneFramebuffer.js +2 -2
- package/Source/Scene/SceneTransforms.js +30 -92
- package/Source/Scene/SceneTransitioner.js +47 -47
- package/Source/Scene/ScreenSpaceCameraController.js +171 -157
- package/Source/Scene/SensorVolumePortionToDisplay.js +1 -1
- package/Source/Scene/ShadowMap.js +71 -72
- package/Source/Scene/ShadowMapShader.js +9 -9
- package/Source/Scene/ShadowVolumeAppearance.js +39 -39
- package/Source/Scene/SingleTileImageryProvider.js +3 -3
- package/Source/Scene/SkyAtmosphere.js +8 -8
- package/Source/Scene/SkyBox.js +17 -24
- package/Source/Scene/SpatialNode.js +13 -13
- package/Source/Scene/SpecularEnvironmentCubeMap.js +240 -0
- package/Source/Scene/SphereEmitter.js +1 -1
- package/Source/Scene/StructuralMetadata.js +1 -1
- package/Source/Scene/StyleExpression.js +1 -1
- package/Source/Scene/Sun.js +11 -7
- package/Source/Scene/SunPostProcess.js +6 -6
- package/Source/Scene/TerrainFillMesh.js +157 -156
- package/Source/Scene/TextureAtlas.js +11 -11
- package/Source/Scene/TileBoundingRegion.js +31 -31
- package/Source/Scene/TileBoundingS2Cell.js +37 -40
- package/Source/Scene/TileBoundingSphere.js +2 -2
- package/Source/Scene/TileCoordinatesImageryProvider.js +3 -3
- package/Source/Scene/TileImagery.js +7 -11
- package/Source/Scene/TileMapServiceImageryProvider.js +26 -25
- package/Source/Scene/TileMetadata.js +4 -4
- package/Source/Scene/TileOrientedBoundingBox.js +6 -6
- package/Source/Scene/Tileset3DTileContent.js +1 -1
- package/Source/Scene/TilesetMetadata.js +4 -4
- package/Source/Scene/TimeDynamicImagery.js +3 -3
- package/Source/Scene/TimeDynamicPointCloud.js +9 -9
- package/Source/Scene/Tonemapper.js +35 -23
- package/Source/Scene/TranslucentTileClassification.js +48 -58
- package/Source/Scene/TweenCollection.js +9 -9
- package/Source/Scene/UrlTemplateImageryProvider.js +23 -23
- package/Source/Scene/Vector3DTileClampedPolylines.js +21 -21
- package/Source/Scene/Vector3DTileContent.js +38 -39
- package/Source/Scene/Vector3DTileGeometry.js +11 -8
- package/Source/Scene/Vector3DTilePoints.js +18 -22
- package/Source/Scene/Vector3DTilePolygons.js +6 -6
- package/Source/Scene/Vector3DTilePolylines.js +8 -8
- package/Source/Scene/Vector3DTilePrimitive.js +30 -31
- package/Source/Scene/View.js +111 -80
- package/Source/Scene/VoxelBoxShape.js +34 -34
- package/Source/Scene/VoxelCell.js +7 -7
- package/Source/Scene/VoxelContent.js +1 -1
- package/Source/Scene/VoxelCylinderShape.js +48 -48
- package/Source/Scene/VoxelEllipsoidShape.js +83 -97
- package/Source/Scene/VoxelPrimitive.js +80 -109
- package/Source/Scene/VoxelRenderResources.js +13 -16
- package/Source/Scene/VoxelTraversal.js +41 -41
- package/Source/Scene/WebMapServiceImageryProvider.js +12 -12
- package/Source/Scene/WebMapTileServiceImageryProvider.js +8 -8
- package/Source/Scene/buildVoxelDrawCommands.js +10 -14
- package/Source/Scene/computeFlyToLocationForRectangle.js +7 -5
- package/Source/Scene/createBillboardPointCallback.js +2 -2
- package/Source/Scene/createElevationBandMaterial.js +8 -8
- package/Source/Scene/createGooglePhotorealistic3DTileset.js +1 -1
- package/Source/Scene/createOsmBuildingsAsync.js +1 -1
- package/Source/Scene/createTangentSpaceDebugPrimitive.js +7 -7
- package/Source/Scene/findContentMetadata.js +2 -2
- package/Source/Scene/findTileMetadata.js +2 -2
- package/Source/Scene/getBinaryAccessor.js +1 -1
- package/Source/Scene/getClipAndStyleCode.js +1 -1
- package/Source/Scene/getClippingFunction.js +1 -1
- package/Source/Scene/getMetadataClassProperty.js +43 -0
- package/Source/Scene/parseBatchTable.js +21 -24
- package/Source/Scene/parseFeatureMetadataLegacy.js +3 -3
- package/Source/Scene/parseStructuralMetadata.js +3 -3
- package/Source/Scene/processVoxelProperties.js +28 -33
- package/Source/Shaders/Builtin/CzmBuiltins.js +2 -2
- package/Source/Shaders/Builtin/Functions/packDepth.glsl +2 -2
- package/Source/Shaders/Builtin/Functions/packDepth.js +2 -2
- package/Source/Shaders/Builtin/Functions/pbrLighting.glsl +2 -2
- package/Source/Shaders/Builtin/Functions/pbrLighting.js +2 -2
- package/Source/Shaders/Builtin/Functions/pbrNeutralTonemapping.glsl +23 -0
- package/Source/Shaders/Builtin/Functions/pbrNeutralTonemapping.js +25 -0
- package/Source/Shaders/Builtin/Functions/textureCube.glsl +21 -2
- package/Source/Shaders/Builtin/Functions/textureCube.js +21 -2
- package/Source/Shaders/Builtin/Functions/unpackDepth.glsl +3 -3
- package/Source/Shaders/Builtin/Functions/unpackDepth.js +3 -3
- package/Source/Shaders/Builtin/Functions/windowToEyeCoordinates.glsl +1 -1
- package/Source/Shaders/Builtin/Functions/windowToEyeCoordinates.js +1 -1
- package/Source/Shaders/Builtin/Functions/writeLogDepth.glsl +2 -2
- package/Source/Shaders/Builtin/Functions/writeLogDepth.js +2 -2
- package/Source/Shaders/Builtin/Structs/materialInput.glsl +2 -0
- package/Source/Shaders/Builtin/Structs/materialInput.js +2 -0
- package/Source/Shaders/DepthPlaneVS.glsl +1 -1
- package/Source/Shaders/DepthPlaneVS.js +1 -1
- package/Source/Shaders/GlobeFS.glsl +10 -4
- package/Source/Shaders/GlobeFS.js +10 -4
- package/Source/Shaders/Materials/WaterMaskMaterial.glsl +15 -0
- package/Source/Shaders/Materials/WaterMaskMaterial.js +17 -0
- package/Source/Shaders/Model/AtmosphereStageFS.glsl +1 -1
- package/Source/Shaders/Model/AtmosphereStageFS.js +1 -1
- package/Source/Shaders/Model/ImageBasedLightingStageFS.glsl +40 -29
- package/Source/Shaders/Model/ImageBasedLightingStageFS.js +40 -29
- package/Source/Shaders/Model/LightingStageFS.glsl +2 -2
- package/Source/Shaders/Model/LightingStageFS.js +2 -2
- package/Source/Shaders/Model/ModelFS.glsl +26 -0
- package/Source/Shaders/Model/ModelFS.js +26 -0
- package/Source/Shaders/PostProcessStages/AcesTonemappingStage.glsl +4 -0
- package/Source/Shaders/PostProcessStages/AcesTonemappingStage.js +4 -0
- package/Source/Shaders/PostProcessStages/AmbientOcclusionGenerate.glsl +59 -59
- package/Source/Shaders/PostProcessStages/AmbientOcclusionGenerate.js +60 -60
- package/Source/Shaders/PostProcessStages/FilmicTonemapping.glsl +4 -0
- package/Source/Shaders/PostProcessStages/FilmicTonemapping.js +4 -0
- package/Source/Shaders/PostProcessStages/ModifiedReinhardTonemapping.glsl +4 -0
- package/Source/Shaders/PostProcessStages/ModifiedReinhardTonemapping.js +4 -0
- package/Source/Shaders/PostProcessStages/PbrNeutralTonemapping.glsl +25 -0
- package/Source/Shaders/PostProcessStages/PbrNeutralTonemapping.js +27 -0
- package/Source/Shaders/PostProcessStages/ReinhardTonemapping.glsl +4 -0
- package/Source/Shaders/PostProcessStages/ReinhardTonemapping.js +4 -0
- package/Source/Shaders/SkyAtmosphereFS.glsl +1 -1
- package/Source/Shaders/SkyAtmosphereFS.js +1 -1
- package/Source/Widget/CesiumWidget.js +10 -9
- package/Source/Workers/combineGeometry.js +3 -4
- package/Source/Workers/createCircleGeometry.js +2 -2
- package/Source/Workers/createCircleOutlineGeometry.js +2 -2
- package/Source/Workers/createCoplanarPolygonOutlineGeometry.js +1 -1
- package/Source/Workers/createCorridorOutlineGeometry.js +2 -2
- package/Source/Workers/createEllipsoidOutlineGeometry.js +1 -1
- package/Source/Workers/createGeometry.js +4 -5
- package/Source/Workers/createGroundPolylineGeometry.js +1 -1
- package/Source/Workers/createPolylineVolumeGeometry.js +2 -2
- package/Source/Workers/createPolylineVolumeOutlineGeometry.js +4 -4
- package/Source/Workers/createRectangleOutlineGeometry.js +1 -1
- package/Source/Workers/createSimplePolylineGeometry.js +2 -2
- package/Source/Workers/createTaskProcessorWorker.js +1 -1
- package/Source/Workers/createVectorTileClampedPolylines.js +30 -30
- package/Source/Workers/createVectorTileGeometries.js +18 -18
- package/Source/Workers/createVectorTilePoints.js +3 -3
- package/Source/Workers/createVectorTilePolygons.js +11 -11
- package/Source/Workers/createVectorTilePolylines.js +7 -7
- package/Source/Workers/createVerticesFromGoogleEarthEnterpriseBuffer.js +29 -30
- package/Source/Workers/createVerticesFromQuantizedTerrainMesh.js +60 -60
- package/Source/Workers/decodeDraco.js +23 -23
- package/Source/Workers/decodeGoogleEarthEnterprisePacket.js +3 -3
- package/Source/Workers/decodeI3S.js +53 -53
- package/Source/Workers/transcodeKTX2.js +9 -9
- package/Source/Workers/transferTypedArrayTest.js +1 -1
- package/Source/Workers/upsampleQuantizedTerrainMesh.js +37 -36
- package/index.d.ts +620 -136
- package/index.js +221 -205
- package/package.json +3 -3
- package/Build/Workers/chunk-2GEAGYUY.js +0 -1477
- package/Build/Workers/chunk-3WUV74WM.js +0 -1800
- package/Build/Workers/chunk-4MSUJ4I7.js +0 -456
- package/Build/Workers/chunk-5KWHSZYL.js +0 -834
- package/Build/Workers/chunk-5O6JWQ4E.js +0 -398
- package/Build/Workers/chunk-6OFDHMHR.js +0 -1258
- package/Build/Workers/chunk-AA4GZKOT.js +0 -75
- package/Build/Workers/chunk-B75IEX2S.js +0 -390
- package/Build/Workers/chunk-BAVI3ZS2.js +0 -39
- package/Build/Workers/chunk-BBDZYSZB.js +0 -287
- package/Build/Workers/chunk-C45MU4GZ.js +0 -220
- package/Build/Workers/chunk-CF7P7K7E.js +0 -684
- package/Build/Workers/chunk-D4K27X2M.js +0 -305
- package/Build/Workers/chunk-DKVHRNFY.js +0 -100
- package/Build/Workers/chunk-ELI4BUOT.js +0 -963
- package/Build/Workers/chunk-FQPSOOPH.js +0 -258
- package/Build/Workers/chunk-GNHZH7HP.js +0 -37
- package/Build/Workers/chunk-GWT64LKY.js +0 -171
- package/Build/Workers/chunk-HGEEOMSC.js +0 -157
- package/Build/Workers/chunk-IUROUBPA.js +0 -300
- package/Build/Workers/chunk-JNLWLSTP.js +0 -476
- package/Build/Workers/chunk-JYQNWIQQ.js +0 -44
- package/Build/Workers/chunk-KUN2ZA5X.js +0 -138
- package/Build/Workers/chunk-LXQ5QAEJ.js +0 -196
- package/Build/Workers/chunk-MBZH7YZ7.js +0 -945
- package/Build/Workers/chunk-MKXWJTFQ.js +0 -781
- package/Build/Workers/chunk-MMV6TO3P.js +0 -101
- package/Build/Workers/chunk-MSKXMXJI.js +0 -500
- package/Build/Workers/chunk-OAPA2RTG.js +0 -239
- package/Build/Workers/chunk-OE4MCOC7.js +0 -421
- package/Build/Workers/chunk-OJF4RTJG.js +0 -634
- package/Build/Workers/chunk-OXSI7N4C.js +0 -768
- package/Build/Workers/chunk-PYHLO636.js +0 -2857
- package/Build/Workers/chunk-QD4KM3GO.js +0 -138
- package/Build/Workers/chunk-QMLTCCYG.js +0 -55
- package/Build/Workers/chunk-QYQIVZBU.js +0 -117
- package/Build/Workers/chunk-R3TKLC6E.js +0 -1075
- package/Build/Workers/chunk-R4ZEWO4I.js +0 -122
- package/Build/Workers/chunk-RCK55EDX.js +0 -691
- package/Build/Workers/chunk-RHBWXX7C.js +0 -629
- package/Build/Workers/chunk-SAPFXU5X.js +0 -102
- package/Build/Workers/chunk-TBBFDFCS.js +0 -368
- package/Build/Workers/chunk-TGY6H6N6.js +0 -163
- package/Build/Workers/chunk-UOEUCKKU.js +0 -59
- package/Build/Workers/chunk-VFBNELXB.js +0 -353
- package/Build/Workers/chunk-VYWUFRRR.js +0 -1052
- package/Build/Workers/chunk-WVSELU6O.js +0 -2716
- package/Build/Workers/chunk-X43SJLQL.js +0 -10364
- package/Build/Workers/chunk-XUOJCLOH.js +0 -511
- package/Build/Workers/chunk-YLYBLJ3Y.js +0 -73
- package/Build/Workers/chunk-ZEE2EIFD.js +0 -430
- package/Build/Workers/chunk-ZIKGV7EL.js +0 -58
- package/Source/Scene/OctahedralProjectedCubeMap.js +0 -444
- package/Source/Shaders/Builtin/Functions/sampleOctahedralProjection.glsl +0 -78
- package/Source/Shaders/Builtin/Functions/sampleOctahedralProjection.js +0 -80
- package/Source/Shaders/OctahedralProjectionAtlasFS.glsl +0 -89
- package/Source/Shaders/OctahedralProjectionAtlasFS.js +0 -91
- package/Source/Shaders/OctahedralProjectionFS.glsl +0 -14
- package/Source/Shaders/OctahedralProjectionFS.js +0 -16
- package/Source/Shaders/OctahedralProjectionVS.glsl +0 -10
- package/Source/Shaders/OctahedralProjectionVS.js +0 -12
|
@@ -319,7 +319,7 @@ function isZipFile(blob) {
|
|
|
319
319
|
const reader = new FileReader();
|
|
320
320
|
reader.addEventListener("load", function () {
|
|
321
321
|
deferred.resolve(
|
|
322
|
-
new DataView(reader.result).getUint32(0, false) === 0x504b0304
|
|
322
|
+
new DataView(reader.result).getUint32(0, false) === 0x504b0304,
|
|
323
323
|
);
|
|
324
324
|
});
|
|
325
325
|
reader.addEventListener("error", function () {
|
|
@@ -391,24 +391,24 @@ function removeDuplicateNamespaces(text) {
|
|
|
391
391
|
}
|
|
392
392
|
|
|
393
393
|
function loadXmlFromZip(entry, uriResolver) {
|
|
394
|
-
return Promise.resolve(entry.getData(new zip.TextWriter())).then(
|
|
395
|
-
text
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
394
|
+
return Promise.resolve(entry.getData(new zip.TextWriter())).then(
|
|
395
|
+
function (text) {
|
|
396
|
+
text = insertNamespaces(text);
|
|
397
|
+
text = removeDuplicateNamespaces(text);
|
|
398
|
+
uriResolver.kml = parser.parseFromString(text, "application/xml");
|
|
399
|
+
},
|
|
400
|
+
);
|
|
401
401
|
}
|
|
402
402
|
|
|
403
403
|
function loadDataUriFromZip(entry, uriResolver) {
|
|
404
404
|
const mimeType = defaultValue(
|
|
405
405
|
MimeTypes.detectFromFilename(entry.filename),
|
|
406
|
-
"application/octet-stream"
|
|
406
|
+
"application/octet-stream",
|
|
407
407
|
);
|
|
408
408
|
return Promise.resolve(entry.getData(new zip.Data64URIWriter(mimeType))).then(
|
|
409
409
|
function (dataUri) {
|
|
410
410
|
uriResolver[entry.filename] = dataUri;
|
|
411
|
-
}
|
|
411
|
+
},
|
|
412
412
|
);
|
|
413
413
|
}
|
|
414
414
|
|
|
@@ -720,7 +720,7 @@ function queryColorValue(node, tagName, namespace) {
|
|
|
720
720
|
}
|
|
721
721
|
return parseColorString(
|
|
722
722
|
value,
|
|
723
|
-
queryStringValue(node, "colorMode", namespace) === "random"
|
|
723
|
+
queryStringValue(node, "colorMode", namespace) === "random",
|
|
724
724
|
);
|
|
725
725
|
}
|
|
726
726
|
|
|
@@ -743,7 +743,7 @@ function processTimeStamp(featureNode) {
|
|
|
743
743
|
new TimeInterval({
|
|
744
744
|
start: when,
|
|
745
745
|
stop: Iso8601.MAXIMUM_VALUE,
|
|
746
|
-
})
|
|
746
|
+
}),
|
|
747
747
|
);
|
|
748
748
|
return result;
|
|
749
749
|
}
|
|
@@ -776,7 +776,7 @@ function processTimeSpan(featureNode) {
|
|
|
776
776
|
new TimeInterval({
|
|
777
777
|
start: beginDate,
|
|
778
778
|
stop: endDate,
|
|
779
|
-
})
|
|
779
|
+
}),
|
|
780
780
|
);
|
|
781
781
|
} else if (defined(beginDate)) {
|
|
782
782
|
result = new TimeIntervalCollection();
|
|
@@ -784,7 +784,7 @@ function processTimeSpan(featureNode) {
|
|
|
784
784
|
new TimeInterval({
|
|
785
785
|
start: beginDate,
|
|
786
786
|
stop: Iso8601.MAXIMUM_VALUE,
|
|
787
|
-
})
|
|
787
|
+
}),
|
|
788
788
|
);
|
|
789
789
|
} else if (defined(endDate)) {
|
|
790
790
|
result = new TimeIntervalCollection();
|
|
@@ -792,7 +792,7 @@ function processTimeSpan(featureNode) {
|
|
|
792
792
|
new TimeInterval({
|
|
793
793
|
start: Iso8601.MINIMUM_VALUE,
|
|
794
794
|
stop: endDate,
|
|
795
|
-
})
|
|
795
|
+
}),
|
|
796
796
|
);
|
|
797
797
|
}
|
|
798
798
|
|
|
@@ -807,13 +807,13 @@ function createDefaultBillboard() {
|
|
|
807
807
|
BILLBOARD_NEAR_DISTANCE,
|
|
808
808
|
BILLBOARD_NEAR_RATIO,
|
|
809
809
|
BILLBOARD_FAR_DISTANCE,
|
|
810
|
-
BILLBOARD_FAR_RATIO
|
|
810
|
+
BILLBOARD_FAR_RATIO,
|
|
811
811
|
);
|
|
812
812
|
billboard.pixelOffsetScaleByDistance = new NearFarScalar(
|
|
813
813
|
BILLBOARD_NEAR_DISTANCE,
|
|
814
814
|
BILLBOARD_NEAR_RATIO,
|
|
815
815
|
BILLBOARD_FAR_DISTANCE,
|
|
816
|
-
BILLBOARD_FAR_RATIO
|
|
816
|
+
BILLBOARD_FAR_RATIO,
|
|
817
817
|
);
|
|
818
818
|
return billboard;
|
|
819
819
|
}
|
|
@@ -840,7 +840,7 @@ function getIconHref(
|
|
|
840
840
|
dataSource,
|
|
841
841
|
sourceResource,
|
|
842
842
|
uriResolver,
|
|
843
|
-
canRefresh
|
|
843
|
+
canRefresh,
|
|
844
844
|
) {
|
|
845
845
|
let href = queryStringValue(iconNode, "href", namespaces.kml);
|
|
846
846
|
if (!defined(href) || href.length === 0) {
|
|
@@ -866,28 +866,28 @@ function getIconHref(
|
|
|
866
866
|
const refreshMode = queryStringValue(
|
|
867
867
|
iconNode,
|
|
868
868
|
"refreshMode",
|
|
869
|
-
namespaces.kml
|
|
869
|
+
namespaces.kml,
|
|
870
870
|
);
|
|
871
871
|
const viewRefreshMode = queryStringValue(
|
|
872
872
|
iconNode,
|
|
873
873
|
"viewRefreshMode",
|
|
874
|
-
namespaces.kml
|
|
874
|
+
namespaces.kml,
|
|
875
875
|
);
|
|
876
876
|
if (refreshMode === "onInterval" || refreshMode === "onExpire") {
|
|
877
877
|
oneTimeWarning(
|
|
878
878
|
`kml-refreshMode-${refreshMode}`,
|
|
879
|
-
`KML - Unsupported Icon refreshMode: ${refreshMode}
|
|
879
|
+
`KML - Unsupported Icon refreshMode: ${refreshMode}`,
|
|
880
880
|
);
|
|
881
881
|
} else if (viewRefreshMode === "onStop" || viewRefreshMode === "onRegion") {
|
|
882
882
|
oneTimeWarning(
|
|
883
883
|
`kml-refreshMode-${viewRefreshMode}`,
|
|
884
|
-
`KML - Unsupported Icon viewRefreshMode: ${viewRefreshMode}
|
|
884
|
+
`KML - Unsupported Icon viewRefreshMode: ${viewRefreshMode}`,
|
|
885
885
|
);
|
|
886
886
|
}
|
|
887
887
|
|
|
888
888
|
const viewBoundScale = defaultValue(
|
|
889
889
|
queryStringValue(iconNode, "viewBoundScale", namespaces.kml),
|
|
890
|
-
1.0
|
|
890
|
+
1.0,
|
|
891
891
|
);
|
|
892
892
|
const defaultViewFormat =
|
|
893
893
|
viewRefreshMode === "onStop"
|
|
@@ -895,7 +895,7 @@ function getIconHref(
|
|
|
895
895
|
: "";
|
|
896
896
|
const viewFormat = defaultValue(
|
|
897
897
|
queryStringValue(iconNode, "viewFormat", namespaces.kml),
|
|
898
|
-
defaultViewFormat
|
|
898
|
+
defaultViewFormat,
|
|
899
899
|
);
|
|
900
900
|
const httpQuery = queryStringValue(iconNode, "httpQuery", namespaces.kml);
|
|
901
901
|
if (defined(viewFormat)) {
|
|
@@ -912,7 +912,7 @@ function getIconHref(
|
|
|
912
912
|
dataSource.canvas,
|
|
913
913
|
viewBoundScale,
|
|
914
914
|
dataSource._lastCameraView.bbox,
|
|
915
|
-
ellipsoid
|
|
915
|
+
ellipsoid,
|
|
916
916
|
);
|
|
917
917
|
|
|
918
918
|
return hrefResource;
|
|
@@ -926,7 +926,7 @@ function processBillboardIcon(
|
|
|
926
926
|
node,
|
|
927
927
|
targetEntity,
|
|
928
928
|
sourceResource,
|
|
929
|
-
uriResolver
|
|
929
|
+
uriResolver,
|
|
930
930
|
) {
|
|
931
931
|
let scale = queryNumericValue(node, "scale", namespaces.kml);
|
|
932
932
|
const heading = queryNumericValue(node, "heading", namespaces.kml);
|
|
@@ -938,7 +938,7 @@ function processBillboardIcon(
|
|
|
938
938
|
dataSource,
|
|
939
939
|
sourceResource,
|
|
940
940
|
uriResolver,
|
|
941
|
-
false
|
|
941
|
+
false,
|
|
942
942
|
);
|
|
943
943
|
|
|
944
944
|
// If icon tags are present but blank, we do not want to show an icon
|
|
@@ -1019,7 +1019,7 @@ function applyStyle(
|
|
|
1019
1019
|
styleNode,
|
|
1020
1020
|
targetEntity,
|
|
1021
1021
|
sourceResource,
|
|
1022
|
-
uriResolver
|
|
1022
|
+
uriResolver,
|
|
1023
1023
|
) {
|
|
1024
1024
|
for (let i = 0, len = styleNode.childNodes.length; i < len; i++) {
|
|
1025
1025
|
const node = styleNode.childNodes.item(i);
|
|
@@ -1029,7 +1029,7 @@ function applyStyle(
|
|
|
1029
1029
|
node,
|
|
1030
1030
|
targetEntity,
|
|
1031
1031
|
sourceResource,
|
|
1032
|
-
uriResolver
|
|
1032
|
+
uriResolver,
|
|
1033
1033
|
);
|
|
1034
1034
|
} else if (node.localName === "LabelStyle") {
|
|
1035
1035
|
let label = targetEntity.label;
|
|
@@ -1039,11 +1039,11 @@ function applyStyle(
|
|
|
1039
1039
|
}
|
|
1040
1040
|
label.scale = defaultValue(
|
|
1041
1041
|
queryNumericValue(node, "scale", namespaces.kml),
|
|
1042
|
-
label.scale
|
|
1042
|
+
label.scale,
|
|
1043
1043
|
);
|
|
1044
1044
|
label.fillColor = defaultValue(
|
|
1045
1045
|
queryColorValue(node, "color", namespaces.kml),
|
|
1046
|
-
label.fillColor
|
|
1046
|
+
label.fillColor,
|
|
1047
1047
|
);
|
|
1048
1048
|
label.text = targetEntity.name;
|
|
1049
1049
|
} else if (node.localName === "LineStyle") {
|
|
@@ -1057,25 +1057,25 @@ function applyStyle(
|
|
|
1057
1057
|
if (defined(queryColorValue(node, "outerColor", namespaces.gx))) {
|
|
1058
1058
|
oneTimeWarning(
|
|
1059
1059
|
"kml-gx:outerColor",
|
|
1060
|
-
"KML - gx:outerColor is not supported in a LineStyle"
|
|
1060
|
+
"KML - gx:outerColor is not supported in a LineStyle",
|
|
1061
1061
|
);
|
|
1062
1062
|
}
|
|
1063
1063
|
if (defined(queryNumericValue(node, "outerWidth", namespaces.gx))) {
|
|
1064
1064
|
oneTimeWarning(
|
|
1065
1065
|
"kml-gx:outerWidth",
|
|
1066
|
-
"KML - gx:outerWidth is not supported in a LineStyle"
|
|
1066
|
+
"KML - gx:outerWidth is not supported in a LineStyle",
|
|
1067
1067
|
);
|
|
1068
1068
|
}
|
|
1069
1069
|
if (defined(queryNumericValue(node, "physicalWidth", namespaces.gx))) {
|
|
1070
1070
|
oneTimeWarning(
|
|
1071
1071
|
"kml-gx:physicalWidth",
|
|
1072
|
-
"KML - gx:physicalWidth is not supported in a LineStyle"
|
|
1072
|
+
"KML - gx:physicalWidth is not supported in a LineStyle",
|
|
1073
1073
|
);
|
|
1074
1074
|
}
|
|
1075
1075
|
if (defined(queryBooleanValue(node, "labelVisibility", namespaces.gx))) {
|
|
1076
1076
|
oneTimeWarning(
|
|
1077
1077
|
"kml-gx:labelVisibility",
|
|
1078
|
-
"KML - gx:labelVisibility is not supported in a LineStyle"
|
|
1078
|
+
"KML - gx:labelVisibility is not supported in a LineStyle",
|
|
1079
1079
|
);
|
|
1080
1080
|
}
|
|
1081
1081
|
} else if (node.localName === "PolyStyle") {
|
|
@@ -1086,24 +1086,24 @@ function applyStyle(
|
|
|
1086
1086
|
}
|
|
1087
1087
|
polygon.material = defaultValue(
|
|
1088
1088
|
queryColorValue(node, "color", namespaces.kml),
|
|
1089
|
-
polygon.material
|
|
1089
|
+
polygon.material,
|
|
1090
1090
|
);
|
|
1091
1091
|
polygon.fill = defaultValue(
|
|
1092
1092
|
queryBooleanValue(node, "fill", namespaces.kml),
|
|
1093
|
-
polygon.fill
|
|
1093
|
+
polygon.fill,
|
|
1094
1094
|
);
|
|
1095
1095
|
polygon.outline = defaultValue(
|
|
1096
1096
|
queryBooleanValue(node, "outline", namespaces.kml),
|
|
1097
|
-
polygon.outline
|
|
1097
|
+
polygon.outline,
|
|
1098
1098
|
);
|
|
1099
1099
|
} else if (node.localName === "BalloonStyle") {
|
|
1100
1100
|
const bgColor = defaultValue(
|
|
1101
1101
|
parseColorString(queryStringValue(node, "bgColor", namespaces.kml)),
|
|
1102
|
-
Color.WHITE
|
|
1102
|
+
Color.WHITE,
|
|
1103
1103
|
);
|
|
1104
1104
|
const textColor = defaultValue(
|
|
1105
1105
|
parseColorString(queryStringValue(node, "textColor", namespaces.kml)),
|
|
1106
|
-
Color.BLACK
|
|
1106
|
+
Color.BLACK,
|
|
1107
1107
|
);
|
|
1108
1108
|
const text = queryStringValue(node, "text", namespaces.kml);
|
|
1109
1109
|
|
|
@@ -1119,12 +1119,12 @@ function applyStyle(
|
|
|
1119
1119
|
const listItemType = queryStringValue(
|
|
1120
1120
|
node,
|
|
1121
1121
|
"listItemType",
|
|
1122
|
-
namespaces.kml
|
|
1122
|
+
namespaces.kml,
|
|
1123
1123
|
);
|
|
1124
1124
|
if (listItemType === "radioFolder" || listItemType === "checkOffOnly") {
|
|
1125
1125
|
oneTimeWarning(
|
|
1126
1126
|
`kml-listStyle-${listItemType}`,
|
|
1127
|
-
`KML - Unsupported ListStyle with listItemType: ${listItemType}
|
|
1127
|
+
`KML - Unsupported ListStyle with listItemType: ${listItemType}`,
|
|
1128
1128
|
);
|
|
1129
1129
|
}
|
|
1130
1130
|
}
|
|
@@ -1137,7 +1137,7 @@ function computeFinalStyle(
|
|
|
1137
1137
|
placeMark,
|
|
1138
1138
|
styleCollection,
|
|
1139
1139
|
sourceResource,
|
|
1140
|
-
uriResolver
|
|
1140
|
+
uriResolver,
|
|
1141
1141
|
) {
|
|
1142
1142
|
const result = new Entity();
|
|
1143
1143
|
let styleEntity;
|
|
@@ -1161,7 +1161,7 @@ function computeFinalStyle(
|
|
|
1161
1161
|
inlineStyleNode,
|
|
1162
1162
|
result,
|
|
1163
1163
|
sourceResource,
|
|
1164
|
-
uriResolver
|
|
1164
|
+
uriResolver,
|
|
1165
1165
|
);
|
|
1166
1166
|
} else {
|
|
1167
1167
|
// StyleMap
|
|
@@ -1186,7 +1186,7 @@ function computeFinalStyle(
|
|
|
1186
1186
|
} else {
|
|
1187
1187
|
oneTimeWarning(
|
|
1188
1188
|
`kml-styleMap-${key}`,
|
|
1189
|
-
`KML - Unsupported StyleMap key: ${key}
|
|
1189
|
+
`KML - Unsupported StyleMap key: ${key}`,
|
|
1190
1190
|
);
|
|
1191
1191
|
}
|
|
1192
1192
|
}
|
|
@@ -1236,7 +1236,7 @@ function processStyles(
|
|
|
1236
1236
|
styleCollection,
|
|
1237
1237
|
sourceResource,
|
|
1238
1238
|
isExternal,
|
|
1239
|
-
uriResolver
|
|
1239
|
+
uriResolver,
|
|
1240
1240
|
) {
|
|
1241
1241
|
let i;
|
|
1242
1242
|
let id;
|
|
@@ -1264,7 +1264,7 @@ function processStyles(
|
|
|
1264
1264
|
node,
|
|
1265
1265
|
styleEntity,
|
|
1266
1266
|
sourceResource,
|
|
1267
|
-
uriResolver
|
|
1267
|
+
uriResolver,
|
|
1268
1268
|
);
|
|
1269
1269
|
}
|
|
1270
1270
|
}
|
|
@@ -1311,14 +1311,14 @@ function processStyles(
|
|
|
1311
1311
|
node,
|
|
1312
1312
|
styleEntity,
|
|
1313
1313
|
sourceResource,
|
|
1314
|
-
uriResolver
|
|
1314
|
+
uriResolver,
|
|
1315
1315
|
);
|
|
1316
1316
|
}
|
|
1317
1317
|
}
|
|
1318
1318
|
} else {
|
|
1319
1319
|
oneTimeWarning(
|
|
1320
1320
|
`kml-styleMap-${key}`,
|
|
1321
|
-
`KML - Unsupported StyleMap key: ${key}
|
|
1321
|
+
`KML - Unsupported StyleMap key: ${key}`,
|
|
1322
1322
|
);
|
|
1323
1323
|
}
|
|
1324
1324
|
}
|
|
@@ -1344,7 +1344,7 @@ function processStyles(
|
|
|
1344
1344
|
});
|
|
1345
1345
|
|
|
1346
1346
|
promises.push(
|
|
1347
|
-
processExternalStyles(dataSource, resource, styleCollection)
|
|
1347
|
+
processExternalStyles(dataSource, resource, styleCollection),
|
|
1348
1348
|
);
|
|
1349
1349
|
}
|
|
1350
1350
|
}
|
|
@@ -1386,7 +1386,7 @@ function heightReferenceFromAltitudeMode(altitudeMode, gxAltitudeMode) {
|
|
|
1386
1386
|
if (gxAltitudeMode === "clampToSeaFloor") {
|
|
1387
1387
|
oneTimeWarning(
|
|
1388
1388
|
"kml-gx:altitudeMode-clampToSeaFloor",
|
|
1389
|
-
"KML - <gx:altitudeMode>:clampToSeaFloor is currently not supported, using <kml:altitudeMode>:clampToGround."
|
|
1389
|
+
"KML - <gx:altitudeMode>:clampToSeaFloor is currently not supported, using <kml:altitudeMode>:clampToGround.",
|
|
1390
1390
|
);
|
|
1391
1391
|
return HeightReference.CLAMP_TO_GROUND;
|
|
1392
1392
|
}
|
|
@@ -1394,7 +1394,7 @@ function heightReferenceFromAltitudeMode(altitudeMode, gxAltitudeMode) {
|
|
|
1394
1394
|
if (gxAltitudeMode === "relativeToSeaFloor") {
|
|
1395
1395
|
oneTimeWarning(
|
|
1396
1396
|
"kml-gx:altitudeMode-relativeToSeaFloor",
|
|
1397
|
-
"KML - <gx:altitudeMode>:relativeToSeaFloor is currently not supported, using <kml:altitudeMode>:relativeToGround."
|
|
1397
|
+
"KML - <gx:altitudeMode>:relativeToSeaFloor is currently not supported, using <kml:altitudeMode>:relativeToGround.",
|
|
1398
1398
|
);
|
|
1399
1399
|
return HeightReference.RELATIVE_TO_GROUND;
|
|
1400
1400
|
}
|
|
@@ -1402,12 +1402,12 @@ function heightReferenceFromAltitudeMode(altitudeMode, gxAltitudeMode) {
|
|
|
1402
1402
|
if (defined(altitudeMode)) {
|
|
1403
1403
|
oneTimeWarning(
|
|
1404
1404
|
"kml-altitudeMode-unknown",
|
|
1405
|
-
`KML - Unknown <kml:altitudeMode>:${altitudeMode}, using <kml:altitudeMode>:CLAMP_TO_GROUND
|
|
1405
|
+
`KML - Unknown <kml:altitudeMode>:${altitudeMode}, using <kml:altitudeMode>:CLAMP_TO_GROUND.`,
|
|
1406
1406
|
);
|
|
1407
1407
|
} else {
|
|
1408
1408
|
oneTimeWarning(
|
|
1409
1409
|
"kml-gx:altitudeMode-unknown",
|
|
1410
|
-
`KML - Unknown <gx:altitudeMode>:${gxAltitudeMode}, using <kml:altitudeMode>:CLAMP_TO_GROUND
|
|
1410
|
+
`KML - Unknown <gx:altitudeMode>:${gxAltitudeMode}, using <kml:altitudeMode>:CLAMP_TO_GROUND.`,
|
|
1411
1411
|
);
|
|
1412
1412
|
}
|
|
1413
1413
|
|
|
@@ -1418,7 +1418,7 @@ function heightReferenceFromAltitudeMode(altitudeMode, gxAltitudeMode) {
|
|
|
1418
1418
|
function createPositionPropertyFromAltitudeMode(
|
|
1419
1419
|
property,
|
|
1420
1420
|
altitudeMode,
|
|
1421
|
-
gxAltitudeMode
|
|
1421
|
+
gxAltitudeMode,
|
|
1422
1422
|
) {
|
|
1423
1423
|
if (
|
|
1424
1424
|
gxAltitudeMode === "relativeToSeaFloor" ||
|
|
@@ -1437,8 +1437,8 @@ function createPositionPropertyFromAltitudeMode(
|
|
|
1437
1437
|
"kml-altitudeMode-unknown",
|
|
1438
1438
|
`KML - Unknown altitudeMode: ${defaultValue(
|
|
1439
1439
|
altitudeMode,
|
|
1440
|
-
gxAltitudeMode
|
|
1441
|
-
)}
|
|
1440
|
+
gxAltitudeMode,
|
|
1441
|
+
)}`,
|
|
1442
1442
|
);
|
|
1443
1443
|
}
|
|
1444
1444
|
|
|
@@ -1450,7 +1450,7 @@ function createPositionPropertyArrayFromAltitudeMode(
|
|
|
1450
1450
|
properties,
|
|
1451
1451
|
altitudeMode,
|
|
1452
1452
|
gxAltitudeMode,
|
|
1453
|
-
ellipsoid
|
|
1453
|
+
ellipsoid,
|
|
1454
1454
|
) {
|
|
1455
1455
|
if (!defined(properties)) {
|
|
1456
1456
|
return undefined;
|
|
@@ -1473,8 +1473,8 @@ function createPositionPropertyArrayFromAltitudeMode(
|
|
|
1473
1473
|
"kml-altitudeMode-unknown",
|
|
1474
1474
|
`KML - Unknown altitudeMode: ${defaultValue(
|
|
1475
1475
|
altitudeMode,
|
|
1476
|
-
gxAltitudeMode
|
|
1477
|
-
)}
|
|
1476
|
+
gxAltitudeMode,
|
|
1477
|
+
)}`,
|
|
1478
1478
|
);
|
|
1479
1479
|
}
|
|
1480
1480
|
|
|
@@ -1491,7 +1491,7 @@ function processPositionGraphics(
|
|
|
1491
1491
|
dataSource,
|
|
1492
1492
|
entity,
|
|
1493
1493
|
styleEntity,
|
|
1494
|
-
heightReference
|
|
1494
|
+
heightReference,
|
|
1495
1495
|
) {
|
|
1496
1496
|
let label = entity.label;
|
|
1497
1497
|
if (!defined(label)) {
|
|
@@ -1558,22 +1558,22 @@ function processPoint(
|
|
|
1558
1558
|
entityCollection,
|
|
1559
1559
|
geometryNode,
|
|
1560
1560
|
entity,
|
|
1561
|
-
styleEntity
|
|
1561
|
+
styleEntity,
|
|
1562
1562
|
) {
|
|
1563
1563
|
const coordinatesString = queryStringValue(
|
|
1564
1564
|
geometryNode,
|
|
1565
1565
|
"coordinates",
|
|
1566
|
-
namespaces.kml
|
|
1566
|
+
namespaces.kml,
|
|
1567
1567
|
);
|
|
1568
1568
|
const altitudeMode = queryStringValue(
|
|
1569
1569
|
geometryNode,
|
|
1570
1570
|
"altitudeMode",
|
|
1571
|
-
namespaces.kml
|
|
1571
|
+
namespaces.kml,
|
|
1572
1572
|
);
|
|
1573
1573
|
const gxAltitudeMode = queryStringValue(
|
|
1574
1574
|
geometryNode,
|
|
1575
1575
|
"altitudeMode",
|
|
1576
|
-
namespaces.gx
|
|
1576
|
+
namespaces.gx,
|
|
1577
1577
|
);
|
|
1578
1578
|
const extrude = queryBooleanValue(geometryNode, "extrude", namespaces.kml);
|
|
1579
1579
|
const ellipsoid = dataSource._ellipsoid;
|
|
@@ -1584,7 +1584,7 @@ function processPoint(
|
|
|
1584
1584
|
dataSource,
|
|
1585
1585
|
entity,
|
|
1586
1586
|
styleEntity,
|
|
1587
|
-
heightReferenceFromAltitudeMode(altitudeMode, gxAltitudeMode)
|
|
1587
|
+
heightReferenceFromAltitudeMode(altitudeMode, gxAltitudeMode),
|
|
1588
1588
|
);
|
|
1589
1589
|
|
|
1590
1590
|
if (extrude && isExtrudable(altitudeMode, gxAltitudeMode)) {
|
|
@@ -1599,28 +1599,28 @@ function processLineStringOrLinearRing(
|
|
|
1599
1599
|
entityCollection,
|
|
1600
1600
|
geometryNode,
|
|
1601
1601
|
entity,
|
|
1602
|
-
styleEntity
|
|
1602
|
+
styleEntity,
|
|
1603
1603
|
) {
|
|
1604
1604
|
const coordinatesNode = queryFirstNode(
|
|
1605
1605
|
geometryNode,
|
|
1606
1606
|
"coordinates",
|
|
1607
|
-
namespaces.kml
|
|
1607
|
+
namespaces.kml,
|
|
1608
1608
|
);
|
|
1609
1609
|
const altitudeMode = queryStringValue(
|
|
1610
1610
|
geometryNode,
|
|
1611
1611
|
"altitudeMode",
|
|
1612
|
-
namespaces.kml
|
|
1612
|
+
namespaces.kml,
|
|
1613
1613
|
);
|
|
1614
1614
|
const gxAltitudeMode = queryStringValue(
|
|
1615
1615
|
geometryNode,
|
|
1616
1616
|
"altitudeMode",
|
|
1617
|
-
namespaces.gx
|
|
1617
|
+
namespaces.gx,
|
|
1618
1618
|
);
|
|
1619
1619
|
const extrude = queryBooleanValue(geometryNode, "extrude", namespaces.kml);
|
|
1620
1620
|
const tessellate = queryBooleanValue(
|
|
1621
1621
|
geometryNode,
|
|
1622
1622
|
"tessellate",
|
|
1623
|
-
namespaces.kml
|
|
1623
|
+
namespaces.kml,
|
|
1624
1624
|
);
|
|
1625
1625
|
const canExtrude = isExtrudable(altitudeMode, gxAltitudeMode);
|
|
1626
1626
|
const zIndex = queryNumericValue(geometryNode, "drawOrder", namespaces.gx);
|
|
@@ -1670,13 +1670,13 @@ function processLineStringOrLinearRing(
|
|
|
1670
1670
|
if (defined(zIndex)) {
|
|
1671
1671
|
oneTimeWarning(
|
|
1672
1672
|
"kml-gx:drawOrder",
|
|
1673
|
-
"KML - gx:drawOrder is not supported in LineStrings when clampToGround is false"
|
|
1673
|
+
"KML - gx:drawOrder is not supported in LineStrings when clampToGround is false",
|
|
1674
1674
|
);
|
|
1675
1675
|
}
|
|
1676
1676
|
if (dataSource._clampToGround && !tessellate) {
|
|
1677
1677
|
oneTimeWarning(
|
|
1678
1678
|
"kml-line-tesselate",
|
|
1679
|
-
"Ignoring clampToGround for KML lines without the tessellate flag."
|
|
1679
|
+
"Ignoring clampToGround for KML lines without the tessellate flag.",
|
|
1680
1680
|
);
|
|
1681
1681
|
}
|
|
1682
1682
|
|
|
@@ -1686,7 +1686,7 @@ function processLineStringOrLinearRing(
|
|
|
1686
1686
|
coordinates,
|
|
1687
1687
|
altitudeMode,
|
|
1688
1688
|
gxAltitudeMode,
|
|
1689
|
-
ellipsoid
|
|
1689
|
+
ellipsoid,
|
|
1690
1690
|
);
|
|
1691
1691
|
if (!tessellate || canExtrude) {
|
|
1692
1692
|
polyline.arcType = ArcType.NONE;
|
|
@@ -1701,22 +1701,22 @@ function processPolygon(
|
|
|
1701
1701
|
entityCollection,
|
|
1702
1702
|
geometryNode,
|
|
1703
1703
|
entity,
|
|
1704
|
-
styleEntity
|
|
1704
|
+
styleEntity,
|
|
1705
1705
|
) {
|
|
1706
1706
|
const outerBoundaryIsNode = queryFirstNode(
|
|
1707
1707
|
geometryNode,
|
|
1708
1708
|
"outerBoundaryIs",
|
|
1709
|
-
namespaces.kml
|
|
1709
|
+
namespaces.kml,
|
|
1710
1710
|
);
|
|
1711
1711
|
let linearRingNode = queryFirstNode(
|
|
1712
1712
|
outerBoundaryIsNode,
|
|
1713
1713
|
"LinearRing",
|
|
1714
|
-
namespaces.kml
|
|
1714
|
+
namespaces.kml,
|
|
1715
1715
|
);
|
|
1716
1716
|
let coordinatesNode = queryFirstNode(
|
|
1717
1717
|
linearRingNode,
|
|
1718
1718
|
"coordinates",
|
|
1719
|
-
namespaces.kml
|
|
1719
|
+
namespaces.kml,
|
|
1720
1720
|
);
|
|
1721
1721
|
const ellipsoid = dataSource._ellipsoid;
|
|
1722
1722
|
let coordinates = readCoordinates(coordinatesNode, ellipsoid);
|
|
@@ -1724,12 +1724,12 @@ function processPolygon(
|
|
|
1724
1724
|
const altitudeMode = queryStringValue(
|
|
1725
1725
|
geometryNode,
|
|
1726
1726
|
"altitudeMode",
|
|
1727
|
-
namespaces.kml
|
|
1727
|
+
namespaces.kml,
|
|
1728
1728
|
);
|
|
1729
1729
|
const gxAltitudeMode = queryStringValue(
|
|
1730
1730
|
geometryNode,
|
|
1731
1731
|
"altitudeMode",
|
|
1732
|
-
namespaces.gx
|
|
1732
|
+
namespaces.gx,
|
|
1733
1733
|
);
|
|
1734
1734
|
const canExtrude = isExtrudable(altitudeMode, gxAltitudeMode);
|
|
1735
1735
|
|
|
@@ -1758,19 +1758,19 @@ function processPolygon(
|
|
|
1758
1758
|
const innerBoundaryIsNodes = queryChildNodes(
|
|
1759
1759
|
geometryNode,
|
|
1760
1760
|
"innerBoundaryIs",
|
|
1761
|
-
namespaces.kml
|
|
1761
|
+
namespaces.kml,
|
|
1762
1762
|
);
|
|
1763
1763
|
for (let j = 0; j < innerBoundaryIsNodes.length; j++) {
|
|
1764
1764
|
linearRingNode = queryChildNodes(
|
|
1765
1765
|
innerBoundaryIsNodes[j],
|
|
1766
1766
|
"LinearRing",
|
|
1767
|
-
namespaces.kml
|
|
1767
|
+
namespaces.kml,
|
|
1768
1768
|
);
|
|
1769
1769
|
for (let k = 0; k < linearRingNode.length; k++) {
|
|
1770
1770
|
coordinatesNode = queryFirstNode(
|
|
1771
1771
|
linearRingNode[k],
|
|
1772
1772
|
"coordinates",
|
|
1773
|
-
namespaces.kml
|
|
1773
|
+
namespaces.kml,
|
|
1774
1774
|
);
|
|
1775
1775
|
coordinates = readCoordinates(coordinatesNode, ellipsoid);
|
|
1776
1776
|
if (defined(coordinates)) {
|
|
@@ -1789,17 +1789,17 @@ function processTrack(
|
|
|
1789
1789
|
entityCollection,
|
|
1790
1790
|
geometryNode,
|
|
1791
1791
|
entity,
|
|
1792
|
-
styleEntity
|
|
1792
|
+
styleEntity,
|
|
1793
1793
|
) {
|
|
1794
1794
|
const altitudeMode = queryStringValue(
|
|
1795
1795
|
geometryNode,
|
|
1796
1796
|
"altitudeMode",
|
|
1797
|
-
namespaces.kml
|
|
1797
|
+
namespaces.kml,
|
|
1798
1798
|
);
|
|
1799
1799
|
const gxAltitudeMode = queryStringValue(
|
|
1800
1800
|
geometryNode,
|
|
1801
1801
|
"altitudeMode",
|
|
1802
|
-
namespaces.gx
|
|
1802
|
+
namespaces.gx,
|
|
1803
1803
|
);
|
|
1804
1804
|
const coordNodes = queryChildNodes(geometryNode, "coord", namespaces.gx);
|
|
1805
1805
|
const angleNodes = queryChildNodes(geometryNode, "angles", namespaces.gx);
|
|
@@ -1811,7 +1811,7 @@ function processTrack(
|
|
|
1811
1811
|
if (angleNodes.length > 0) {
|
|
1812
1812
|
oneTimeWarning(
|
|
1813
1813
|
"kml-gx:angles",
|
|
1814
|
-
"KML - gx:angles are not supported in gx:Tracks"
|
|
1814
|
+
"KML - gx:angles are not supported in gx:Tracks",
|
|
1815
1815
|
);
|
|
1816
1816
|
}
|
|
1817
1817
|
|
|
@@ -1830,7 +1830,7 @@ function processTrack(
|
|
|
1830
1830
|
dataSource,
|
|
1831
1831
|
entity,
|
|
1832
1832
|
styleEntity,
|
|
1833
|
-
heightReferenceFromAltitudeMode(altitudeMode, gxAltitudeMode)
|
|
1833
|
+
heightReferenceFromAltitudeMode(altitudeMode, gxAltitudeMode),
|
|
1834
1834
|
);
|
|
1835
1835
|
processPathGraphics(entity, styleEntity);
|
|
1836
1836
|
|
|
@@ -1841,7 +1841,7 @@ function processTrack(
|
|
|
1841
1841
|
new TimeInterval({
|
|
1842
1842
|
start: times[0],
|
|
1843
1843
|
stop: times[times.length - 1],
|
|
1844
|
-
})
|
|
1844
|
+
}),
|
|
1845
1845
|
);
|
|
1846
1846
|
}
|
|
1847
1847
|
|
|
@@ -1861,7 +1861,7 @@ function addToMultiTrack(
|
|
|
1861
1861
|
extrude,
|
|
1862
1862
|
altitudeMode,
|
|
1863
1863
|
gxAltitudeMode,
|
|
1864
|
-
includeEndPoints
|
|
1864
|
+
includeEndPoints,
|
|
1865
1865
|
) {
|
|
1866
1866
|
const start = times[0];
|
|
1867
1867
|
const stop = times[times.length - 1];
|
|
@@ -1878,9 +1878,9 @@ function addToMultiTrack(
|
|
|
1878
1878
|
data: createPositionPropertyFromAltitudeMode(
|
|
1879
1879
|
data,
|
|
1880
1880
|
altitudeMode,
|
|
1881
|
-
gxAltitudeMode
|
|
1881
|
+
gxAltitudeMode,
|
|
1882
1882
|
),
|
|
1883
|
-
})
|
|
1883
|
+
}),
|
|
1884
1884
|
);
|
|
1885
1885
|
availability.addInterval(
|
|
1886
1886
|
new TimeInterval({
|
|
@@ -1888,7 +1888,7 @@ function addToMultiTrack(
|
|
|
1888
1888
|
stop: stop,
|
|
1889
1889
|
isStartIncluded: includeEndPoints,
|
|
1890
1890
|
isStopIncluded: includeEndPoints,
|
|
1891
|
-
})
|
|
1891
|
+
}),
|
|
1892
1892
|
);
|
|
1893
1893
|
dropShowProperty.intervals.addInterval(
|
|
1894
1894
|
new TimeInterval({
|
|
@@ -1897,7 +1897,7 @@ function addToMultiTrack(
|
|
|
1897
1897
|
isStartIncluded: includeEndPoints,
|
|
1898
1898
|
isStopIncluded: includeEndPoints,
|
|
1899
1899
|
data: extrude,
|
|
1900
|
-
})
|
|
1900
|
+
}),
|
|
1901
1901
|
);
|
|
1902
1902
|
}
|
|
1903
1903
|
|
|
@@ -1906,7 +1906,7 @@ function processMultiTrack(
|
|
|
1906
1906
|
entityCollection,
|
|
1907
1907
|
geometryNode,
|
|
1908
1908
|
entity,
|
|
1909
|
-
styleEntity
|
|
1909
|
+
styleEntity,
|
|
1910
1910
|
) {
|
|
1911
1911
|
// Multitrack options do not work in GE as detailed in the spec,
|
|
1912
1912
|
// rather than altitudeMode being at the MultiTrack level,
|
|
@@ -1915,7 +1915,7 @@ function processMultiTrack(
|
|
|
1915
1915
|
const interpolate = queryBooleanValue(
|
|
1916
1916
|
geometryNode,
|
|
1917
1917
|
"interpolate",
|
|
1918
|
-
namespaces.gx
|
|
1918
|
+
namespaces.gx,
|
|
1919
1919
|
);
|
|
1920
1920
|
const trackNodes = queryChildNodes(geometryNode, "Track", namespaces.gx);
|
|
1921
1921
|
|
|
@@ -1934,12 +1934,12 @@ function processMultiTrack(
|
|
|
1934
1934
|
const altitudeMode = queryStringValue(
|
|
1935
1935
|
trackNode,
|
|
1936
1936
|
"altitudeMode",
|
|
1937
|
-
namespaces.kml
|
|
1937
|
+
namespaces.kml,
|
|
1938
1938
|
);
|
|
1939
1939
|
const gxAltitudeMode = queryStringValue(
|
|
1940
1940
|
trackNode,
|
|
1941
1941
|
"altitudeMode",
|
|
1942
|
-
namespaces.gx
|
|
1942
|
+
namespaces.gx,
|
|
1943
1943
|
);
|
|
1944
1944
|
const canExtrude = isExtrudable(altitudeMode, gxAltitudeMode);
|
|
1945
1945
|
const extrude = queryBooleanValue(trackNode, "extrude", namespaces.kml);
|
|
@@ -1969,7 +1969,7 @@ function processMultiTrack(
|
|
|
1969
1969
|
false,
|
|
1970
1970
|
"absolute",
|
|
1971
1971
|
undefined,
|
|
1972
|
-
false
|
|
1972
|
+
false,
|
|
1973
1973
|
);
|
|
1974
1974
|
}
|
|
1975
1975
|
lastStop = times[length - 1];
|
|
@@ -1985,7 +1985,7 @@ function processMultiTrack(
|
|
|
1985
1985
|
canExtrude && extrude,
|
|
1986
1986
|
altitudeMode,
|
|
1987
1987
|
gxAltitudeMode,
|
|
1988
|
-
true
|
|
1988
|
+
true,
|
|
1989
1989
|
);
|
|
1990
1990
|
needDropLine = needDropLine || (canExtrude && extrude);
|
|
1991
1991
|
}
|
|
@@ -2019,7 +2019,7 @@ function processMultiGeometry(
|
|
|
2019
2019
|
geometryNode,
|
|
2020
2020
|
entity,
|
|
2021
2021
|
styleEntity,
|
|
2022
|
-
context
|
|
2022
|
+
context,
|
|
2023
2023
|
) {
|
|
2024
2024
|
const childNodes = geometryNode.childNodes;
|
|
2025
2025
|
let hasGeometry = false;
|
|
@@ -2039,7 +2039,7 @@ function processMultiGeometry(
|
|
|
2039
2039
|
entityCollection,
|
|
2040
2040
|
childNode,
|
|
2041
2041
|
childEntity,
|
|
2042
|
-
styleEntity
|
|
2042
|
+
styleEntity,
|
|
2043
2043
|
)
|
|
2044
2044
|
) {
|
|
2045
2045
|
hasGeometry = true;
|
|
@@ -2055,11 +2055,11 @@ function processUnsupportedGeometry(
|
|
|
2055
2055
|
entityCollection,
|
|
2056
2056
|
geometryNode,
|
|
2057
2057
|
entity,
|
|
2058
|
-
styleEntity
|
|
2058
|
+
styleEntity,
|
|
2059
2059
|
) {
|
|
2060
2060
|
oneTimeWarning(
|
|
2061
2061
|
"kml-unsupportedGeometry",
|
|
2062
|
-
`KML - Unsupported geometry: ${geometryNode.localName}
|
|
2062
|
+
`KML - Unsupported geometry: ${geometryNode.localName}`,
|
|
2063
2063
|
);
|
|
2064
2064
|
return false;
|
|
2065
2065
|
}
|
|
@@ -2077,7 +2077,7 @@ function processExtendedData(node, entity) {
|
|
|
2077
2077
|
if (defined(queryStringAttribute(extendedDataNode, "xmlns:prefix"))) {
|
|
2078
2078
|
oneTimeWarning(
|
|
2079
2079
|
"kml-extendedData",
|
|
2080
|
-
"KML - ExtendedData with xmlns:prefix is unsupported"
|
|
2080
|
+
"KML - ExtendedData with xmlns:prefix is unsupported",
|
|
2081
2081
|
);
|
|
2082
2082
|
}
|
|
2083
2083
|
|
|
@@ -2093,7 +2093,7 @@ function processExtendedData(node, entity) {
|
|
|
2093
2093
|
displayName: queryStringValue(
|
|
2094
2094
|
dataNode,
|
|
2095
2095
|
"displayName",
|
|
2096
|
-
namespaces.kml
|
|
2096
|
+
namespaces.kml,
|
|
2097
2097
|
),
|
|
2098
2098
|
value: queryStringValue(dataNode, "value", namespaces.kml),
|
|
2099
2099
|
};
|
|
@@ -2113,7 +2113,7 @@ function processDescription(
|
|
|
2113
2113
|
entity,
|
|
2114
2114
|
styleEntity,
|
|
2115
2115
|
uriResolver,
|
|
2116
|
-
sourceResource
|
|
2116
|
+
sourceResource,
|
|
2117
2117
|
) {
|
|
2118
2118
|
let i;
|
|
2119
2119
|
let key;
|
|
@@ -2125,7 +2125,7 @@ function processDescription(
|
|
|
2125
2125
|
|
|
2126
2126
|
const balloonStyle = defaultValue(
|
|
2127
2127
|
entity.balloonStyle,
|
|
2128
|
-
styleEntity.balloonStyle
|
|
2128
|
+
styleEntity.balloonStyle,
|
|
2129
2129
|
);
|
|
2130
2130
|
|
|
2131
2131
|
let background = Color.WHITE;
|
|
@@ -2181,7 +2181,7 @@ function processDescription(
|
|
|
2181
2181
|
value = extendedData[key];
|
|
2182
2182
|
text += `<tr><th>${defaultValue(
|
|
2183
2183
|
value.displayName,
|
|
2184
|
-
key
|
|
2184
|
+
key,
|
|
2185
2185
|
)}</th><td>${defaultValue(value.value, "")}</td></tr>`;
|
|
2186
2186
|
}
|
|
2187
2187
|
text += "</tbody></table>";
|
|
@@ -2258,7 +2258,7 @@ function processFeature(dataSource, featureNode, processingData) {
|
|
|
2258
2258
|
const entity = createEntity(
|
|
2259
2259
|
featureNode,
|
|
2260
2260
|
entityCollection,
|
|
2261
|
-
processingData.context
|
|
2261
|
+
processingData.context,
|
|
2262
2262
|
);
|
|
2263
2263
|
const kmlData = entity.kml;
|
|
2264
2264
|
const styleEntity = computeFinalStyle(
|
|
@@ -2266,7 +2266,7 @@ function processFeature(dataSource, featureNode, processingData) {
|
|
|
2266
2266
|
featureNode,
|
|
2267
2267
|
processingData.styleCollection,
|
|
2268
2268
|
sourceResource,
|
|
2269
|
-
uriResolver
|
|
2269
|
+
uriResolver,
|
|
2270
2270
|
);
|
|
2271
2271
|
|
|
2272
2272
|
const name = queryStringValue(featureNode, "name", namespaces.kml);
|
|
@@ -2292,7 +2292,7 @@ function processFeature(dataSource, featureNode, processingData) {
|
|
|
2292
2292
|
const visibility = queryBooleanValue(
|
|
2293
2293
|
featureNode,
|
|
2294
2294
|
"visibility",
|
|
2295
|
-
namespaces.kml
|
|
2295
|
+
namespaces.kml,
|
|
2296
2296
|
);
|
|
2297
2297
|
entity.show = ancestryIsVisible(parent) && defaultValue(visibility, true);
|
|
2298
2298
|
//const open = queryBooleanValue(featureNode, 'open', namespaces.kml);
|
|
@@ -2316,7 +2316,7 @@ function processFeature(dataSource, featureNode, processingData) {
|
|
|
2316
2316
|
kmlData.phoneNumber = queryStringValue(
|
|
2317
2317
|
featureNode,
|
|
2318
2318
|
"phoneNumber",
|
|
2319
|
-
namespaces.kml
|
|
2319
|
+
namespaces.kml,
|
|
2320
2320
|
);
|
|
2321
2321
|
kmlData.snippet = queryStringValue(featureNode, "Snippet", namespaces.kml);
|
|
2322
2322
|
|
|
@@ -2326,7 +2326,7 @@ function processFeature(dataSource, featureNode, processingData) {
|
|
|
2326
2326
|
entity,
|
|
2327
2327
|
styleEntity,
|
|
2328
2328
|
uriResolver,
|
|
2329
|
-
sourceResource
|
|
2329
|
+
sourceResource,
|
|
2330
2330
|
);
|
|
2331
2331
|
|
|
2332
2332
|
const ellipsoid = dataSource._ellipsoid;
|
|
@@ -2359,7 +2359,7 @@ function processPlacemark(
|
|
|
2359
2359
|
dataSource,
|
|
2360
2360
|
placemark,
|
|
2361
2361
|
processingData,
|
|
2362
|
-
deferredLoading
|
|
2362
|
+
deferredLoading,
|
|
2363
2363
|
) {
|
|
2364
2364
|
const r = processFeature(dataSource, placemark, processingData);
|
|
2365
2365
|
const entity = r.entity;
|
|
@@ -2379,7 +2379,7 @@ function processPlacemark(
|
|
|
2379
2379
|
childNode,
|
|
2380
2380
|
entity,
|
|
2381
2381
|
styleEntity,
|
|
2382
|
-
entity.id
|
|
2382
|
+
entity.id,
|
|
2383
2383
|
);
|
|
2384
2384
|
hasGeometry = true;
|
|
2385
2385
|
}
|
|
@@ -2417,7 +2417,7 @@ function processTour(dataSource, node, processingData, deferredLoading) {
|
|
|
2417
2417
|
playlistNodeProcessor(tour, entryNode, ellipsoid);
|
|
2418
2418
|
} else {
|
|
2419
2419
|
console.log(
|
|
2420
|
-
`Unknown KML Tour playlist entry type ${entryNode.localName}
|
|
2420
|
+
`Unknown KML Tour playlist entry type ${entryNode.localName}`,
|
|
2421
2421
|
);
|
|
2422
2422
|
}
|
|
2423
2423
|
}
|
|
@@ -2456,28 +2456,28 @@ function processCamera(featureNode, entity, ellipsoid) {
|
|
|
2456
2456
|
if (defined(camera)) {
|
|
2457
2457
|
const lon = defaultValue(
|
|
2458
2458
|
queryNumericValue(camera, "longitude", namespaces.kml),
|
|
2459
|
-
0.0
|
|
2459
|
+
0.0,
|
|
2460
2460
|
);
|
|
2461
2461
|
const lat = defaultValue(
|
|
2462
2462
|
queryNumericValue(camera, "latitude", namespaces.kml),
|
|
2463
|
-
0.0
|
|
2463
|
+
0.0,
|
|
2464
2464
|
);
|
|
2465
2465
|
const altitude = defaultValue(
|
|
2466
2466
|
queryNumericValue(camera, "altitude", namespaces.kml),
|
|
2467
|
-
0.0
|
|
2467
|
+
0.0,
|
|
2468
2468
|
);
|
|
2469
2469
|
|
|
2470
2470
|
const heading = defaultValue(
|
|
2471
2471
|
queryNumericValue(camera, "heading", namespaces.kml),
|
|
2472
|
-
0.0
|
|
2472
|
+
0.0,
|
|
2473
2473
|
);
|
|
2474
2474
|
const tilt = defaultValue(
|
|
2475
2475
|
queryNumericValue(camera, "tilt", namespaces.kml),
|
|
2476
|
-
0.0
|
|
2476
|
+
0.0,
|
|
2477
2477
|
);
|
|
2478
2478
|
const roll = defaultValue(
|
|
2479
2479
|
queryNumericValue(camera, "roll", namespaces.kml),
|
|
2480
|
-
0.0
|
|
2480
|
+
0.0,
|
|
2481
2481
|
);
|
|
2482
2482
|
|
|
2483
2483
|
const position = Cartesian3.fromDegrees(lon, lat, altitude, ellipsoid);
|
|
@@ -2492,21 +2492,21 @@ function processLookAt(featureNode, entity, ellipsoid) {
|
|
|
2492
2492
|
if (defined(lookAt)) {
|
|
2493
2493
|
const lon = defaultValue(
|
|
2494
2494
|
queryNumericValue(lookAt, "longitude", namespaces.kml),
|
|
2495
|
-
0.0
|
|
2495
|
+
0.0,
|
|
2496
2496
|
);
|
|
2497
2497
|
const lat = defaultValue(
|
|
2498
2498
|
queryNumericValue(lookAt, "latitude", namespaces.kml),
|
|
2499
|
-
0.0
|
|
2499
|
+
0.0,
|
|
2500
2500
|
);
|
|
2501
2501
|
const altitude = defaultValue(
|
|
2502
2502
|
queryNumericValue(lookAt, "altitude", namespaces.kml),
|
|
2503
|
-
0.0
|
|
2503
|
+
0.0,
|
|
2504
2504
|
);
|
|
2505
2505
|
let heading = queryNumericValue(lookAt, "heading", namespaces.kml);
|
|
2506
2506
|
let tilt = queryNumericValue(lookAt, "tilt", namespaces.kml);
|
|
2507
2507
|
const range = defaultValue(
|
|
2508
2508
|
queryNumericValue(lookAt, "range", namespaces.kml),
|
|
2509
|
-
0.0
|
|
2509
|
+
0.0,
|
|
2510
2510
|
);
|
|
2511
2511
|
|
|
2512
2512
|
tilt = CesiumMath.toRadians(defaultValue(tilt, 0.0));
|
|
@@ -2515,7 +2515,7 @@ function processLookAt(featureNode, entity, ellipsoid) {
|
|
|
2515
2515
|
const hpr = new HeadingPitchRange(
|
|
2516
2516
|
heading,
|
|
2517
2517
|
tilt - CesiumMath.PI_OVER_TWO,
|
|
2518
|
-
range
|
|
2518
|
+
range,
|
|
2519
2519
|
);
|
|
2520
2520
|
const viewPoint = Cartesian3.fromDegrees(lon, lat, altitude, ellipsoid);
|
|
2521
2521
|
|
|
@@ -2527,7 +2527,7 @@ function processScreenOverlay(
|
|
|
2527
2527
|
dataSource,
|
|
2528
2528
|
screenOverlayNode,
|
|
2529
2529
|
processingData,
|
|
2530
|
-
deferredLoading
|
|
2530
|
+
deferredLoading,
|
|
2531
2531
|
) {
|
|
2532
2532
|
const screenOverlay = processingData.screenOverlayContainer;
|
|
2533
2533
|
if (!defined(screenOverlay)) {
|
|
@@ -2543,7 +2543,7 @@ function processScreenOverlay(
|
|
|
2543
2543
|
dataSource,
|
|
2544
2544
|
sourceResource,
|
|
2545
2545
|
uriResolver,
|
|
2546
|
-
false
|
|
2546
|
+
false,
|
|
2547
2547
|
);
|
|
2548
2548
|
|
|
2549
2549
|
if (!defined(icon)) {
|
|
@@ -2560,12 +2560,12 @@ function processScreenOverlay(
|
|
|
2560
2560
|
const screenXY = queryFirstNode(
|
|
2561
2561
|
screenOverlayNode,
|
|
2562
2562
|
"screenXY",
|
|
2563
|
-
namespaces.kml
|
|
2563
|
+
namespaces.kml,
|
|
2564
2564
|
);
|
|
2565
2565
|
const overlayXY = queryFirstNode(
|
|
2566
2566
|
screenOverlayNode,
|
|
2567
2567
|
"overlayXY",
|
|
2568
|
-
namespaces.kml
|
|
2568
|
+
namespaces.kml,
|
|
2569
2569
|
);
|
|
2570
2570
|
const size = queryFirstNode(screenOverlayNode, "size", namespaces.kml);
|
|
2571
2571
|
|
|
@@ -2642,7 +2642,7 @@ function processScreenOverlay(
|
|
|
2642
2642
|
if (defined(x)) {
|
|
2643
2643
|
if (xUnit === "fraction") {
|
|
2644
2644
|
xStyle = `${"left: " + "calc("}${Math.floor(
|
|
2645
|
-
x * 100
|
|
2645
|
+
x * 100,
|
|
2646
2646
|
)}% - ${xOrigin}px)`;
|
|
2647
2647
|
} else if (xUnit === "pixels") {
|
|
2648
2648
|
xStyle = `left: ${x - xOrigin}px`;
|
|
@@ -2656,7 +2656,7 @@ function processScreenOverlay(
|
|
|
2656
2656
|
if (defined(y)) {
|
|
2657
2657
|
if (yUnit === "fraction") {
|
|
2658
2658
|
yStyle = `${"bottom: " + "calc("}${Math.floor(
|
|
2659
|
-
y * 100
|
|
2659
|
+
y * 100,
|
|
2660
2660
|
)}% - ${yOrigin}px)`;
|
|
2661
2661
|
} else if (yUnit === "pixels") {
|
|
2662
2662
|
yStyle = `bottom: ${y - yOrigin}px`;
|
|
@@ -2678,7 +2678,7 @@ function processGroundOverlay(
|
|
|
2678
2678
|
dataSource,
|
|
2679
2679
|
groundOverlay,
|
|
2680
2680
|
processingData,
|
|
2681
|
-
deferredLoading
|
|
2681
|
+
deferredLoading,
|
|
2682
2682
|
) {
|
|
2683
2683
|
const r = processFeature(dataSource, groundOverlay, processingData);
|
|
2684
2684
|
const entity = r.entity;
|
|
@@ -2689,7 +2689,7 @@ function processGroundOverlay(
|
|
|
2689
2689
|
const ellipsoid = dataSource._ellipsoid;
|
|
2690
2690
|
const positions = readCoordinates(
|
|
2691
2691
|
queryFirstNode(groundOverlay, "LatLonQuad", namespaces.gx),
|
|
2692
|
-
ellipsoid
|
|
2692
|
+
ellipsoid,
|
|
2693
2693
|
);
|
|
2694
2694
|
const zIndex = queryNumericValue(groundOverlay, "drawOrder", namespaces.kml);
|
|
2695
2695
|
if (defined(positions)) {
|
|
@@ -2706,7 +2706,7 @@ function processGroundOverlay(
|
|
|
2706
2706
|
const latLonBox = queryFirstNode(
|
|
2707
2707
|
groundOverlay,
|
|
2708
2708
|
"LatLonBox",
|
|
2709
|
-
namespaces.kml
|
|
2709
|
+
namespaces.kml,
|
|
2710
2710
|
);
|
|
2711
2711
|
if (defined(latLonBox)) {
|
|
2712
2712
|
let west = queryNumericValue(latLonBox, "west", namespaces.kml);
|
|
@@ -2743,13 +2743,13 @@ function processGroundOverlay(
|
|
|
2743
2743
|
dataSource,
|
|
2744
2744
|
processingData.sourceResource,
|
|
2745
2745
|
processingData.uriResolver,
|
|
2746
|
-
true
|
|
2746
|
+
true,
|
|
2747
2747
|
);
|
|
2748
2748
|
if (defined(href)) {
|
|
2749
2749
|
if (isLatLonQuad) {
|
|
2750
2750
|
oneTimeWarning(
|
|
2751
2751
|
"kml-gx:LatLonQuad",
|
|
2752
|
-
"KML - gx:LatLonQuad Icon does not support texture projection."
|
|
2752
|
+
"KML - gx:LatLonQuad Icon does not support texture projection.",
|
|
2753
2753
|
);
|
|
2754
2754
|
}
|
|
2755
2755
|
const x = queryNumericValue(iconNode, "x", namespaces.gx);
|
|
@@ -2760,7 +2760,7 @@ function processGroundOverlay(
|
|
|
2760
2760
|
if (defined(x) || defined(y) || defined(w) || defined(h)) {
|
|
2761
2761
|
oneTimeWarning(
|
|
2762
2762
|
"kml-groundOverlay-xywh",
|
|
2763
|
-
"KML - gx:x, gx:y, gx:w, gx:h aren't supported for GroundOverlays"
|
|
2763
|
+
"KML - gx:x, gx:y, gx:w, gx:h aren't supported for GroundOverlays",
|
|
2764
2764
|
);
|
|
2765
2765
|
}
|
|
2766
2766
|
|
|
@@ -2768,7 +2768,7 @@ function processGroundOverlay(
|
|
|
2768
2768
|
geometry.material.color = queryColorValue(
|
|
2769
2769
|
groundOverlay,
|
|
2770
2770
|
"color",
|
|
2771
|
-
namespaces.kml
|
|
2771
|
+
namespaces.kml,
|
|
2772
2772
|
);
|
|
2773
2773
|
geometry.material.transparent = true;
|
|
2774
2774
|
} else {
|
|
@@ -2778,7 +2778,7 @@ function processGroundOverlay(
|
|
|
2778
2778
|
let altitudeMode = queryStringValue(
|
|
2779
2779
|
groundOverlay,
|
|
2780
2780
|
"altitudeMode",
|
|
2781
|
-
namespaces.kml
|
|
2781
|
+
namespaces.kml,
|
|
2782
2782
|
);
|
|
2783
2783
|
|
|
2784
2784
|
if (defined(altitudeMode)) {
|
|
@@ -2787,13 +2787,13 @@ function processGroundOverlay(
|
|
|
2787
2787
|
geometry.height = queryNumericValue(
|
|
2788
2788
|
groundOverlay,
|
|
2789
2789
|
"altitude",
|
|
2790
|
-
namespaces.kml
|
|
2790
|
+
namespaces.kml,
|
|
2791
2791
|
);
|
|
2792
2792
|
geometry.zIndex = undefined;
|
|
2793
2793
|
} else if (altitudeMode !== "clampToGround") {
|
|
2794
2794
|
oneTimeWarning(
|
|
2795
2795
|
"kml-altitudeMode-unknown",
|
|
2796
|
-
`KML - Unknown altitudeMode: ${altitudeMode}
|
|
2796
|
+
`KML - Unknown altitudeMode: ${altitudeMode}`,
|
|
2797
2797
|
);
|
|
2798
2798
|
}
|
|
2799
2799
|
// else just use the default of 0 until we support 'clampToGround'
|
|
@@ -2801,28 +2801,28 @@ function processGroundOverlay(
|
|
|
2801
2801
|
altitudeMode = queryStringValue(
|
|
2802
2802
|
groundOverlay,
|
|
2803
2803
|
"altitudeMode",
|
|
2804
|
-
namespaces.gx
|
|
2804
|
+
namespaces.gx,
|
|
2805
2805
|
);
|
|
2806
2806
|
if (altitudeMode === "relativeToSeaFloor") {
|
|
2807
2807
|
oneTimeWarning(
|
|
2808
2808
|
"kml-altitudeMode-relativeToSeaFloor",
|
|
2809
|
-
"KML - altitudeMode relativeToSeaFloor is currently not supported, treating as absolute."
|
|
2809
|
+
"KML - altitudeMode relativeToSeaFloor is currently not supported, treating as absolute.",
|
|
2810
2810
|
);
|
|
2811
2811
|
geometry.height = queryNumericValue(
|
|
2812
2812
|
groundOverlay,
|
|
2813
2813
|
"altitude",
|
|
2814
|
-
namespaces.kml
|
|
2814
|
+
namespaces.kml,
|
|
2815
2815
|
);
|
|
2816
2816
|
geometry.zIndex = undefined;
|
|
2817
2817
|
} else if (altitudeMode === "clampToSeaFloor") {
|
|
2818
2818
|
oneTimeWarning(
|
|
2819
2819
|
"kml-altitudeMode-clampToSeaFloor",
|
|
2820
|
-
"KML - altitudeMode clampToSeaFloor is currently not supported, treating as clampToGround."
|
|
2820
|
+
"KML - altitudeMode clampToSeaFloor is currently not supported, treating as clampToGround.",
|
|
2821
2821
|
);
|
|
2822
2822
|
} else if (defined(altitudeMode)) {
|
|
2823
2823
|
oneTimeWarning(
|
|
2824
2824
|
"kml-altitudeMode-unknown",
|
|
2825
|
-
`KML - Unknown altitudeMode: ${altitudeMode}
|
|
2825
|
+
`KML - Unknown altitudeMode: ${altitudeMode}`,
|
|
2826
2826
|
);
|
|
2827
2827
|
}
|
|
2828
2828
|
}
|
|
@@ -2832,7 +2832,7 @@ function processUnsupportedFeature(
|
|
|
2832
2832
|
dataSource,
|
|
2833
2833
|
node,
|
|
2834
2834
|
processingData,
|
|
2835
|
-
deferredLoading
|
|
2835
|
+
deferredLoading,
|
|
2836
2836
|
) {
|
|
2837
2837
|
dataSource._unsupportedNode.raiseEvent(
|
|
2838
2838
|
dataSource,
|
|
@@ -2841,11 +2841,11 @@ function processUnsupportedFeature(
|
|
|
2841
2841
|
processingData.entityCollection,
|
|
2842
2842
|
processingData.styleCollection,
|
|
2843
2843
|
processingData.sourceResource,
|
|
2844
|
-
processingData.uriResolver
|
|
2844
|
+
processingData.uriResolver,
|
|
2845
2845
|
);
|
|
2846
2846
|
oneTimeWarning(
|
|
2847
2847
|
`kml-unsupportedFeature-${node.nodeName}`,
|
|
2848
|
-
`KML - Unsupported feature: ${node.nodeName}
|
|
2848
|
+
`KML - Unsupported feature: ${node.nodeName}`,
|
|
2849
2849
|
);
|
|
2850
2850
|
}
|
|
2851
2851
|
|
|
@@ -2879,7 +2879,7 @@ function processNetworkLinkQueryString(
|
|
|
2879
2879
|
canvas,
|
|
2880
2880
|
viewBoundScale,
|
|
2881
2881
|
bbox,
|
|
2882
|
-
ellipsoid
|
|
2882
|
+
ellipsoid,
|
|
2883
2883
|
) {
|
|
2884
2884
|
function fixLatitude(value) {
|
|
2885
2885
|
if (value < -CesiumMath.PI_OVER_TWO) {
|
|
@@ -2916,14 +2916,14 @@ function processNetworkLinkQueryString(
|
|
|
2916
2916
|
centerCartesian = camera.pickEllipsoid(
|
|
2917
2917
|
scratchCartesian2,
|
|
2918
2918
|
ellipsoid,
|
|
2919
|
-
scratchCartesian3
|
|
2919
|
+
scratchCartesian3,
|
|
2920
2920
|
);
|
|
2921
2921
|
}
|
|
2922
2922
|
|
|
2923
2923
|
if (defined(centerCartesian)) {
|
|
2924
2924
|
centerCartographic = ellipsoid.cartesianToCartographic(
|
|
2925
2925
|
centerCartesian,
|
|
2926
|
-
scratchCartographic
|
|
2926
|
+
scratchCartographic,
|
|
2927
2927
|
);
|
|
2928
2928
|
} else {
|
|
2929
2929
|
centerCartographic = Rectangle.center(bbox, scratchCartographic);
|
|
@@ -2940,25 +2940,25 @@ function processNetworkLinkQueryString(
|
|
|
2940
2940
|
fixLongitude(centerCartographic.longitude - newHalfWidth),
|
|
2941
2941
|
fixLatitude(centerCartographic.latitude - newHalfHeight),
|
|
2942
2942
|
fixLongitude(centerCartographic.longitude + newHalfWidth),
|
|
2943
|
-
fixLatitude(centerCartographic.latitude + newHalfHeight)
|
|
2943
|
+
fixLatitude(centerCartographic.latitude + newHalfHeight),
|
|
2944
2944
|
);
|
|
2945
2945
|
}
|
|
2946
2946
|
|
|
2947
2947
|
queryString = queryString.replace(
|
|
2948
2948
|
"[bboxWest]",
|
|
2949
|
-
CesiumMath.toDegrees(bbox.west).toString()
|
|
2949
|
+
CesiumMath.toDegrees(bbox.west).toString(),
|
|
2950
2950
|
);
|
|
2951
2951
|
queryString = queryString.replace(
|
|
2952
2952
|
"[bboxSouth]",
|
|
2953
|
-
CesiumMath.toDegrees(bbox.south).toString()
|
|
2953
|
+
CesiumMath.toDegrees(bbox.south).toString(),
|
|
2954
2954
|
);
|
|
2955
2955
|
queryString = queryString.replace(
|
|
2956
2956
|
"[bboxEast]",
|
|
2957
|
-
CesiumMath.toDegrees(bbox.east).toString()
|
|
2957
|
+
CesiumMath.toDegrees(bbox.east).toString(),
|
|
2958
2958
|
);
|
|
2959
2959
|
queryString = queryString.replace(
|
|
2960
2960
|
"[bboxNorth]",
|
|
2961
|
-
CesiumMath.toDegrees(bbox.north).toString()
|
|
2961
|
+
CesiumMath.toDegrees(bbox.north).toString(),
|
|
2962
2962
|
);
|
|
2963
2963
|
|
|
2964
2964
|
const lon = CesiumMath.toDegrees(centerCartographic.longitude).toString();
|
|
@@ -2967,35 +2967,35 @@ function processNetworkLinkQueryString(
|
|
|
2967
2967
|
queryString = queryString.replace("[lookatLat]", lat);
|
|
2968
2968
|
queryString = queryString.replace(
|
|
2969
2969
|
"[lookatTilt]",
|
|
2970
|
-
CesiumMath.toDegrees(camera.pitch).toString()
|
|
2970
|
+
CesiumMath.toDegrees(camera.pitch).toString(),
|
|
2971
2971
|
);
|
|
2972
2972
|
queryString = queryString.replace(
|
|
2973
2973
|
"[lookatHeading]",
|
|
2974
|
-
CesiumMath.toDegrees(camera.heading).toString()
|
|
2974
|
+
CesiumMath.toDegrees(camera.heading).toString(),
|
|
2975
2975
|
);
|
|
2976
2976
|
queryString = queryString.replace(
|
|
2977
2977
|
"[lookatRange]",
|
|
2978
|
-
Cartesian3.distance(camera.positionWC, centerCartesian)
|
|
2978
|
+
Cartesian3.distance(camera.positionWC, centerCartesian),
|
|
2979
2979
|
);
|
|
2980
2980
|
queryString = queryString.replace("[lookatTerrainLon]", lon);
|
|
2981
2981
|
queryString = queryString.replace("[lookatTerrainLat]", lat);
|
|
2982
2982
|
queryString = queryString.replace(
|
|
2983
2983
|
"[lookatTerrainAlt]",
|
|
2984
|
-
centerCartographic.height.toString()
|
|
2984
|
+
centerCartographic.height.toString(),
|
|
2985
2985
|
);
|
|
2986
2986
|
|
|
2987
2987
|
ellipsoid.cartesianToCartographic(camera.positionWC, scratchCartographic);
|
|
2988
2988
|
queryString = queryString.replace(
|
|
2989
2989
|
"[cameraLon]",
|
|
2990
|
-
CesiumMath.toDegrees(scratchCartographic.longitude).toString()
|
|
2990
|
+
CesiumMath.toDegrees(scratchCartographic.longitude).toString(),
|
|
2991
2991
|
);
|
|
2992
2992
|
queryString = queryString.replace(
|
|
2993
2993
|
"[cameraLat]",
|
|
2994
|
-
CesiumMath.toDegrees(scratchCartographic.latitude).toString()
|
|
2994
|
+
CesiumMath.toDegrees(scratchCartographic.latitude).toString(),
|
|
2995
2995
|
);
|
|
2996
2996
|
queryString = queryString.replace(
|
|
2997
2997
|
"[cameraAlt]",
|
|
2998
|
-
CesiumMath.toDegrees(scratchCartographic.height).toString()
|
|
2998
|
+
CesiumMath.toDegrees(scratchCartographic.height).toString(),
|
|
2999
2999
|
);
|
|
3000
3000
|
|
|
3001
3001
|
const frustum = camera.frustum;
|
|
@@ -3087,18 +3087,18 @@ function processNetworkLink(dataSource, node, processingData, deferredLoading) {
|
|
|
3087
3087
|
viewRefreshMode = queryStringValue(
|
|
3088
3088
|
link,
|
|
3089
3089
|
"viewRefreshMode",
|
|
3090
|
-
namespaces.kml
|
|
3090
|
+
namespaces.kml,
|
|
3091
3091
|
);
|
|
3092
3092
|
if (viewRefreshMode === "onRegion") {
|
|
3093
3093
|
oneTimeWarning(
|
|
3094
3094
|
"kml-refrehMode-onRegion",
|
|
3095
|
-
"KML - Unsupported viewRefreshMode: onRegion"
|
|
3095
|
+
"KML - Unsupported viewRefreshMode: onRegion",
|
|
3096
3096
|
);
|
|
3097
3097
|
return;
|
|
3098
3098
|
}
|
|
3099
3099
|
viewBoundScale = defaultValue(
|
|
3100
3100
|
queryStringValue(link, "viewBoundScale", namespaces.kml),
|
|
3101
|
-
1.0
|
|
3101
|
+
1.0,
|
|
3102
3102
|
);
|
|
3103
3103
|
const defaultViewFormat =
|
|
3104
3104
|
viewRefreshMode === "onStop"
|
|
@@ -3106,7 +3106,7 @@ function processNetworkLink(dataSource, node, processingData, deferredLoading) {
|
|
|
3106
3106
|
: "";
|
|
3107
3107
|
const viewFormat = defaultValue(
|
|
3108
3108
|
queryStringValue(link, "viewFormat", namespaces.kml),
|
|
3109
|
-
defaultViewFormat
|
|
3109
|
+
defaultViewFormat,
|
|
3110
3110
|
);
|
|
3111
3111
|
const httpQuery = queryStringValue(link, "httpQuery", namespaces.kml);
|
|
3112
3112
|
if (defined(viewFormat)) {
|
|
@@ -3123,7 +3123,7 @@ function processNetworkLink(dataSource, node, processingData, deferredLoading) {
|
|
|
3123
3123
|
dataSource.canvas,
|
|
3124
3124
|
viewBoundScale,
|
|
3125
3125
|
dataSource._lastCameraView.bbox,
|
|
3126
|
-
ellipsoid
|
|
3126
|
+
ellipsoid,
|
|
3127
3127
|
);
|
|
3128
3128
|
}
|
|
3129
3129
|
|
|
@@ -3154,11 +3154,11 @@ function processNetworkLink(dataSource, node, processingData, deferredLoading) {
|
|
|
3154
3154
|
const refreshMode = queryStringValue(
|
|
3155
3155
|
link,
|
|
3156
3156
|
"refreshMode",
|
|
3157
|
-
namespaces.kml
|
|
3157
|
+
namespaces.kml,
|
|
3158
3158
|
);
|
|
3159
3159
|
let refreshInterval = defaultValue(
|
|
3160
3160
|
queryNumericValue(link, "refreshInterval", namespaces.kml),
|
|
3161
|
-
0
|
|
3161
|
+
0,
|
|
3162
3162
|
);
|
|
3163
3163
|
if (
|
|
3164
3164
|
(refreshMode === "onInterval" && refreshInterval > 0) ||
|
|
@@ -3168,7 +3168,7 @@ function processNetworkLink(dataSource, node, processingData, deferredLoading) {
|
|
|
3168
3168
|
const networkLinkControl = queryFirstNode(
|
|
3169
3169
|
rootElement,
|
|
3170
3170
|
"NetworkLinkControl",
|
|
3171
|
-
namespaces.kml
|
|
3171
|
+
namespaces.kml,
|
|
3172
3172
|
);
|
|
3173
3173
|
const hasNetworkLinkControl = defined(networkLinkControl);
|
|
3174
3174
|
|
|
@@ -3192,18 +3192,18 @@ function processNetworkLink(dataSource, node, processingData, deferredLoading) {
|
|
|
3192
3192
|
queryStringValue(
|
|
3193
3193
|
networkLinkControl,
|
|
3194
3194
|
"cookie",
|
|
3195
|
-
namespaces.kml
|
|
3195
|
+
namespaces.kml,
|
|
3196
3196
|
),
|
|
3197
|
-
""
|
|
3198
|
-
)
|
|
3197
|
+
"",
|
|
3198
|
+
),
|
|
3199
3199
|
);
|
|
3200
3200
|
minRefreshPeriod = defaultValue(
|
|
3201
3201
|
queryNumericValue(
|
|
3202
3202
|
networkLinkControl,
|
|
3203
3203
|
"minRefreshPeriod",
|
|
3204
|
-
namespaces.kml
|
|
3204
|
+
namespaces.kml,
|
|
3205
3205
|
),
|
|
3206
|
-
0
|
|
3206
|
+
0,
|
|
3207
3207
|
);
|
|
3208
3208
|
}
|
|
3209
3209
|
|
|
@@ -3219,7 +3219,7 @@ function processNetworkLink(dataSource, node, processingData, deferredLoading) {
|
|
|
3219
3219
|
expires = queryStringValue(
|
|
3220
3220
|
networkLinkControl,
|
|
3221
3221
|
"expires",
|
|
3222
|
-
namespaces.kml
|
|
3222
|
+
namespaces.kml,
|
|
3223
3223
|
);
|
|
3224
3224
|
}
|
|
3225
3225
|
if (defined(expires)) {
|
|
@@ -3234,13 +3234,13 @@ function processNetworkLink(dataSource, node, processingData, deferredLoading) {
|
|
|
3234
3234
|
} catch (e) {
|
|
3235
3235
|
oneTimeWarning(
|
|
3236
3236
|
"kml-refreshMode-onInterval-onExpire",
|
|
3237
|
-
"KML - NetworkLinkControl expires is not a valid date"
|
|
3237
|
+
"KML - NetworkLinkControl expires is not a valid date",
|
|
3238
3238
|
);
|
|
3239
3239
|
}
|
|
3240
3240
|
} else {
|
|
3241
3241
|
oneTimeWarning(
|
|
3242
3242
|
"kml-refreshMode-onExpire",
|
|
3243
|
-
"KML - refreshMode of onExpire requires the NetworkLinkControl to have an expires element"
|
|
3243
|
+
"KML - refreshMode of onExpire requires the NetworkLinkControl to have an expires element",
|
|
3244
3244
|
);
|
|
3245
3245
|
}
|
|
3246
3246
|
} else if (defined(dataSource.camera)) {
|
|
@@ -3248,12 +3248,12 @@ function processNetworkLink(dataSource, node, processingData, deferredLoading) {
|
|
|
3248
3248
|
networkLinkInfo.refreshMode = RefreshMode.STOP;
|
|
3249
3249
|
networkLinkInfo.time = defaultValue(
|
|
3250
3250
|
queryNumericValue(link, "viewRefreshTime", namespaces.kml),
|
|
3251
|
-
0
|
|
3251
|
+
0,
|
|
3252
3252
|
);
|
|
3253
3253
|
} else {
|
|
3254
3254
|
oneTimeWarning(
|
|
3255
3255
|
"kml-refrehMode-onStop-noCamera",
|
|
3256
|
-
"A NetworkLink with viewRefreshMode=onStop requires the `camera` property to be defined."
|
|
3256
|
+
"A NetworkLink with viewRefreshMode=onStop requires the `camera` property to be defined.",
|
|
3257
3257
|
);
|
|
3258
3258
|
}
|
|
3259
3259
|
|
|
@@ -3282,7 +3282,7 @@ function processFeatureNode(dataSource, node, processingData, deferredLoading) {
|
|
|
3282
3282
|
dataSource,
|
|
3283
3283
|
node,
|
|
3284
3284
|
processingData,
|
|
3285
|
-
deferredLoading
|
|
3285
|
+
deferredLoading,
|
|
3286
3286
|
);
|
|
3287
3287
|
}
|
|
3288
3288
|
|
|
@@ -3293,7 +3293,7 @@ function loadKml(
|
|
|
3293
3293
|
sourceResource,
|
|
3294
3294
|
uriResolver,
|
|
3295
3295
|
screenOverlayContainer,
|
|
3296
|
-
context
|
|
3296
|
+
context,
|
|
3297
3297
|
) {
|
|
3298
3298
|
entityCollection.removeAll();
|
|
3299
3299
|
|
|
@@ -3321,8 +3321,8 @@ function loadKml(
|
|
|
3321
3321
|
styleCollection,
|
|
3322
3322
|
sourceResource,
|
|
3323
3323
|
false,
|
|
3324
|
-
uriResolver
|
|
3325
|
-
)
|
|
3324
|
+
uriResolver,
|
|
3325
|
+
),
|
|
3326
3326
|
).then(function () {
|
|
3327
3327
|
let element = kml.documentElement;
|
|
3328
3328
|
if (element.localName === "kml") {
|
|
@@ -3361,7 +3361,7 @@ function loadKmz(
|
|
|
3361
3361
|
entityCollection,
|
|
3362
3362
|
blob,
|
|
3363
3363
|
sourceResource,
|
|
3364
|
-
screenOverlayContainer
|
|
3364
|
+
screenOverlayContainer,
|
|
3365
3365
|
) {
|
|
3366
3366
|
const zWorkerUrl = buildModuleUrl("ThirdParty/Workers/z-worker-pako.js");
|
|
3367
3367
|
zip.configure({
|
|
@@ -3415,7 +3415,7 @@ function loadKmz(
|
|
|
3415
3415
|
uriResolver.kml,
|
|
3416
3416
|
sourceResource,
|
|
3417
3417
|
uriResolver,
|
|
3418
|
-
screenOverlayContainer
|
|
3418
|
+
screenOverlayContainer,
|
|
3419
3419
|
);
|
|
3420
3420
|
});
|
|
3421
3421
|
});
|
|
@@ -3463,7 +3463,7 @@ function load(dataSource, entityCollection, data, options) {
|
|
|
3463
3463
|
entityCollection,
|
|
3464
3464
|
dataToLoad,
|
|
3465
3465
|
sourceUri,
|
|
3466
|
-
screenOverlayContainer
|
|
3466
|
+
screenOverlayContainer,
|
|
3467
3467
|
);
|
|
3468
3468
|
}
|
|
3469
3469
|
return readBlobAsText(dataToLoad).then(function (text) {
|
|
@@ -3512,7 +3512,7 @@ function load(dataSource, entityCollection, data, options) {
|
|
|
3512
3512
|
sourceUri,
|
|
3513
3513
|
uriResolver,
|
|
3514
3514
|
screenOverlayContainer,
|
|
3515
|
-
context
|
|
3515
|
+
context,
|
|
3516
3516
|
);
|
|
3517
3517
|
});
|
|
3518
3518
|
});
|
|
@@ -3524,7 +3524,7 @@ function load(dataSource, entityCollection, data, options) {
|
|
|
3524
3524
|
sourceUri,
|
|
3525
3525
|
uriResolver,
|
|
3526
3526
|
screenOverlayContainer,
|
|
3527
|
-
context
|
|
3527
|
+
context,
|
|
3528
3528
|
);
|
|
3529
3529
|
})
|
|
3530
3530
|
.catch(function (error) {
|
|
@@ -3892,8 +3892,8 @@ KmlDataSource.prototype.load = function (data, options) {
|
|
|
3892
3892
|
clock.multiplier = Math.round(
|
|
3893
3893
|
Math.min(
|
|
3894
3894
|
Math.max(JulianDate.secondsDifference(stop, start) / 60, 1),
|
|
3895
|
-
3.15569e7
|
|
3896
|
-
)
|
|
3895
|
+
3.15569e7,
|
|
3896
|
+
),
|
|
3897
3897
|
);
|
|
3898
3898
|
}
|
|
3899
3899
|
|
|
@@ -3953,7 +3953,7 @@ function getNetworkLinkUpdateCallback(
|
|
|
3953
3953
|
networkLink,
|
|
3954
3954
|
newEntityCollection,
|
|
3955
3955
|
networkLinks,
|
|
3956
|
-
processedHref
|
|
3956
|
+
processedHref,
|
|
3957
3957
|
) {
|
|
3958
3958
|
return function (rootElement) {
|
|
3959
3959
|
if (!networkLinks.contains(networkLink.id)) {
|
|
@@ -3965,7 +3965,7 @@ function getNetworkLinkUpdateCallback(
|
|
|
3965
3965
|
const networkLinkControl = queryFirstNode(
|
|
3966
3966
|
rootElement,
|
|
3967
3967
|
"NetworkLinkControl",
|
|
3968
|
-
namespaces.kml
|
|
3968
|
+
namespaces.kml,
|
|
3969
3969
|
);
|
|
3970
3970
|
const hasNetworkLinkControl = defined(networkLinkControl);
|
|
3971
3971
|
|
|
@@ -3976,7 +3976,7 @@ function getNetworkLinkUpdateCallback(
|
|
|
3976
3976
|
) {
|
|
3977
3977
|
oneTimeWarning(
|
|
3978
3978
|
"kml-networkLinkControl-update",
|
|
3979
|
-
"KML - NetworkLinkControl updates aren't supported."
|
|
3979
|
+
"KML - NetworkLinkControl updates aren't supported.",
|
|
3980
3980
|
);
|
|
3981
3981
|
networkLink.updating = false;
|
|
3982
3982
|
networkLinks.remove(networkLink.id);
|
|
@@ -3985,16 +3985,16 @@ function getNetworkLinkUpdateCallback(
|
|
|
3985
3985
|
networkLink.cookie = queryToObject(
|
|
3986
3986
|
defaultValue(
|
|
3987
3987
|
queryStringValue(networkLinkControl, "cookie", namespaces.kml),
|
|
3988
|
-
""
|
|
3989
|
-
)
|
|
3988
|
+
"",
|
|
3989
|
+
),
|
|
3990
3990
|
);
|
|
3991
3991
|
minRefreshPeriod = defaultValue(
|
|
3992
3992
|
queryNumericValue(
|
|
3993
3993
|
networkLinkControl,
|
|
3994
3994
|
"minRefreshPeriod",
|
|
3995
|
-
namespaces.kml
|
|
3995
|
+
namespaces.kml,
|
|
3996
3996
|
),
|
|
3997
|
-
0
|
|
3997
|
+
0,
|
|
3998
3998
|
);
|
|
3999
3999
|
}
|
|
4000
4000
|
|
|
@@ -4010,7 +4010,7 @@ function getNetworkLinkUpdateCallback(
|
|
|
4010
4010
|
expires = queryStringValue(
|
|
4011
4011
|
networkLinkControl,
|
|
4012
4012
|
"expires",
|
|
4013
|
-
namespaces.kml
|
|
4013
|
+
namespaces.kml,
|
|
4014
4014
|
);
|
|
4015
4015
|
}
|
|
4016
4016
|
if (defined(expires)) {
|
|
@@ -4024,14 +4024,14 @@ function getNetworkLinkUpdateCallback(
|
|
|
4024
4024
|
} catch (e) {
|
|
4025
4025
|
oneTimeWarning(
|
|
4026
4026
|
"kml-networkLinkControl-expires",
|
|
4027
|
-
"KML - NetworkLinkControl expires is not a valid date"
|
|
4027
|
+
"KML - NetworkLinkControl expires is not a valid date",
|
|
4028
4028
|
);
|
|
4029
4029
|
remove = true;
|
|
4030
4030
|
}
|
|
4031
4031
|
} else {
|
|
4032
4032
|
oneTimeWarning(
|
|
4033
4033
|
"kml-refreshMode-onExpire",
|
|
4034
|
-
"KML - refreshMode of onExpire requires the NetworkLinkControl to have an expires element"
|
|
4034
|
+
"KML - refreshMode of onExpire requires the NetworkLinkControl to have an expires element",
|
|
4035
4035
|
);
|
|
4036
4036
|
remove = true;
|
|
4037
4037
|
}
|
|
@@ -4102,7 +4102,7 @@ function getNetworkLinkUpdateCallback(
|
|
|
4102
4102
|
networkLink.needsUpdate = false;
|
|
4103
4103
|
dataSource._refresh.raiseEvent(
|
|
4104
4104
|
dataSource,
|
|
4105
|
-
processedHref.getUrlComponent(true)
|
|
4105
|
+
processedHref.getUrlComponent(true),
|
|
4106
4106
|
);
|
|
4107
4107
|
};
|
|
4108
4108
|
}
|
|
@@ -4144,11 +4144,11 @@ KmlDataSource.prototype.update = function (time) {
|
|
|
4144
4144
|
!(
|
|
4145
4145
|
camera.positionWC.equalsEpsilon(
|
|
4146
4146
|
lastCameraView.position,
|
|
4147
|
-
CesiumMath.EPSILON7
|
|
4147
|
+
CesiumMath.EPSILON7,
|
|
4148
4148
|
) &&
|
|
4149
4149
|
camera.directionWC.equalsEpsilon(
|
|
4150
4150
|
lastCameraView.direction,
|
|
4151
|
-
CesiumMath.EPSILON7
|
|
4151
|
+
CesiumMath.EPSILON7,
|
|
4152
4152
|
) &&
|
|
4153
4153
|
camera.upWC.equalsEpsilon(lastCameraView.up, CesiumMath.EPSILON7)
|
|
4154
4154
|
)
|
|
@@ -4211,7 +4211,7 @@ KmlDataSource.prototype.update = function (time) {
|
|
|
4211
4211
|
that.canvas,
|
|
4212
4212
|
networkLink.viewBoundScale,
|
|
4213
4213
|
lastCameraView.bbox,
|
|
4214
|
-
ellipsoid
|
|
4214
|
+
ellipsoid,
|
|
4215
4215
|
);
|
|
4216
4216
|
|
|
4217
4217
|
load(that, newEntityCollection, href, {
|
|
@@ -4223,8 +4223,8 @@ KmlDataSource.prototype.update = function (time) {
|
|
|
4223
4223
|
networkLink,
|
|
4224
4224
|
newEntityCollection,
|
|
4225
4225
|
newNetworkLinks,
|
|
4226
|
-
href
|
|
4227
|
-
)
|
|
4226
|
+
href,
|
|
4227
|
+
),
|
|
4228
4228
|
)
|
|
4229
4229
|
.catch(function (error) {
|
|
4230
4230
|
const msg = `NetworkLink ${networkLink.href} refresh failed: ${error}`;
|