@vcmap/ui 5.0.0-rc.30 → 5.0.0-rc.31
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/buildHelpers.js +4 -3
- package/config/base.config.json +5 -4
- package/config/dev.config.json +4 -0
- package/config/graphFeatureInfo.config.json +1 -1
- package/config/projects.config.json +2 -2
- package/dist/assets/cesium/ThirdParty/Workers/basis_transcoder.js +1 -1
- package/dist/assets/cesium/Workers/chunk-227AJNOA.js +59 -0
- package/dist/assets/cesium/Workers/chunk-2R5O53JW.js +157 -0
- package/dist/assets/cesium/Workers/chunk-34YUDLRP.js +781 -0
- package/dist/assets/cesium/Workers/chunk-3W63OHNJ.js +100 -0
- package/dist/assets/cesium/Workers/chunk-4MFFIWUA.js +163 -0
- package/dist/assets/cesium/Workers/chunk-66QLLS45.js +218 -0
- package/dist/assets/cesium/Workers/chunk-6BTKZDRG.js +77 -0
- package/dist/assets/cesium/Workers/chunk-A4JVFBQ3.js +101 -0
- package/dist/assets/cesium/Workers/chunk-ABADGKYE.js +58 -0
- package/dist/assets/cesium/Workers/chunk-AFFLIKOH.js +353 -0
- package/dist/assets/cesium/Workers/chunk-AHKEZ2OE.js +629 -0
- package/dist/assets/cesium/Workers/chunk-C3SXRKRW.js +476 -0
- package/dist/assets/cesium/Workers/chunk-CCFQRR6D.js +55 -0
- package/dist/assets/cesium/Workers/chunk-CHHNOC2C.js +1860 -0
- package/dist/assets/cesium/Workers/chunk-CTELOFLA.js +196 -0
- package/dist/assets/cesium/Workers/chunk-DUHWWBQQ.js +3273 -0
- package/dist/assets/cesium/Workers/chunk-EW2GWJYB.js +44 -0
- package/dist/assets/cesium/Workers/chunk-GLZBE3ML.js +421 -0
- package/dist/assets/cesium/Workers/chunk-HARLBUOL.js +236 -0
- package/dist/assets/cesium/Workers/chunk-HQF437NJ.js +117 -0
- package/dist/assets/cesium/Workers/chunk-IPA4EACJ.js +368 -0
- package/dist/assets/cesium/Workers/chunk-J3JY6I2C.js +1009 -0
- package/dist/assets/cesium/Workers/chunk-JB2LWGH4.js +390 -0
- package/dist/assets/cesium/Workers/chunk-JS3AW5BK.js +634 -0
- package/dist/assets/cesium/Workers/chunk-K36FEYS7.js +452 -0
- package/dist/assets/cesium/Workers/chunk-KD4Y7CZL.js +400 -0
- package/dist/assets/cesium/Workers/chunk-KTJSNCK4.js +842 -0
- package/dist/assets/cesium/Workers/chunk-LLUNNUJV.js +258 -0
- package/dist/assets/cesium/Workers/{package.js → chunk-MPAZH4BF.js} +13 -2
- package/dist/assets/cesium/Workers/chunk-MYZB7C4T.js +1258 -0
- package/dist/assets/cesium/Workers/chunk-N3JIFFX2.js +501 -0
- package/dist/assets/cesium/Workers/chunk-O5AMBQ36.js +430 -0
- package/dist/assets/cesium/Workers/chunk-OAVNIRB4.js +124 -0
- package/dist/assets/cesium/Workers/chunk-OYFCF4PL.js +171 -0
- package/dist/assets/cesium/Workers/chunk-OZJDGN5F.js +1477 -0
- package/dist/assets/cesium/Workers/chunk-PCJWUS4M.js +2041 -0
- package/dist/assets/cesium/Workers/chunk-PFQBCKBM.js +8644 -0
- package/dist/assets/cesium/Workers/chunk-QIKODV5G.js +305 -0
- package/dist/assets/cesium/Workers/chunk-QJ3DFBH3.js +73 -0
- package/dist/assets/cesium/Workers/chunk-QMEMZIJI.js +138 -0
- package/dist/assets/cesium/Workers/chunk-QT3MPEMI.js +102 -0
- package/dist/assets/cesium/Workers/chunk-RP2A7BR5.js +289 -0
- package/dist/assets/cesium/Workers/chunk-RW6LU2CJ.js +138 -0
- package/dist/assets/cesium/Workers/chunk-TFC6TZ3S.js +757 -0
- package/dist/assets/cesium/Workers/chunk-V3NGATMV.js +693 -0
- package/dist/assets/cesium/Workers/chunk-VLGOATD6.js +1075 -0
- package/dist/assets/cesium/Workers/chunk-WXTV4ATB.js +39 -0
- package/dist/assets/cesium/Workers/chunk-X4SU25DT.js +302 -0
- package/dist/assets/cesium/Workers/chunk-XTY7B2N6.js +2716 -0
- package/dist/assets/cesium/Workers/chunk-XY7MGBKC.js +513 -0
- package/dist/assets/cesium/Workers/chunk-Z24VKNDO.js +834 -0
- package/dist/assets/cesium/Workers/chunk-ZA25DG4Y.js +684 -0
- package/dist/assets/cesium/Workers/chunk-ZFOBYDGF.js +73 -0
- package/dist/assets/cesium/Workers/combineGeometry.js +65 -15
- package/dist/assets/cesium/Workers/createBoxGeometry.js +55 -10
- package/dist/assets/cesium/Workers/createBoxOutlineGeometry.js +231 -310
- package/dist/assets/cesium/Workers/createCircleGeometry.js +185 -202
- package/dist/assets/cesium/Workers/createCircleOutlineGeometry.js +141 -155
- package/dist/assets/cesium/Workers/createCoplanarPolygonGeometry.js +477 -557
- package/dist/assets/cesium/Workers/createCoplanarPolygonOutlineGeometry.js +218 -230
- package/dist/assets/cesium/Workers/createCorridorGeometry.js +1162 -1307
- package/dist/assets/cesium/Workers/createCorridorOutlineGeometry.js +533 -569
- package/dist/assets/cesium/Workers/createCylinderGeometry.js +57 -10
- package/dist/assets/cesium/Workers/createCylinderOutlineGeometry.js +224 -258
- package/dist/assets/cesium/Workers/createEllipseGeometry.js +68 -12
- package/dist/assets/cesium/Workers/createEllipseOutlineGeometry.js +61 -12
- package/dist/assets/cesium/Workers/createEllipsoidGeometry.js +56 -10
- package/dist/assets/cesium/Workers/createEllipsoidOutlineGeometry.js +58 -13
- package/dist/assets/cesium/Workers/createFrustumGeometry.js +55 -10
- package/dist/assets/cesium/Workers/createFrustumOutlineGeometry.js +226 -243
- package/dist/assets/cesium/Workers/createGeometry.js +143 -48
- package/dist/assets/cesium/Workers/createGroundPolylineGeometry.js +1484 -2011
- package/dist/assets/cesium/Workers/createPlaneGeometry.js +216 -243
- package/dist/assets/cesium/Workers/createPlaneOutlineGeometry.js +121 -113
- package/dist/assets/cesium/Workers/createPolygonGeometry.js +1041 -1327
- package/dist/assets/cesium/Workers/createPolygonOutlineGeometry.js +516 -657
- package/dist/assets/cesium/Workers/createPolylineGeometry.js +471 -547
- package/dist/assets/cesium/Workers/createPolylineVolumeGeometry.js +352 -384
- package/dist/assets/cesium/Workers/createPolylineVolumeOutlineGeometry.js +271 -295
- package/dist/assets/cesium/Workers/createRectangleGeometry.js +1128 -1331
- package/dist/assets/cesium/Workers/createRectangleOutlineGeometry.js +445 -500
- package/dist/assets/cesium/Workers/createSimplePolylineGeometry.js +381 -440
- package/dist/assets/cesium/Workers/createSphereGeometry.js +112 -118
- package/dist/assets/cesium/Workers/createSphereOutlineGeometry.js +112 -121
- package/dist/assets/cesium/Workers/createTaskProcessorWorker.js +32 -127
- package/dist/assets/cesium/Workers/createVectorTileClampedPolylines.js +462 -505
- package/dist/assets/cesium/Workers/createVectorTileGeometries.js +377 -436
- package/dist/assets/cesium/Workers/createVectorTilePoints.js +110 -77
- package/dist/assets/cesium/Workers/createVectorTilePolygons.js +369 -391
- package/dist/assets/cesium/Workers/createVectorTilePolylines.js +252 -244
- package/dist/assets/cesium/Workers/createVerticesFromGoogleEarthEnterpriseBuffer.js +543 -615
- package/dist/assets/cesium/Workers/createVerticesFromHeightmap.js +2244 -2677
- package/dist/assets/cesium/Workers/createVerticesFromQuantizedTerrainMesh.js +682 -926
- package/dist/assets/cesium/Workers/createWallGeometry.js +459 -593
- package/dist/assets/cesium/Workers/createWallOutlineGeometry.js +324 -419
- package/dist/assets/cesium/Workers/decodeDraco.js +327 -347
- package/dist/assets/cesium/Workers/decodeGoogleEarthEnterprisePacket.js +2530 -3567
- package/dist/assets/cesium/Workers/decodeI3S.js +765 -970
- package/dist/assets/cesium/Workers/transcodeKTX2.js +3353 -1464
- package/dist/assets/cesium/Workers/transferTypedArrayTest.js +3 -4
- package/dist/assets/cesium/Workers/upsampleQuantizedTerrainMesh.js +748 -953
- package/dist/assets/{cesium.eaf7cc.js → cesium.77d0f7.js} +8915 -13165
- package/dist/assets/cesium.js +1 -1
- package/dist/assets/{core.b16511.js → core.720589.js} +3421 -3365
- package/dist/assets/core.js +1 -1
- package/dist/assets/index-dd539204.js +1 -0
- package/dist/assets/{ol.4bbf0f.js → ol.e48649.js} +4 -4
- package/dist/assets/ol.js +1 -1
- package/dist/assets/{ui.ab815e.css → ui.50452a.css} +1 -1
- package/dist/assets/{ui.ab815e.js → ui.50452a.js} +4270 -4355
- package/dist/assets/ui.js +1 -1
- package/dist/assets/vue.js +2 -2
- package/dist/assets/{vuetify.ea3fa8.js → vuetify.f0a769.js} +1 -1
- package/dist/assets/vuetify.js +2 -2
- package/dist/index.html +27 -23
- package/index.html +23 -22
- package/package.json +5 -5
- package/plugins/@vcmap-show-case/plugin-editors/PluginEditors.vue +119 -0
- package/plugins/@vcmap-show-case/plugin-editors/index.js +41 -0
- package/plugins/@vcmap-show-case/plugin-editors/package.json +5 -0
- package/plugins/{@vcmap → @vcmap-show-case}/project-selector/ProjectSelectorComponent.vue +1 -1
- package/plugins/{@vcmap → @vcmap-show-case}/project-selector/config.json +2 -2
- package/plugins/{@vcmap → @vcmap-show-case}/project-selector/package.json +1 -1
- package/plugins/{@vcmap → @vcmap-show-case}/simple-graph/package.json +1 -1
- package/plugins/@vcmap-show-case/table-example/DataTableExample.vue +1 -1
- package/plugins/{@vcmap → @vcmap-show-case}/theme-changer/ThemeChangerComponent.vue +1 -1
- package/plugins/{@vcmap → @vcmap-show-case}/theme-changer/config.json +2 -2
- package/plugins/{@vcmap → @vcmap-show-case}/theme-changer/package.json +1 -1
- package/plugins/@vcmap-show-case/vector-properties-example/vectorPropertiesExample.vue +20 -1
- package/plugins/package.json +6 -2
- package/src/application/VcsAttributions.vue +27 -20
- package/src/components/form-inputs-controls/VcsChipArrayInput.vue +22 -14
- package/src/components/form-inputs-controls/VcsSlider.vue +1 -0
- package/src/components/icons/2DAreaIcon.vue +2 -17
- package/src/components/icons/2DDistanceIcon.vue +0 -3
- package/src/components/icons/3DAreaIcon.vue +2 -17
- package/src/components/icons/3DDistanceIcon.vue +0 -3
- package/src/components/icons/3DHeightIcon.vue +0 -3
- package/src/components/icons/AngleIcon.vue +0 -1
- package/src/components/icons/AssociationsIcon.vue +1 -3
- package/src/components/icons/AxisIcon.vue +0 -4
- package/src/components/icons/BoundingBoxIcon.vue +1 -4
- package/src/components/icons/CheckboxIcon.vue +0 -2
- package/src/components/icons/CheckboxIndeterminateIcon.vue +1 -5
- package/src/components/icons/CircleIcon.vue +1 -6
- package/src/components/icons/ClippingHorizontalIcon.vue +0 -1
- package/src/components/icons/ClippingIcon.vue +0 -1
- package/src/components/icons/ClippingVerticalIcon.vue +0 -1
- package/src/components/icons/ColorPickerIcon.vue +0 -1
- package/src/components/icons/ColorSwatchIcon.vue +0 -2
- package/src/components/icons/CommentIcon.vue +0 -1
- package/src/components/icons/CompassIcon.vue +0 -2
- package/src/components/icons/ComponentsIcon.vue +0 -1
- package/src/components/icons/ConeIcon.vue +1 -4
- package/src/components/icons/DimensionsHouseIcon.vue +0 -2
- package/src/components/icons/EditIcon.vue +0 -1
- package/src/components/icons/EditVerticesIcon.vue +0 -4
- package/src/components/icons/ElevationProfileIcon.vue +1 -13
- package/src/components/icons/ExportAreaIcon.vue +0 -1
- package/src/components/icons/ExportFlightIcon.vue +0 -1
- package/src/components/icons/ExportIcon.vue +12 -8
- package/src/components/icons/ExternalLinkIcon.vue +0 -2
- package/src/components/icons/FastForwardIcon.vue +0 -1
- package/src/components/icons/FilterIcon.vue +0 -1
- package/src/components/icons/GlobeNatureIcon.vue +0 -3
- package/src/components/icons/GroundIcon.vue +0 -1
- package/src/components/icons/HealthCareIndustriesIcon.vue +1 -11
- package/src/components/icons/HideIcon.vue +0 -1
- package/src/components/icons/HomePointIcon.vue +0 -1
- package/src/components/icons/HospitalsIcon.vue +1 -20
- package/src/components/icons/HouseIcon.vue +3 -13
- package/src/components/icons/ImportIcon.vue +6 -14
- package/src/components/icons/InfoIcon.vue +0 -2
- package/src/components/icons/KebabIcon.vue +1 -9
- package/src/components/icons/LabelIcon.vue +0 -2
- package/src/components/icons/LayersIcon.vue +1 -9
- package/src/components/icons/LegendIcon.vue +0 -1
- package/src/components/icons/LineIcon.vue +0 -2
- package/src/components/icons/LinkIcon.vue +0 -1
- package/src/components/icons/LogoutIcon.vue +0 -1
- package/src/components/icons/MapIcon.vue +0 -2
- package/src/components/icons/MenuIcon.vue +1 -5
- package/src/components/icons/MinusIcon.vue +0 -2
- package/src/components/icons/ObjectSelectIcon.vue +0 -2
- package/src/components/icons/ObliqueViewIcon.vue +0 -1
- package/src/components/icons/PdfIcon.vue +0 -1
- package/src/components/icons/PedestrianIcon.vue +0 -1
- package/src/components/icons/PenIcon.vue +0 -1
- package/src/components/icons/PlayCircleIcon.vue +1 -8
- package/src/components/icons/PlusIcon.vue +0 -2
- package/src/components/icons/PoiIcon.vue +0 -1
- package/src/components/icons/PointIcon.vue +2 -6
- package/src/components/icons/PointSelectIcon.vue +0 -1
- package/src/components/icons/PresentationModeIcon.vue +0 -1
- package/src/components/icons/ProgressIcon.vue +1 -1
- package/src/components/icons/QueryIcon.vue +0 -1
- package/src/components/icons/RectangleIcon.vue +1 -6
- package/src/components/icons/ReturnIcon.vue +0 -1
- package/src/components/icons/RewindIcon.vue +0 -1
- package/src/components/icons/RotateLeftIcon.vue +0 -1
- package/src/components/icons/RotateRightIcon.vue +0 -1
- package/src/components/icons/ScreenshotIcon.vue +1 -6
- package/src/components/icons/SearchIcon.vue +0 -1
- package/src/components/icons/ShadowIcon.vue +0 -2
- package/src/components/icons/ShapesIcon.vue +1 -4
- package/src/components/icons/ShareIcon.vue +0 -1
- package/src/components/icons/SimpleCircleFilledIcon.vue +0 -1
- package/src/components/icons/SimpleCircleHalfFilledIcon.vue +0 -1
- package/src/components/icons/SimpleCircleOutlinedIcon.vue +1 -7
- package/src/components/icons/SkipPreviousIcon.vue +1 -6
- package/src/components/icons/SplitViewIcon.vue +0 -1
- package/src/components/icons/TextStyleIcon.vue +0 -3
- package/src/components/icons/ThreeDimensionsIcon.vue +0 -1
- package/src/components/icons/ToolsIcon.vue +0 -1
- package/src/components/icons/TouchIcon.vue +0 -1
- package/src/components/icons/TriangleIcon.vue +0 -3
- package/src/components/icons/TwoDimensionsIcon.vue +0 -2
- package/src/components/icons/UploadIcon.vue +0 -1
- package/src/components/icons/UserProfileIcon.vue +0 -1
- package/src/components/icons/UserShareIcon.vue +0 -1
- package/src/components/icons/ViewpointFlightIcon.vue +0 -1
- package/src/components/icons/ViewpointIcon.vue +0 -1
- package/src/components/icons/Viewshed360Icon.vue +0 -1
- package/src/components/icons/ViewshedConeIcon.vue +0 -1
- package/src/components/icons/ViewshedIcon.vue +0 -1
- package/src/components/icons/WalkingIcon.vue +0 -1
- package/src/components/icons/WallIcon.vue +1 -4
- package/src/components/icons/WandIcon.vue +22 -70
- package/src/components/lists/VcsList.vue +18 -12
- package/src/components/plugins/AbstractConfigEditor.vue +2 -2
- package/src/components/tables/VcsDataTable.vue +1 -1
- package/src/components/vector-properties/VcsVectorPropertiesComponent.vue +57 -14
- package/src/contentTree/contentTreeCollection.js +30 -9
- package/src/i18n/de.js +8 -5
- package/src/i18n/en.js +8 -5
- package/src/i18n/i18nCollection.js +19 -65
- package/src/manager/buttonManager.js +4 -0
- package/src/manager/contextMenu/contextMenuManager.js +2 -0
- package/src/pluginHelper.js +2 -2
- package/src/vcsUiApp.js +9 -4
- package/src/vuePlugins/i18n.js +0 -8
- package/dist/assets/cesium/ThirdParty/Workers/draco_decoder_nodejs.js +0 -117
- package/dist/assets/cesium/Workers/ArcType-2d9abbbc.js +0 -37
- package/dist/assets/cesium/Workers/AttributeCompression-f9f6c717.js +0 -716
- package/dist/assets/cesium/Workers/AxisAlignedBoundingBox-4140c51f.js +0 -258
- package/dist/assets/cesium/Workers/BoundingRectangle-c714b156.js +0 -369
- package/dist/assets/cesium/Workers/BoxGeometry-6f3da43d.js +0 -884
- package/dist/assets/cesium/Workers/Check-6ede7e26.js +0 -290
- package/dist/assets/cesium/Workers/Color-8a565ff2.js +0 -2262
- package/dist/assets/cesium/Workers/ComponentDatatype-cf1fa08e.js +0 -341
- package/dist/assets/cesium/Workers/CoplanarPolygonGeometryLibrary-4b4d4096.js +0 -132
- package/dist/assets/cesium/Workers/CorridorGeometryLibrary-7b94502b.js +0 -498
- package/dist/assets/cesium/Workers/CylinderGeometry-ca070b87.js +0 -467
- package/dist/assets/cesium/Workers/CylinderGeometryLibrary-7bf291b4.js +0 -63
- package/dist/assets/cesium/Workers/EllipseGeometry-122e51fa.js +0 -1304
- package/dist/assets/cesium/Workers/EllipseGeometryLibrary-4d326efc.js +0 -366
- package/dist/assets/cesium/Workers/EllipseOutlineGeometry-16cc2bd7.js +0 -443
- package/dist/assets/cesium/Workers/EllipsoidGeodesic-5b3623dc.js +0 -520
- package/dist/assets/cesium/Workers/EllipsoidGeometry-cb148ca2.js +0 -637
- package/dist/assets/cesium/Workers/EllipsoidOutlineGeometry-0fa10c79.js +0 -454
- package/dist/assets/cesium/Workers/EllipsoidRhumbLine-ef872433.js +0 -741
- package/dist/assets/cesium/Workers/EllipsoidTangentPlane-6dd1b7af.js +0 -373
- package/dist/assets/cesium/Workers/EncodedCartesian3-57415c8a.js +0 -171
- package/dist/assets/cesium/Workers/FrustumGeometry-ee73037c.js +0 -2540
- package/dist/assets/cesium/Workers/GeometryAttribute-ff5b4fb1.js +0 -619
- package/dist/assets/cesium/Workers/GeometryAttributes-ad136444.js +0 -91
- package/dist/assets/cesium/Workers/GeometryInstance-34d9e21e.js +0 -121
- package/dist/assets/cesium/Workers/GeometryOffsetAttribute-9ad0019c.js +0 -16
- package/dist/assets/cesium/Workers/GeometryPipeline-1f8fbf05.js +0 -3690
- package/dist/assets/cesium/Workers/IndexDatatype-2643aa47.js +0 -200
- package/dist/assets/cesium/Workers/IntersectionTests-70d39ba9.js +0 -1836
- package/dist/assets/cesium/Workers/Math-0a2ac845.js +0 -1340
- package/dist/assets/cesium/Workers/Matrix2-e1298525.js +0 -7086
- package/dist/assets/cesium/Workers/Matrix3-41c58dde.js +0 -4283
- package/dist/assets/cesium/Workers/OrientedBoundingBox-159cf1d6.js +0 -1259
- package/dist/assets/cesium/Workers/Plane-4c3d403b.js +0 -309
- package/dist/assets/cesium/Workers/PolygonGeometryLibrary-076a5d25.js +0 -1074
- package/dist/assets/cesium/Workers/PolygonPipeline-b9f2810a.js +0 -1344
- package/dist/assets/cesium/Workers/PolylinePipeline-639192e0.js +0 -573
- package/dist/assets/cesium/Workers/PolylineVolumeGeometryLibrary-b73549fb.js +0 -781
- package/dist/assets/cesium/Workers/PrimitivePipeline-10ede1b6.js +0 -966
- package/dist/assets/cesium/Workers/RectangleGeometryLibrary-c35a7356.js +0 -280
- package/dist/assets/cesium/Workers/RuntimeError-ef395448.js +0 -68
- package/dist/assets/cesium/Workers/TerrainEncoding-668d242f.js +0 -1227
- package/dist/assets/cesium/Workers/Transforms-a2a85221.js +0 -14712
- package/dist/assets/cesium/Workers/VertexFormat-030f11ff.js +0 -312
- package/dist/assets/cesium/Workers/WallGeometryLibrary-1938bf0d.js +0 -211
- package/dist/assets/cesium/Workers/WebGLConstants-0b1ce7ba.js +0 -620
- package/dist/assets/cesium/Workers/WebMercatorProjection-13ed1a6e.js +0 -151
- package/dist/assets/cesium/Workers/arrayRemoveDuplicates-d2061e85.js +0 -129
- package/dist/assets/cesium/Workers/cesiumWorkerBootstrapper.js +0 -1363
- package/dist/assets/cesium/Workers/combine-d9581036.js +0 -82
- package/dist/assets/cesium/Workers/defaultValue-fe22d8c0.js +0 -51
- package/dist/assets/index-c115e3a1.js +0 -1
- package/plugins/@vcmap/create-link/fallbackCreateLink.vue +0 -76
- package/plugins/@vcmap/create-link/index.js +0 -95
- package/plugins/@vcmap/create-link/package.json +0 -6
- package/plugins/@vcmap/search-nominatim/LICENSE.md +0 -13
- package/plugins/@vcmap/search-nominatim/README.md +0 -3
- package/plugins/@vcmap/search-nominatim/SearchNominatimEditor.vue +0 -90
- package/plugins/@vcmap/search-nominatim/config.json +0 -3
- package/plugins/@vcmap/search-nominatim/index.js +0 -66
- package/plugins/@vcmap/search-nominatim/nominatim.js +0 -175
- package/plugins/@vcmap/search-nominatim/package.json +0 -9
- /package/dist/assets/{vue.67e80f.js → vue.5d696e.js} +0 -0
- /package/dist/assets/{vuetify.ea3fa8.css → vuetify.f0a769.css} +0 -0
- /package/plugins/{@vcmap → @vcmap-show-case}/project-selector/ModulesListComponent.vue +0 -0
- /package/plugins/{@vcmap → @vcmap-show-case}/project-selector/README.md +0 -0
- /package/plugins/{@vcmap → @vcmap-show-case}/project-selector/de.json +0 -0
- /package/plugins/{@vcmap → @vcmap-show-case}/project-selector/en.json +0 -0
- /package/plugins/{@vcmap → @vcmap-show-case}/project-selector/index.js +0 -0
- /package/plugins/{@vcmap → @vcmap-show-case}/simple-graph/README.md +0 -0
- /package/plugins/{@vcmap → @vcmap-show-case}/simple-graph/SimpleGraphComponent.vue +0 -0
- /package/plugins/{@vcmap → @vcmap-show-case}/simple-graph/index.js +0 -0
- /package/plugins/{@vcmap → @vcmap-show-case}/simple-graph/simpleGraphView.js +0 -0
- /package/plugins/{@vcmap → @vcmap-show-case}/theme-changer/README.md +0 -0
- /package/plugins/{@vcmap → @vcmap-show-case}/theme-changer/index.js +0 -0
@@ -1,554 +1,362 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
1
|
+
/**
|
2
|
+
* @license
|
3
|
+
* Cesium - https://github.com/CesiumGS/cesium
|
4
|
+
* Version 1.109.3
|
5
|
+
*
|
6
|
+
* Copyright 2011-2022 Cesium Contributors
|
7
|
+
*
|
8
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
9
|
+
* you may not use this file except in compliance with the License.
|
10
|
+
* You may obtain a copy of the License at
|
11
|
+
*
|
12
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
13
|
+
*
|
14
|
+
* Unless required by applicable law or agreed to in writing, software
|
15
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
16
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
17
|
+
* See the License for the specific language governing permissions and
|
18
|
+
* limitations under the License.
|
19
|
+
*
|
20
|
+
* Columbus View (Pat. Pend.)
|
21
|
+
*
|
22
|
+
* Portions licensed separately.
|
23
|
+
* See https://github.com/CesiumGS/cesium/blob/main/LICENSE.md for full licensing details.
|
24
|
+
*/
|
25
|
+
|
26
|
+
import {
|
27
|
+
EllipsoidalOccluder_default,
|
28
|
+
TerrainEncoding_default
|
29
|
+
} from "./chunk-TFC6TZ3S.js";
|
30
|
+
import {
|
31
|
+
createTaskProcessorWorker_default
|
32
|
+
} from "./chunk-A4JVFBQ3.js";
|
33
|
+
import {
|
34
|
+
WebMercatorProjection_default
|
35
|
+
} from "./chunk-HQF437NJ.js";
|
36
|
+
import {
|
37
|
+
OrientedBoundingBox_default
|
38
|
+
} from "./chunk-Z24VKNDO.js";
|
39
|
+
import "./chunk-O5AMBQ36.js";
|
40
|
+
import "./chunk-RP2A7BR5.js";
|
41
|
+
import {
|
42
|
+
AxisAlignedBoundingBox_default
|
43
|
+
} from "./chunk-2R5O53JW.js";
|
44
|
+
import "./chunk-MYZB7C4T.js";
|
45
|
+
import "./chunk-OYFCF4PL.js";
|
46
|
+
import {
|
47
|
+
BoundingSphere_default,
|
48
|
+
Transforms_default
|
49
|
+
} from "./chunk-PFQBCKBM.js";
|
50
|
+
import "./chunk-QJ3DFBH3.js";
|
51
|
+
import {
|
52
|
+
Cartesian2_default,
|
53
|
+
Matrix4_default,
|
54
|
+
Rectangle_default
|
55
|
+
} from "./chunk-DUHWWBQQ.js";
|
56
|
+
import "./chunk-LLUNNUJV.js";
|
57
|
+
import {
|
58
|
+
Cartesian3_default,
|
59
|
+
Cartographic_default,
|
60
|
+
Ellipsoid_default
|
61
|
+
} from "./chunk-PCJWUS4M.js";
|
62
|
+
import {
|
63
|
+
Math_default
|
64
|
+
} from "./chunk-N3JIFFX2.js";
|
65
|
+
import "./chunk-AHKEZ2OE.js";
|
66
|
+
import {
|
67
|
+
RuntimeError_default
|
68
|
+
} from "./chunk-ABADGKYE.js";
|
69
|
+
import {
|
70
|
+
defaultValue_default
|
71
|
+
} from "./chunk-WXTV4ATB.js";
|
72
|
+
import "./chunk-4MFFIWUA.js";
|
73
|
+
import {
|
74
|
+
defined_default
|
75
|
+
} from "./chunk-6BTKZDRG.js";
|
76
|
+
|
77
|
+
// packages/engine/Source/Workers/createVerticesFromGoogleEarthEnterpriseBuffer.js
|
78
|
+
var sizeOfUint16 = Uint16Array.BYTES_PER_ELEMENT;
|
79
|
+
var sizeOfInt32 = Int32Array.BYTES_PER_ELEMENT;
|
80
|
+
var sizeOfUint32 = Uint32Array.BYTES_PER_ELEMENT;
|
81
|
+
var sizeOfFloat = Float32Array.BYTES_PER_ELEMENT;
|
82
|
+
var sizeOfDouble = Float64Array.BYTES_PER_ELEMENT;
|
83
|
+
function indexOfEpsilon(arr, elem, elemType) {
|
84
|
+
elemType = defaultValue_default(elemType, Math_default);
|
85
|
+
const count = arr.length;
|
86
|
+
for (let i = 0; i < count; ++i) {
|
87
|
+
if (elemType.equalsEpsilon(arr[i], elem, Math_default.EPSILON12)) {
|
88
|
+
return i;
|
16
89
|
}
|
17
|
-
|
18
|
-
return -1;
|
19
90
|
}
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
)
|
25
|
-
|
26
|
-
parameters.
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
91
|
+
return -1;
|
92
|
+
}
|
93
|
+
function createVerticesFromGoogleEarthEnterpriseBuffer(parameters, transferableObjects) {
|
94
|
+
parameters.ellipsoid = Ellipsoid_default.clone(parameters.ellipsoid);
|
95
|
+
parameters.rectangle = Rectangle_default.clone(parameters.rectangle);
|
96
|
+
const statistics = processBuffer(
|
97
|
+
parameters.buffer,
|
98
|
+
parameters.relativeToCenter,
|
99
|
+
parameters.ellipsoid,
|
100
|
+
parameters.rectangle,
|
101
|
+
parameters.nativeRectangle,
|
102
|
+
parameters.exaggeration,
|
103
|
+
parameters.exaggerationRelativeHeight,
|
104
|
+
parameters.skirtHeight,
|
105
|
+
parameters.includeWebMercatorT,
|
106
|
+
parameters.negativeAltitudeExponentBias,
|
107
|
+
parameters.negativeElevationThreshold
|
108
|
+
);
|
109
|
+
const vertices = statistics.vertices;
|
110
|
+
transferableObjects.push(vertices.buffer);
|
111
|
+
const indices = statistics.indices;
|
112
|
+
transferableObjects.push(indices.buffer);
|
113
|
+
return {
|
114
|
+
vertices: vertices.buffer,
|
115
|
+
indices: indices.buffer,
|
116
|
+
numberOfAttributes: statistics.encoding.stride,
|
117
|
+
minimumHeight: statistics.minimumHeight,
|
118
|
+
maximumHeight: statistics.maximumHeight,
|
119
|
+
boundingSphere3D: statistics.boundingSphere3D,
|
120
|
+
orientedBoundingBox: statistics.orientedBoundingBox,
|
121
|
+
occludeePointInScaledSpace: statistics.occludeePointInScaledSpace,
|
122
|
+
encoding: statistics.encoding,
|
123
|
+
vertexCountWithoutSkirts: statistics.vertexCountWithoutSkirts,
|
124
|
+
indexCountWithoutSkirts: statistics.indexCountWithoutSkirts,
|
125
|
+
westIndicesSouthToNorth: statistics.westIndicesSouthToNorth,
|
126
|
+
southIndicesEastToWest: statistics.southIndicesEastToWest,
|
127
|
+
eastIndicesNorthToSouth: statistics.eastIndicesNorthToSouth,
|
128
|
+
northIndicesWestToEast: statistics.northIndicesWestToEast
|
129
|
+
};
|
130
|
+
}
|
131
|
+
var scratchCartographic = new Cartographic_default();
|
132
|
+
var scratchCartesian = new Cartesian3_default();
|
133
|
+
var minimumScratch = new Cartesian3_default();
|
134
|
+
var maximumScratch = new Cartesian3_default();
|
135
|
+
var matrix4Scratch = new Matrix4_default();
|
136
|
+
function processBuffer(buffer, relativeToCenter, ellipsoid, rectangle, nativeRectangle, exaggeration, exaggerationRelativeHeight, skirtHeight, includeWebMercatorT, negativeAltitudeExponentBias, negativeElevationThreshold) {
|
137
|
+
let geographicWest;
|
138
|
+
let geographicSouth;
|
139
|
+
let geographicEast;
|
140
|
+
let geographicNorth;
|
141
|
+
let rectangleWidth, rectangleHeight;
|
142
|
+
if (!defined_default(rectangle)) {
|
143
|
+
geographicWest = Math_default.toRadians(nativeRectangle.west);
|
144
|
+
geographicSouth = Math_default.toRadians(nativeRectangle.south);
|
145
|
+
geographicEast = Math_default.toRadians(nativeRectangle.east);
|
146
|
+
geographicNorth = Math_default.toRadians(nativeRectangle.north);
|
147
|
+
rectangleWidth = Math_default.toRadians(rectangle.width);
|
148
|
+
rectangleHeight = Math_default.toRadians(rectangle.height);
|
149
|
+
} else {
|
150
|
+
geographicWest = rectangle.west;
|
151
|
+
geographicSouth = rectangle.south;
|
152
|
+
geographicEast = rectangle.east;
|
153
|
+
geographicNorth = rectangle.north;
|
154
|
+
rectangleWidth = rectangle.width;
|
155
|
+
rectangleHeight = rectangle.height;
|
63
156
|
}
|
64
|
-
|
65
|
-
const
|
66
|
-
const
|
67
|
-
const minimumScratch = new Matrix3.Cartesian3();
|
68
|
-
const maximumScratch = new Matrix3.Cartesian3();
|
69
|
-
const matrix4Scratch = new Matrix2.Matrix4();
|
70
|
-
|
71
|
-
function processBuffer(
|
72
|
-
buffer,
|
157
|
+
const quadBorderLatitudes = [geographicSouth, geographicNorth];
|
158
|
+
const quadBorderLongitudes = [geographicWest, geographicEast];
|
159
|
+
const fromENU = Transforms_default.eastNorthUpToFixedFrame(
|
73
160
|
relativeToCenter,
|
74
|
-
ellipsoid
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
negativeElevationThreshold
|
83
|
-
) {
|
84
|
-
let geographicWest;
|
85
|
-
let geographicSouth;
|
86
|
-
let geographicEast;
|
87
|
-
let geographicNorth;
|
88
|
-
let rectangleWidth, rectangleHeight;
|
89
|
-
|
90
|
-
if (!defaultValue.defined(rectangle)) {
|
91
|
-
geographicWest = Math$1.CesiumMath.toRadians(nativeRectangle.west);
|
92
|
-
geographicSouth = Math$1.CesiumMath.toRadians(nativeRectangle.south);
|
93
|
-
geographicEast = Math$1.CesiumMath.toRadians(nativeRectangle.east);
|
94
|
-
geographicNorth = Math$1.CesiumMath.toRadians(nativeRectangle.north);
|
95
|
-
rectangleWidth = Math$1.CesiumMath.toRadians(rectangle.width);
|
96
|
-
rectangleHeight = Math$1.CesiumMath.toRadians(rectangle.height);
|
97
|
-
} else {
|
98
|
-
geographicWest = rectangle.west;
|
99
|
-
geographicSouth = rectangle.south;
|
100
|
-
geographicEast = rectangle.east;
|
101
|
-
geographicNorth = rectangle.north;
|
102
|
-
rectangleWidth = rectangle.width;
|
103
|
-
rectangleHeight = rectangle.height;
|
104
|
-
}
|
105
|
-
|
106
|
-
// Keep track of quad borders so we can remove duplicates around the borders
|
107
|
-
const quadBorderLatitudes = [geographicSouth, geographicNorth];
|
108
|
-
const quadBorderLongitudes = [geographicWest, geographicEast];
|
109
|
-
|
110
|
-
const fromENU = Transforms.Transforms.eastNorthUpToFixedFrame(
|
111
|
-
relativeToCenter,
|
112
|
-
ellipsoid
|
161
|
+
ellipsoid
|
162
|
+
);
|
163
|
+
const toENU = Matrix4_default.inverseTransformation(fromENU, matrix4Scratch);
|
164
|
+
let southMercatorY;
|
165
|
+
let oneOverMercatorHeight;
|
166
|
+
if (includeWebMercatorT) {
|
167
|
+
southMercatorY = WebMercatorProjection_default.geodeticLatitudeToMercatorAngle(
|
168
|
+
geographicSouth
|
113
169
|
);
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
170
|
+
oneOverMercatorHeight = 1 / (WebMercatorProjection_default.geodeticLatitudeToMercatorAngle(geographicNorth) - southMercatorY);
|
171
|
+
}
|
172
|
+
const hasExaggeration = exaggeration !== 1;
|
173
|
+
const includeGeodeticSurfaceNormals = hasExaggeration;
|
174
|
+
const dv = new DataView(buffer);
|
175
|
+
let minHeight = Number.POSITIVE_INFINITY;
|
176
|
+
let maxHeight = Number.NEGATIVE_INFINITY;
|
177
|
+
const minimum = minimumScratch;
|
178
|
+
minimum.x = Number.POSITIVE_INFINITY;
|
179
|
+
minimum.y = Number.POSITIVE_INFINITY;
|
180
|
+
minimum.z = Number.POSITIVE_INFINITY;
|
181
|
+
const maximum = maximumScratch;
|
182
|
+
maximum.x = Number.NEGATIVE_INFINITY;
|
183
|
+
maximum.y = Number.NEGATIVE_INFINITY;
|
184
|
+
maximum.z = Number.NEGATIVE_INFINITY;
|
185
|
+
let offset = 0;
|
186
|
+
let size = 0;
|
187
|
+
let indicesSize = 0;
|
188
|
+
let quadSize;
|
189
|
+
let quad;
|
190
|
+
for (quad = 0; quad < 4; ++quad) {
|
191
|
+
let o = offset;
|
192
|
+
quadSize = dv.getUint32(o, true);
|
193
|
+
o += sizeOfUint32;
|
194
|
+
const x = Math_default.toRadians(dv.getFloat64(o, true) * 180);
|
195
|
+
o += sizeOfDouble;
|
196
|
+
if (indexOfEpsilon(quadBorderLongitudes, x) === -1) {
|
197
|
+
quadBorderLongitudes.push(x);
|
126
198
|
}
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
const dv = new DataView(buffer);
|
132
|
-
|
133
|
-
let minHeight = Number.POSITIVE_INFINITY;
|
134
|
-
let maxHeight = Number.NEGATIVE_INFINITY;
|
135
|
-
|
136
|
-
const minimum = minimumScratch;
|
137
|
-
minimum.x = Number.POSITIVE_INFINITY;
|
138
|
-
minimum.y = Number.POSITIVE_INFINITY;
|
139
|
-
minimum.z = Number.POSITIVE_INFINITY;
|
140
|
-
|
141
|
-
const maximum = maximumScratch;
|
142
|
-
maximum.x = Number.NEGATIVE_INFINITY;
|
143
|
-
maximum.y = Number.NEGATIVE_INFINITY;
|
144
|
-
maximum.z = Number.NEGATIVE_INFINITY;
|
145
|
-
|
146
|
-
// Compute sizes
|
147
|
-
let offset = 0;
|
148
|
-
let size = 0;
|
149
|
-
let indicesSize = 0;
|
150
|
-
let quadSize;
|
151
|
-
let quad;
|
152
|
-
for (quad = 0; quad < 4; ++quad) {
|
153
|
-
let o = offset;
|
154
|
-
quadSize = dv.getUint32(o, true);
|
155
|
-
o += sizeOfUint32;
|
156
|
-
|
157
|
-
const x = Math$1.CesiumMath.toRadians(dv.getFloat64(o, true) * 180.0);
|
158
|
-
o += sizeOfDouble;
|
159
|
-
if (indexOfEpsilon(quadBorderLongitudes, x) === -1) {
|
160
|
-
quadBorderLongitudes.push(x);
|
161
|
-
}
|
162
|
-
|
163
|
-
const y = Math$1.CesiumMath.toRadians(dv.getFloat64(o, true) * 180.0);
|
164
|
-
o += sizeOfDouble;
|
165
|
-
if (indexOfEpsilon(quadBorderLatitudes, y) === -1) {
|
166
|
-
quadBorderLatitudes.push(y);
|
167
|
-
}
|
168
|
-
|
169
|
-
o += 2 * sizeOfDouble; // stepX + stepY
|
170
|
-
|
171
|
-
let c = dv.getInt32(o, true); // Read point count
|
172
|
-
o += sizeOfInt32;
|
173
|
-
size += c;
|
174
|
-
|
175
|
-
c = dv.getInt32(o, true); // Read index count
|
176
|
-
indicesSize += c * 3;
|
177
|
-
|
178
|
-
offset += quadSize + sizeOfUint32; // Jump to next quad
|
199
|
+
const y = Math_default.toRadians(dv.getFloat64(o, true) * 180);
|
200
|
+
o += sizeOfDouble;
|
201
|
+
if (indexOfEpsilon(quadBorderLatitudes, y) === -1) {
|
202
|
+
quadBorderLatitudes.push(y);
|
179
203
|
}
|
180
|
-
|
181
|
-
|
182
|
-
|
183
|
-
|
184
|
-
|
185
|
-
|
186
|
-
|
187
|
-
|
188
|
-
|
189
|
-
|
190
|
-
|
191
|
-
|
192
|
-
|
193
|
-
|
194
|
-
|
195
|
-
|
196
|
-
|
197
|
-
|
198
|
-
|
199
|
-
|
200
|
-
|
201
|
-
|
202
|
-
|
203
|
-
|
204
|
-
|
205
|
-
offset
|
206
|
-
|
207
|
-
|
208
|
-
|
209
|
-
|
210
|
-
|
211
|
-
|
212
|
-
|
213
|
-
|
214
|
-
|
215
|
-
|
216
|
-
|
217
|
-
|
218
|
-
|
219
|
-
|
220
|
-
|
221
|
-
|
222
|
-
|
223
|
-
|
224
|
-
|
225
|
-
|
226
|
-
offset
|
227
|
-
|
228
|
-
|
229
|
-
offset +=
|
230
|
-
|
231
|
-
|
232
|
-
|
233
|
-
|
234
|
-
|
235
|
-
|
236
|
-
|
237
|
-
|
238
|
-
|
239
|
-
|
240
|
-
|
241
|
-
|
242
|
-
|
243
|
-
|
244
|
-
|
245
|
-
|
246
|
-
|
247
|
-
// by -2^32 to get the real negative altitude value.
|
248
|
-
if (height !== 0 && height < negativeElevationThreshold) {
|
249
|
-
height *= -Math.pow(2, negativeAltitudeExponentBias);
|
250
|
-
}
|
251
|
-
|
252
|
-
// Height is stored in units of (1/EarthRadius) or (1/6371010.0)
|
253
|
-
height *= 6371010.0;
|
254
|
-
|
255
|
-
scratchCartographic.height = height;
|
256
|
-
|
257
|
-
// Is it along a quad border - if so check if already exists and use that index
|
258
|
-
if (
|
259
|
-
indexOfEpsilon(quadBorderLongitudes, longitude) !== -1 ||
|
260
|
-
indexOfEpsilon(quadBorderLatitudes, latitude) !== -1
|
261
|
-
) {
|
262
|
-
const index = indexOfEpsilon(
|
263
|
-
quadBorderPoints,
|
264
|
-
scratchCartographic,
|
265
|
-
Matrix3.Cartographic
|
266
|
-
);
|
267
|
-
if (index === -1) {
|
268
|
-
quadBorderPoints.push(Matrix3.Cartographic.clone(scratchCartographic));
|
269
|
-
quadBorderIndices.push(pointOffset);
|
270
|
-
} else {
|
271
|
-
indicesMapping[i] = quadBorderIndices[index];
|
272
|
-
continue;
|
273
|
-
}
|
274
|
-
}
|
275
|
-
indicesMapping[i] = pointOffset;
|
276
|
-
|
277
|
-
if (Math.abs(longitude - geographicWest) < halfStepX) {
|
278
|
-
westBorder.push({
|
279
|
-
index: pointOffset,
|
280
|
-
cartographic: Matrix3.Cartographic.clone(scratchCartographic),
|
281
|
-
});
|
282
|
-
} else if (Math.abs(longitude - geographicEast) < halfStepX) {
|
283
|
-
eastBorder.push({
|
284
|
-
index: pointOffset,
|
285
|
-
cartographic: Matrix3.Cartographic.clone(scratchCartographic),
|
286
|
-
});
|
287
|
-
} else if (Math.abs(latitude - geographicSouth) < halfStepY) {
|
288
|
-
southBorder.push({
|
289
|
-
index: pointOffset,
|
290
|
-
cartographic: Matrix3.Cartographic.clone(scratchCartographic),
|
291
|
-
});
|
292
|
-
} else if (Math.abs(latitude - geographicNorth) < halfStepY) {
|
293
|
-
northBorder.push({
|
294
|
-
index: pointOffset,
|
295
|
-
cartographic: Matrix3.Cartographic.clone(scratchCartographic),
|
296
|
-
});
|
297
|
-
}
|
298
|
-
|
299
|
-
minHeight = Math.min(height, minHeight);
|
300
|
-
maxHeight = Math.max(height, maxHeight);
|
301
|
-
heights[pointOffset] = height;
|
302
|
-
|
303
|
-
const pos = ellipsoid.cartographicToCartesian(scratchCartographic);
|
304
|
-
positions[pointOffset] = pos;
|
305
|
-
|
306
|
-
if (includeWebMercatorT) {
|
307
|
-
webMercatorTs[pointOffset] =
|
308
|
-
(WebMercatorProjection.WebMercatorProjection.geodeticLatitudeToMercatorAngle(latitude) -
|
309
|
-
southMercatorY) *
|
310
|
-
oneOverMercatorHeight;
|
311
|
-
}
|
312
|
-
|
313
|
-
if (includeGeodeticSurfaceNormals) {
|
314
|
-
const normal = ellipsoid.geodeticSurfaceNormal(pos);
|
315
|
-
geodeticSurfaceNormals[pointOffset] = normal;
|
204
|
+
o += 2 * sizeOfDouble;
|
205
|
+
let c = dv.getInt32(o, true);
|
206
|
+
o += sizeOfInt32;
|
207
|
+
size += c;
|
208
|
+
c = dv.getInt32(o, true);
|
209
|
+
indicesSize += c * 3;
|
210
|
+
offset += quadSize + sizeOfUint32;
|
211
|
+
}
|
212
|
+
const quadBorderPoints = [];
|
213
|
+
const quadBorderIndices = [];
|
214
|
+
const positions = new Array(size);
|
215
|
+
const uvs = new Array(size);
|
216
|
+
const heights = new Array(size);
|
217
|
+
const webMercatorTs = includeWebMercatorT ? new Array(size) : [];
|
218
|
+
const geodeticSurfaceNormals = includeGeodeticSurfaceNormals ? new Array(size) : [];
|
219
|
+
const indices = new Array(indicesSize);
|
220
|
+
const westBorder = [];
|
221
|
+
const southBorder = [];
|
222
|
+
const eastBorder = [];
|
223
|
+
const northBorder = [];
|
224
|
+
let pointOffset = 0;
|
225
|
+
let indicesOffset = 0;
|
226
|
+
offset = 0;
|
227
|
+
for (quad = 0; quad < 4; ++quad) {
|
228
|
+
quadSize = dv.getUint32(offset, true);
|
229
|
+
offset += sizeOfUint32;
|
230
|
+
const startQuad = offset;
|
231
|
+
const originX = Math_default.toRadians(dv.getFloat64(offset, true) * 180);
|
232
|
+
offset += sizeOfDouble;
|
233
|
+
const originY = Math_default.toRadians(dv.getFloat64(offset, true) * 180);
|
234
|
+
offset += sizeOfDouble;
|
235
|
+
const stepX = Math_default.toRadians(dv.getFloat64(offset, true) * 180);
|
236
|
+
const halfStepX = stepX * 0.5;
|
237
|
+
offset += sizeOfDouble;
|
238
|
+
const stepY = Math_default.toRadians(dv.getFloat64(offset, true) * 180);
|
239
|
+
const halfStepY = stepY * 0.5;
|
240
|
+
offset += sizeOfDouble;
|
241
|
+
const numPoints = dv.getInt32(offset, true);
|
242
|
+
offset += sizeOfInt32;
|
243
|
+
const numFaces = dv.getInt32(offset, true);
|
244
|
+
offset += sizeOfInt32;
|
245
|
+
offset += sizeOfInt32;
|
246
|
+
const indicesMapping = new Array(numPoints);
|
247
|
+
for (let i = 0; i < numPoints; ++i) {
|
248
|
+
const longitude = originX + dv.getUint8(offset++) * stepX;
|
249
|
+
scratchCartographic.longitude = longitude;
|
250
|
+
const latitude = originY + dv.getUint8(offset++) * stepY;
|
251
|
+
scratchCartographic.latitude = latitude;
|
252
|
+
let height = dv.getFloat32(offset, true);
|
253
|
+
offset += sizeOfFloat;
|
254
|
+
if (height !== 0 && height < negativeElevationThreshold) {
|
255
|
+
height *= -Math.pow(2, negativeAltitudeExponentBias);
|
256
|
+
}
|
257
|
+
height *= 6371010;
|
258
|
+
scratchCartographic.height = height;
|
259
|
+
if (indexOfEpsilon(quadBorderLongitudes, longitude) !== -1 || indexOfEpsilon(quadBorderLatitudes, latitude) !== -1) {
|
260
|
+
const index = indexOfEpsilon(
|
261
|
+
quadBorderPoints,
|
262
|
+
scratchCartographic,
|
263
|
+
Cartographic_default
|
264
|
+
);
|
265
|
+
if (index === -1) {
|
266
|
+
quadBorderPoints.push(Cartographic_default.clone(scratchCartographic));
|
267
|
+
quadBorderIndices.push(pointOffset);
|
268
|
+
} else {
|
269
|
+
indicesMapping[i] = quadBorderIndices[index];
|
270
|
+
continue;
|
316
271
|
}
|
317
|
-
|
318
|
-
Matrix2.Matrix4.multiplyByPoint(toENU, pos, scratchCartesian);
|
319
|
-
|
320
|
-
Matrix3.Cartesian3.minimumByComponent(scratchCartesian, minimum, minimum);
|
321
|
-
Matrix3.Cartesian3.maximumByComponent(scratchCartesian, maximum, maximum);
|
322
|
-
|
323
|
-
let u = (longitude - geographicWest) / (geographicEast - geographicWest);
|
324
|
-
u = Math$1.CesiumMath.clamp(u, 0.0, 1.0);
|
325
|
-
let v =
|
326
|
-
(latitude - geographicSouth) / (geographicNorth - geographicSouth);
|
327
|
-
v = Math$1.CesiumMath.clamp(v, 0.0, 1.0);
|
328
|
-
|
329
|
-
uvs[pointOffset] = new Matrix2.Cartesian2(u, v);
|
330
|
-
++pointOffset;
|
331
272
|
}
|
332
|
-
|
333
|
-
|
334
|
-
|
335
|
-
|
336
|
-
|
273
|
+
indicesMapping[i] = pointOffset;
|
274
|
+
if (Math.abs(longitude - geographicWest) < halfStepX) {
|
275
|
+
westBorder.push({
|
276
|
+
index: pointOffset,
|
277
|
+
cartographic: Cartographic_default.clone(scratchCartographic)
|
278
|
+
});
|
279
|
+
} else if (Math.abs(longitude - geographicEast) < halfStepX) {
|
280
|
+
eastBorder.push({
|
281
|
+
index: pointOffset,
|
282
|
+
cartographic: Cartographic_default.clone(scratchCartographic)
|
283
|
+
});
|
284
|
+
} else if (Math.abs(latitude - geographicSouth) < halfStepY) {
|
285
|
+
southBorder.push({
|
286
|
+
index: pointOffset,
|
287
|
+
cartographic: Cartographic_default.clone(scratchCartographic)
|
288
|
+
});
|
289
|
+
} else if (Math.abs(latitude - geographicNorth) < halfStepY) {
|
290
|
+
northBorder.push({
|
291
|
+
index: pointOffset,
|
292
|
+
cartographic: Cartographic_default.clone(scratchCartographic)
|
293
|
+
});
|
337
294
|
}
|
338
|
-
|
339
|
-
|
340
|
-
|
295
|
+
minHeight = Math.min(height, minHeight);
|
296
|
+
maxHeight = Math.max(height, maxHeight);
|
297
|
+
heights[pointOffset] = height;
|
298
|
+
const pos = ellipsoid.cartographicToCartesian(scratchCartographic);
|
299
|
+
positions[pointOffset] = pos;
|
300
|
+
if (includeWebMercatorT) {
|
301
|
+
webMercatorTs[pointOffset] = (WebMercatorProjection_default.geodeticLatitudeToMercatorAngle(latitude) - southMercatorY) * oneOverMercatorHeight;
|
341
302
|
}
|
303
|
+
if (includeGeodeticSurfaceNormals) {
|
304
|
+
const normal = ellipsoid.geodeticSurfaceNormal(pos);
|
305
|
+
geodeticSurfaceNormals[pointOffset] = normal;
|
306
|
+
}
|
307
|
+
Matrix4_default.multiplyByPoint(toENU, pos, scratchCartesian);
|
308
|
+
Cartesian3_default.minimumByComponent(scratchCartesian, minimum, minimum);
|
309
|
+
Cartesian3_default.maximumByComponent(scratchCartesian, maximum, maximum);
|
310
|
+
let u = (longitude - geographicWest) / (geographicEast - geographicWest);
|
311
|
+
u = Math_default.clamp(u, 0, 1);
|
312
|
+
let v = (latitude - geographicSouth) / (geographicNorth - geographicSouth);
|
313
|
+
v = Math_default.clamp(v, 0, 1);
|
314
|
+
uvs[pointOffset] = new Cartesian2_default(u, v);
|
315
|
+
++pointOffset;
|
342
316
|
}
|
343
|
-
|
344
|
-
|
345
|
-
|
346
|
-
|
347
|
-
if (includeWebMercatorT) {
|
348
|
-
webMercatorTs.length = pointOffset;
|
349
|
-
}
|
350
|
-
if (includeGeodeticSurfaceNormals) {
|
351
|
-
geodeticSurfaceNormals.length = pointOffset;
|
352
|
-
}
|
353
|
-
|
354
|
-
const vertexCountWithoutSkirts = pointOffset;
|
355
|
-
const indexCountWithoutSkirts = indicesOffset;
|
356
|
-
|
357
|
-
// Add skirt points
|
358
|
-
const skirtOptions = {
|
359
|
-
hMin: minHeight,
|
360
|
-
lastBorderPoint: undefined,
|
361
|
-
skirtHeight: skirtHeight,
|
362
|
-
toENU: toENU,
|
363
|
-
ellipsoid: ellipsoid,
|
364
|
-
minimum: minimum,
|
365
|
-
maximum: maximum,
|
366
|
-
};
|
367
|
-
|
368
|
-
// Sort counter clockwise from NW corner
|
369
|
-
// Corner points are in the east/west arrays
|
370
|
-
westBorder.sort(function (a, b) {
|
371
|
-
return b.cartographic.latitude - a.cartographic.latitude;
|
372
|
-
});
|
373
|
-
southBorder.sort(function (a, b) {
|
374
|
-
return a.cartographic.longitude - b.cartographic.longitude;
|
375
|
-
});
|
376
|
-
eastBorder.sort(function (a, b) {
|
377
|
-
return a.cartographic.latitude - b.cartographic.latitude;
|
378
|
-
});
|
379
|
-
northBorder.sort(function (a, b) {
|
380
|
-
return b.cartographic.longitude - a.cartographic.longitude;
|
381
|
-
});
|
382
|
-
|
383
|
-
const percentage = 0.00001;
|
384
|
-
addSkirt(
|
385
|
-
positions,
|
386
|
-
heights,
|
387
|
-
uvs,
|
388
|
-
webMercatorTs,
|
389
|
-
geodeticSurfaceNormals,
|
390
|
-
indices,
|
391
|
-
skirtOptions,
|
392
|
-
westBorder,
|
393
|
-
-percentage * rectangleWidth,
|
394
|
-
true,
|
395
|
-
-percentage * rectangleHeight
|
396
|
-
);
|
397
|
-
addSkirt(
|
398
|
-
positions,
|
399
|
-
heights,
|
400
|
-
uvs,
|
401
|
-
webMercatorTs,
|
402
|
-
geodeticSurfaceNormals,
|
403
|
-
indices,
|
404
|
-
skirtOptions,
|
405
|
-
southBorder,
|
406
|
-
-percentage * rectangleHeight,
|
407
|
-
false
|
408
|
-
);
|
409
|
-
addSkirt(
|
410
|
-
positions,
|
411
|
-
heights,
|
412
|
-
uvs,
|
413
|
-
webMercatorTs,
|
414
|
-
geodeticSurfaceNormals,
|
415
|
-
indices,
|
416
|
-
skirtOptions,
|
417
|
-
eastBorder,
|
418
|
-
percentage * rectangleWidth,
|
419
|
-
true,
|
420
|
-
percentage * rectangleHeight
|
421
|
-
);
|
422
|
-
addSkirt(
|
423
|
-
positions,
|
424
|
-
heights,
|
425
|
-
uvs,
|
426
|
-
webMercatorTs,
|
427
|
-
geodeticSurfaceNormals,
|
428
|
-
indices,
|
429
|
-
skirtOptions,
|
430
|
-
northBorder,
|
431
|
-
percentage * rectangleHeight,
|
432
|
-
false
|
433
|
-
);
|
434
|
-
|
435
|
-
// Since the corner between the north and west sides is in the west array, generate the last
|
436
|
-
// two triangles between the last north vertex and the first west vertex
|
437
|
-
if (westBorder.length > 0 && northBorder.length > 0) {
|
438
|
-
const firstBorderIndex = westBorder[0].index;
|
439
|
-
const firstSkirtIndex = vertexCountWithoutSkirts;
|
440
|
-
const lastBorderIndex = northBorder[northBorder.length - 1].index;
|
441
|
-
const lastSkirtIndex = positions.length - 1;
|
442
|
-
|
443
|
-
indices.push(
|
444
|
-
lastBorderIndex,
|
445
|
-
lastSkirtIndex,
|
446
|
-
firstSkirtIndex,
|
447
|
-
firstSkirtIndex,
|
448
|
-
firstBorderIndex,
|
449
|
-
lastBorderIndex
|
450
|
-
);
|
451
|
-
}
|
452
|
-
|
453
|
-
size = positions.length; // Get new size with skirt vertices
|
454
|
-
|
455
|
-
const boundingSphere3D = Transforms.BoundingSphere.fromPoints(positions);
|
456
|
-
let orientedBoundingBox;
|
457
|
-
if (defaultValue.defined(rectangle)) {
|
458
|
-
orientedBoundingBox = OrientedBoundingBox.OrientedBoundingBox.fromRectangle(
|
459
|
-
rectangle,
|
460
|
-
minHeight,
|
461
|
-
maxHeight,
|
462
|
-
ellipsoid
|
463
|
-
);
|
317
|
+
const facesElementCount = numFaces * 3;
|
318
|
+
for (let j = 0; j < facesElementCount; ++j, ++indicesOffset) {
|
319
|
+
indices[indicesOffset] = indicesMapping[dv.getUint16(offset, true)];
|
320
|
+
offset += sizeOfUint16;
|
464
321
|
}
|
465
|
-
|
466
|
-
|
467
|
-
const occludeePointInScaledSpace = occluder.computeHorizonCullingPointPossiblyUnderEllipsoid(
|
468
|
-
relativeToCenter,
|
469
|
-
positions,
|
470
|
-
minHeight
|
471
|
-
);
|
472
|
-
|
473
|
-
const aaBox = new AxisAlignedBoundingBox.AxisAlignedBoundingBox(minimum, maximum, relativeToCenter);
|
474
|
-
const encoding = new TerrainEncoding.TerrainEncoding(
|
475
|
-
relativeToCenter,
|
476
|
-
aaBox,
|
477
|
-
skirtOptions.hMin,
|
478
|
-
maxHeight,
|
479
|
-
fromENU,
|
480
|
-
false,
|
481
|
-
includeWebMercatorT,
|
482
|
-
includeGeodeticSurfaceNormals,
|
483
|
-
exaggeration,
|
484
|
-
exaggerationRelativeHeight
|
485
|
-
);
|
486
|
-
const vertices = new Float32Array(size * encoding.stride);
|
487
|
-
|
488
|
-
let bufferIndex = 0;
|
489
|
-
for (let k = 0; k < size; ++k) {
|
490
|
-
bufferIndex = encoding.encode(
|
491
|
-
vertices,
|
492
|
-
bufferIndex,
|
493
|
-
positions[k],
|
494
|
-
uvs[k],
|
495
|
-
heights[k],
|
496
|
-
undefined,
|
497
|
-
webMercatorTs[k],
|
498
|
-
geodeticSurfaceNormals[k]
|
499
|
-
);
|
322
|
+
if (quadSize !== offset - startQuad) {
|
323
|
+
throw new RuntimeError_default("Invalid terrain tile.");
|
500
324
|
}
|
501
|
-
|
502
|
-
const westIndicesSouthToNorth = westBorder
|
503
|
-
.map(function (vertex) {
|
504
|
-
return vertex.index;
|
505
|
-
})
|
506
|
-
.reverse();
|
507
|
-
const southIndicesEastToWest = southBorder
|
508
|
-
.map(function (vertex) {
|
509
|
-
return vertex.index;
|
510
|
-
})
|
511
|
-
.reverse();
|
512
|
-
const eastIndicesNorthToSouth = eastBorder
|
513
|
-
.map(function (vertex) {
|
514
|
-
return vertex.index;
|
515
|
-
})
|
516
|
-
.reverse();
|
517
|
-
const northIndicesWestToEast = northBorder
|
518
|
-
.map(function (vertex) {
|
519
|
-
return vertex.index;
|
520
|
-
})
|
521
|
-
.reverse();
|
522
|
-
|
523
|
-
southIndicesEastToWest.unshift(
|
524
|
-
eastIndicesNorthToSouth[eastIndicesNorthToSouth.length - 1]
|
525
|
-
);
|
526
|
-
southIndicesEastToWest.push(westIndicesSouthToNorth[0]);
|
527
|
-
|
528
|
-
northIndicesWestToEast.unshift(
|
529
|
-
westIndicesSouthToNorth[westIndicesSouthToNorth.length - 1]
|
530
|
-
);
|
531
|
-
northIndicesWestToEast.push(eastIndicesNorthToSouth[0]);
|
532
|
-
|
533
|
-
return {
|
534
|
-
vertices: vertices,
|
535
|
-
indices: new Uint16Array(indices),
|
536
|
-
maximumHeight: maxHeight,
|
537
|
-
minimumHeight: minHeight,
|
538
|
-
encoding: encoding,
|
539
|
-
boundingSphere3D: boundingSphere3D,
|
540
|
-
orientedBoundingBox: orientedBoundingBox,
|
541
|
-
occludeePointInScaledSpace: occludeePointInScaledSpace,
|
542
|
-
vertexCountWithoutSkirts: vertexCountWithoutSkirts,
|
543
|
-
indexCountWithoutSkirts: indexCountWithoutSkirts,
|
544
|
-
westIndicesSouthToNorth: westIndicesSouthToNorth,
|
545
|
-
southIndicesEastToWest: southIndicesEastToWest,
|
546
|
-
eastIndicesNorthToSouth: eastIndicesNorthToSouth,
|
547
|
-
northIndicesWestToEast: northIndicesWestToEast,
|
548
|
-
};
|
549
325
|
}
|
550
|
-
|
551
|
-
|
326
|
+
positions.length = pointOffset;
|
327
|
+
uvs.length = pointOffset;
|
328
|
+
heights.length = pointOffset;
|
329
|
+
if (includeWebMercatorT) {
|
330
|
+
webMercatorTs.length = pointOffset;
|
331
|
+
}
|
332
|
+
if (includeGeodeticSurfaceNormals) {
|
333
|
+
geodeticSurfaceNormals.length = pointOffset;
|
334
|
+
}
|
335
|
+
const vertexCountWithoutSkirts = pointOffset;
|
336
|
+
const indexCountWithoutSkirts = indicesOffset;
|
337
|
+
const skirtOptions = {
|
338
|
+
hMin: minHeight,
|
339
|
+
lastBorderPoint: void 0,
|
340
|
+
skirtHeight,
|
341
|
+
toENU,
|
342
|
+
ellipsoid,
|
343
|
+
minimum,
|
344
|
+
maximum
|
345
|
+
};
|
346
|
+
westBorder.sort(function(a, b) {
|
347
|
+
return b.cartographic.latitude - a.cartographic.latitude;
|
348
|
+
});
|
349
|
+
southBorder.sort(function(a, b) {
|
350
|
+
return a.cartographic.longitude - b.cartographic.longitude;
|
351
|
+
});
|
352
|
+
eastBorder.sort(function(a, b) {
|
353
|
+
return a.cartographic.latitude - b.cartographic.latitude;
|
354
|
+
});
|
355
|
+
northBorder.sort(function(a, b) {
|
356
|
+
return b.cartographic.longitude - a.cartographic.longitude;
|
357
|
+
});
|
358
|
+
const percentage = 1e-5;
|
359
|
+
addSkirt(
|
552
360
|
positions,
|
553
361
|
heights,
|
554
362
|
uvs,
|
@@ -556,85 +364,205 @@ define(['./AxisAlignedBoundingBox-4140c51f', './Transforms-a2a85221', './Matrix2
|
|
556
364
|
geodeticSurfaceNormals,
|
557
365
|
indices,
|
558
366
|
skirtOptions,
|
559
|
-
|
560
|
-
|
561
|
-
|
562
|
-
|
563
|
-
)
|
564
|
-
|
565
|
-
|
566
|
-
|
567
|
-
|
568
|
-
|
569
|
-
|
570
|
-
|
571
|
-
|
572
|
-
|
573
|
-
|
574
|
-
|
575
|
-
|
576
|
-
|
577
|
-
|
578
|
-
|
579
|
-
|
580
|
-
|
581
|
-
|
582
|
-
|
583
|
-
|
584
|
-
|
585
|
-
|
586
|
-
|
587
|
-
|
588
|
-
|
589
|
-
|
590
|
-
|
591
|
-
|
592
|
-
|
593
|
-
|
594
|
-
|
595
|
-
|
596
|
-
|
597
|
-
|
598
|
-
|
599
|
-
|
367
|
+
westBorder,
|
368
|
+
-percentage * rectangleWidth,
|
369
|
+
true,
|
370
|
+
-percentage * rectangleHeight
|
371
|
+
);
|
372
|
+
addSkirt(
|
373
|
+
positions,
|
374
|
+
heights,
|
375
|
+
uvs,
|
376
|
+
webMercatorTs,
|
377
|
+
geodeticSurfaceNormals,
|
378
|
+
indices,
|
379
|
+
skirtOptions,
|
380
|
+
southBorder,
|
381
|
+
-percentage * rectangleHeight,
|
382
|
+
false
|
383
|
+
);
|
384
|
+
addSkirt(
|
385
|
+
positions,
|
386
|
+
heights,
|
387
|
+
uvs,
|
388
|
+
webMercatorTs,
|
389
|
+
geodeticSurfaceNormals,
|
390
|
+
indices,
|
391
|
+
skirtOptions,
|
392
|
+
eastBorder,
|
393
|
+
percentage * rectangleWidth,
|
394
|
+
true,
|
395
|
+
percentage * rectangleHeight
|
396
|
+
);
|
397
|
+
addSkirt(
|
398
|
+
positions,
|
399
|
+
heights,
|
400
|
+
uvs,
|
401
|
+
webMercatorTs,
|
402
|
+
geodeticSurfaceNormals,
|
403
|
+
indices,
|
404
|
+
skirtOptions,
|
405
|
+
northBorder,
|
406
|
+
percentage * rectangleHeight,
|
407
|
+
false
|
408
|
+
);
|
409
|
+
if (westBorder.length > 0 && northBorder.length > 0) {
|
410
|
+
const firstBorderIndex = westBorder[0].index;
|
411
|
+
const firstSkirtIndex = vertexCountWithoutSkirts;
|
412
|
+
const lastBorderIndex = northBorder[northBorder.length - 1].index;
|
413
|
+
const lastSkirtIndex = positions.length - 1;
|
414
|
+
indices.push(
|
415
|
+
lastBorderIndex,
|
416
|
+
lastSkirtIndex,
|
417
|
+
firstSkirtIndex,
|
418
|
+
firstSkirtIndex,
|
419
|
+
firstBorderIndex,
|
420
|
+
lastBorderIndex
|
421
|
+
);
|
422
|
+
}
|
423
|
+
size = positions.length;
|
424
|
+
const boundingSphere3D = BoundingSphere_default.fromPoints(positions);
|
425
|
+
let orientedBoundingBox;
|
426
|
+
if (defined_default(rectangle)) {
|
427
|
+
orientedBoundingBox = OrientedBoundingBox_default.fromRectangle(
|
428
|
+
rectangle,
|
429
|
+
minHeight,
|
430
|
+
maxHeight,
|
431
|
+
ellipsoid
|
432
|
+
);
|
433
|
+
}
|
434
|
+
const occluder = new EllipsoidalOccluder_default(ellipsoid);
|
435
|
+
const occludeePointInScaledSpace = occluder.computeHorizonCullingPointPossiblyUnderEllipsoid(
|
436
|
+
relativeToCenter,
|
437
|
+
positions,
|
438
|
+
minHeight
|
439
|
+
);
|
440
|
+
const aaBox = new AxisAlignedBoundingBox_default(minimum, maximum, relativeToCenter);
|
441
|
+
const encoding = new TerrainEncoding_default(
|
442
|
+
relativeToCenter,
|
443
|
+
aaBox,
|
444
|
+
skirtOptions.hMin,
|
445
|
+
maxHeight,
|
446
|
+
fromENU,
|
447
|
+
false,
|
448
|
+
includeWebMercatorT,
|
449
|
+
includeGeodeticSurfaceNormals,
|
450
|
+
exaggeration,
|
451
|
+
exaggerationRelativeHeight
|
452
|
+
);
|
453
|
+
const vertices = new Float32Array(size * encoding.stride);
|
454
|
+
let bufferIndex = 0;
|
455
|
+
for (let k = 0; k < size; ++k) {
|
456
|
+
bufferIndex = encoding.encode(
|
457
|
+
vertices,
|
458
|
+
bufferIndex,
|
459
|
+
positions[k],
|
460
|
+
uvs[k],
|
461
|
+
heights[k],
|
462
|
+
void 0,
|
463
|
+
webMercatorTs[k],
|
464
|
+
geodeticSurfaceNormals[k]
|
465
|
+
);
|
466
|
+
}
|
467
|
+
const westIndicesSouthToNorth = westBorder.map(function(vertex) {
|
468
|
+
return vertex.index;
|
469
|
+
}).reverse();
|
470
|
+
const southIndicesEastToWest = southBorder.map(function(vertex) {
|
471
|
+
return vertex.index;
|
472
|
+
}).reverse();
|
473
|
+
const eastIndicesNorthToSouth = eastBorder.map(function(vertex) {
|
474
|
+
return vertex.index;
|
475
|
+
}).reverse();
|
476
|
+
const northIndicesWestToEast = northBorder.map(function(vertex) {
|
477
|
+
return vertex.index;
|
478
|
+
}).reverse();
|
479
|
+
southIndicesEastToWest.unshift(
|
480
|
+
eastIndicesNorthToSouth[eastIndicesNorthToSouth.length - 1]
|
481
|
+
);
|
482
|
+
southIndicesEastToWest.push(westIndicesSouthToNorth[0]);
|
483
|
+
northIndicesWestToEast.unshift(
|
484
|
+
westIndicesSouthToNorth[westIndicesSouthToNorth.length - 1]
|
485
|
+
);
|
486
|
+
northIndicesWestToEast.push(eastIndicesNorthToSouth[0]);
|
487
|
+
return {
|
488
|
+
vertices,
|
489
|
+
indices: new Uint16Array(indices),
|
490
|
+
maximumHeight: maxHeight,
|
491
|
+
minimumHeight: minHeight,
|
492
|
+
encoding,
|
493
|
+
boundingSphere3D,
|
494
|
+
orientedBoundingBox,
|
495
|
+
occludeePointInScaledSpace,
|
496
|
+
vertexCountWithoutSkirts,
|
497
|
+
indexCountWithoutSkirts,
|
498
|
+
westIndicesSouthToNorth,
|
499
|
+
southIndicesEastToWest,
|
500
|
+
eastIndicesNorthToSouth,
|
501
|
+
northIndicesWestToEast
|
502
|
+
};
|
503
|
+
}
|
504
|
+
function addSkirt(positions, heights, uvs, webMercatorTs, geodeticSurfaceNormals, indices, skirtOptions, borderPoints, fudgeFactor, eastOrWest, cornerFudge) {
|
505
|
+
const count = borderPoints.length;
|
506
|
+
for (let j = 0; j < count; ++j) {
|
507
|
+
const borderPoint = borderPoints[j];
|
508
|
+
const borderCartographic = borderPoint.cartographic;
|
509
|
+
const borderIndex = borderPoint.index;
|
510
|
+
const currentIndex = positions.length;
|
511
|
+
const longitude = borderCartographic.longitude;
|
512
|
+
let latitude = borderCartographic.latitude;
|
513
|
+
latitude = Math_default.clamp(
|
514
|
+
latitude,
|
515
|
+
-Math_default.PI_OVER_TWO,
|
516
|
+
Math_default.PI_OVER_TWO
|
517
|
+
);
|
518
|
+
const height = borderCartographic.height - skirtOptions.skirtHeight;
|
519
|
+
skirtOptions.hMin = Math.min(skirtOptions.hMin, height);
|
520
|
+
Cartographic_default.fromRadians(longitude, latitude, height, scratchCartographic);
|
521
|
+
if (eastOrWest) {
|
522
|
+
scratchCartographic.longitude += fudgeFactor;
|
523
|
+
}
|
524
|
+
if (!eastOrWest) {
|
525
|
+
scratchCartographic.latitude += fudgeFactor;
|
526
|
+
} else if (j === count - 1) {
|
527
|
+
scratchCartographic.latitude += cornerFudge;
|
528
|
+
} else if (j === 0) {
|
529
|
+
scratchCartographic.latitude -= cornerFudge;
|
530
|
+
}
|
531
|
+
const pos = skirtOptions.ellipsoid.cartographicToCartesian(
|
532
|
+
scratchCartographic
|
533
|
+
);
|
534
|
+
positions.push(pos);
|
535
|
+
heights.push(height);
|
536
|
+
uvs.push(Cartesian2_default.clone(uvs[borderIndex]));
|
537
|
+
if (webMercatorTs.length > 0) {
|
538
|
+
webMercatorTs.push(webMercatorTs[borderIndex]);
|
539
|
+
}
|
540
|
+
if (geodeticSurfaceNormals.length > 0) {
|
541
|
+
geodeticSurfaceNormals.push(geodeticSurfaceNormals[borderIndex]);
|
542
|
+
}
|
543
|
+
Matrix4_default.multiplyByPoint(skirtOptions.toENU, pos, scratchCartesian);
|
544
|
+
const minimum = skirtOptions.minimum;
|
545
|
+
const maximum = skirtOptions.maximum;
|
546
|
+
Cartesian3_default.minimumByComponent(scratchCartesian, minimum, minimum);
|
547
|
+
Cartesian3_default.maximumByComponent(scratchCartesian, maximum, maximum);
|
548
|
+
const lastBorderPoint = skirtOptions.lastBorderPoint;
|
549
|
+
if (defined_default(lastBorderPoint)) {
|
550
|
+
const lastBorderIndex = lastBorderPoint.index;
|
551
|
+
indices.push(
|
552
|
+
lastBorderIndex,
|
553
|
+
currentIndex - 1,
|
554
|
+
currentIndex,
|
555
|
+
currentIndex,
|
556
|
+
borderIndex,
|
557
|
+
lastBorderIndex
|
600
558
|
);
|
601
|
-
positions.push(pos);
|
602
|
-
heights.push(height);
|
603
|
-
uvs.push(Matrix2.Cartesian2.clone(uvs[borderIndex])); // Copy UVs from border point
|
604
|
-
if (webMercatorTs.length > 0) {
|
605
|
-
webMercatorTs.push(webMercatorTs[borderIndex]);
|
606
|
-
}
|
607
|
-
if (geodeticSurfaceNormals.length > 0) {
|
608
|
-
geodeticSurfaceNormals.push(geodeticSurfaceNormals[borderIndex]);
|
609
|
-
}
|
610
|
-
|
611
|
-
Matrix2.Matrix4.multiplyByPoint(skirtOptions.toENU, pos, scratchCartesian);
|
612
|
-
|
613
|
-
const minimum = skirtOptions.minimum;
|
614
|
-
const maximum = skirtOptions.maximum;
|
615
|
-
Matrix3.Cartesian3.minimumByComponent(scratchCartesian, minimum, minimum);
|
616
|
-
Matrix3.Cartesian3.maximumByComponent(scratchCartesian, maximum, maximum);
|
617
|
-
|
618
|
-
const lastBorderPoint = skirtOptions.lastBorderPoint;
|
619
|
-
if (defaultValue.defined(lastBorderPoint)) {
|
620
|
-
const lastBorderIndex = lastBorderPoint.index;
|
621
|
-
indices.push(
|
622
|
-
lastBorderIndex,
|
623
|
-
currentIndex - 1,
|
624
|
-
currentIndex,
|
625
|
-
currentIndex,
|
626
|
-
borderIndex,
|
627
|
-
lastBorderIndex
|
628
|
-
);
|
629
|
-
}
|
630
|
-
|
631
|
-
skirtOptions.lastBorderPoint = borderPoint;
|
632
559
|
}
|
560
|
+
skirtOptions.lastBorderPoint = borderPoint;
|
633
561
|
}
|
634
|
-
|
635
|
-
|
636
|
-
|
637
|
-
|
638
|
-
|
639
|
-
|
640
|
-
}
|
562
|
+
}
|
563
|
+
var createVerticesFromGoogleEarthEnterpriseBuffer_default = createTaskProcessorWorker_default(
|
564
|
+
createVerticesFromGoogleEarthEnterpriseBuffer
|
565
|
+
);
|
566
|
+
export {
|
567
|
+
createVerticesFromGoogleEarthEnterpriseBuffer_default as default
|
568
|
+
};
|