@vtx/cs-map 1.0.94 → 1.0.96
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/README.md +202 -202
- package/lib/_util/EventEmitter.js +7 -6
- package/lib/_util/EventEmitter.js.map +1 -1
- package/lib/_util/Provider.js +1 -1
- package/lib/_util/Provider.js.map +1 -1
- package/lib/_util/StyleCache.js +7 -6
- package/lib/_util/StyleCache.js.map +1 -1
- package/lib/_util/cesium.js +11 -10
- package/lib/_util/cesium.js.map +1 -1
- package/lib/_util/encryptParams.js +1 -1
- package/lib/_util/encryptParams.js.map +1 -1
- package/lib/_util/filterSpecialCharacters.js +12 -12
- package/lib/_util/filterSpecialCharacters.js.map +1 -1
- package/lib/_util/generateRandomPosition.js +5 -5
- package/lib/_util/generateRandomPosition.js.map +1 -1
- package/lib/_util/getBBoxFromGeojson.js +17 -16
- package/lib/_util/getBBoxFromGeojson.js.map +1 -1
- package/lib/_util/getComponentProps.js.map +1 -1
- package/lib/_util/getCookie.js +4 -4
- package/lib/_util/getCookie.js.map +1 -1
- package/lib/_util/getDefaultMapInfo.js +3 -3
- package/lib/_util/getDefaultMapInfo.js.map +1 -1
- package/lib/_util/getSystemInfo.js +3 -3
- package/lib/_util/getSystemInfo.js.map +1 -1
- package/lib/_util/getToken.js +5 -5
- package/lib/_util/getToken.js.map +1 -1
- package/lib/_util/getUrlParam.js +1 -1
- package/lib/_util/getUrlParam.js.map +1 -1
- package/lib/_util/heightAndZoom.js.map +1 -1
- package/lib/_util/http.js +27 -26
- package/lib/_util/http.js.map +1 -1
- package/lib/_util/isFunction.js.map +1 -1
- package/lib/_util/isObject.js.map +1 -1
- package/lib/_util/layer.js +11 -11
- package/lib/_util/layer.js.map +1 -1
- package/lib/_util/mapTool.js +34 -34
- package/lib/_util/mapTool.js.map +1 -1
- package/lib/_util/parabola.js +7 -7
- package/lib/_util/parabola.js.map +1 -1
- package/lib/_util/setCookie.js +4 -4
- package/lib/_util/setCookie.js.map +1 -1
- package/lib/_util/transformRgb.js +1 -2
- package/lib/_util/transformRgb.js.map +1 -1
- package/lib/_util/useColSize.js +1 -1
- package/lib/_util/useColSize.js.map +1 -1
- package/lib/_util/useInterval.js.map +1 -1
- package/lib/_util/useProps.js.map +1 -1
- package/lib/_util/useSet.js +7 -7
- package/lib/_util/useSet.js.map +1 -1
- package/lib/building-tiles-layer/BuildingTilesLayer.js +20 -18
- package/lib/building-tiles-layer/BuildingTilesLayer.js.map +1 -1
- package/lib/building-tiles-layer/index.js +6 -6
- package/lib/building-tiles-layer/index.js.map +1 -1
- package/lib/building-tiles-layer/style/css.js.map +1 -1
- package/lib/building-tiles-layer/style/index.js.map +1 -1
- package/lib/cesium-tiles-layer/CesiumTilesLayer.js +21 -19
- package/lib/cesium-tiles-layer/CesiumTilesLayer.js.map +1 -1
- package/lib/cesium-tiles-layer/demo/index.less +101 -101
- package/lib/cesium-tiles-layer/index.js +6 -6
- package/lib/cesium-tiles-layer/index.js.map +1 -1
- package/lib/cesium-tiles-layer/style/css.js.map +1 -1
- package/lib/cesium-tiles-layer/style/index.js.map +1 -1
- package/lib/circle/Circle.js +20 -18
- package/lib/circle/Circle.js.map +1 -1
- package/lib/circle/index.js +3 -3
- package/lib/circle/index.js.map +1 -1
- package/lib/circle/style/css.js.map +1 -1
- package/lib/circle/style/index.js.map +1 -1
- package/lib/circle-fly/index.js +7 -7
- package/lib/circle-fly/index.js.map +1 -1
- package/lib/circle-fly/style/css.js.map +1 -1
- package/lib/circle-fly/style/index.js.map +1 -1
- package/lib/config.js.map +1 -1
- package/lib/demand-layer/DemandLayer.js +25 -23
- package/lib/demand-layer/DemandLayer.js.map +1 -1
- package/lib/demand-layer/index.js +7 -7
- package/lib/demand-layer/index.js.map +1 -1
- package/lib/demand-layer/style/css.js.map +1 -1
- package/lib/demand-layer/style/index.js.map +1 -1
- package/lib/dom/Dom.js +11 -10
- package/lib/dom/Dom.js.map +1 -1
- package/lib/dom/index.js +8 -8
- package/lib/dom/index.js.map +1 -1
- package/lib/dom/style/css.js.map +1 -1
- package/lib/dom/style/index.js.map +1 -1
- package/lib/events/index.js.map +1 -1
- package/lib/excavation-analysis/Cut.js +26 -25
- package/lib/excavation-analysis/Cut.js.map +1 -1
- package/lib/excavation-analysis/TilesetCut.js +15 -14
- package/lib/excavation-analysis/TilesetCut.js.map +1 -1
- package/lib/excavation-analysis/hooks/useDrawHandler.js +1 -1
- package/lib/excavation-analysis/hooks/useDrawHandler.js.map +1 -1
- package/lib/excavation-analysis/hooks/useTerrainClipPlan.js.map +1 -1
- package/lib/excavation-analysis/hooks/useTileSetCut.js +1 -1
- package/lib/excavation-analysis/hooks/useTileSetCut.js.map +1 -1
- package/lib/excavation-analysis/index.js +4 -3
- package/lib/excavation-analysis/index.js.map +1 -1
- package/lib/excavation-analysis/style/css.js.map +1 -1
- package/lib/excavation-analysis/style/index.js.map +1 -1
- package/lib/feature-layer/FeatureLayer.js +27 -25
- package/lib/feature-layer/FeatureLayer.js.map +1 -1
- package/lib/feature-layer/createFeatureCollection.js +22 -22
- package/lib/feature-layer/createFeatureCollection.js.map +1 -1
- package/lib/feature-layer/index.js +12 -12
- package/lib/feature-layer/index.js.map +1 -1
- package/lib/feature-layer/style/css.js.map +1 -1
- package/lib/feature-layer/style/index.js.map +1 -1
- package/lib/fence-layer/FenceLayer.js +30 -28
- package/lib/fence-layer/FenceLayer.js.map +1 -1
- package/lib/fence-layer/GradualLightRingMaterialProperty.js +5 -5
- package/lib/fence-layer/GradualLightRingMaterialProperty.js.map +1 -1
- package/lib/fence-layer/index.js +6 -6
- package/lib/fence-layer/index.js.map +1 -1
- package/lib/fence-layer/style/css.js.map +1 -1
- package/lib/fence-layer/style/index.js.map +1 -1
- package/lib/flight-line-layer/FlightLineLayer.js +57 -56
- package/lib/flight-line-layer/FlightLineLayer.js.map +1 -1
- package/lib/flight-line-layer/index.js +20 -7
- package/lib/flight-line-layer/index.js.map +1 -1
- package/lib/flight-line-layer/style/css.js.map +1 -1
- package/lib/flight-line-layer/style/index.js.map +1 -1
- package/lib/fly-line-layer/FlyLineLayer.js +29 -27
- package/lib/fly-line-layer/FlyLineLayer.js.map +1 -1
- package/lib/fly-line-layer/LineFlowMaterialProperty.js +7 -6
- package/lib/fly-line-layer/LineFlowMaterialProperty.js.map +1 -1
- package/lib/fly-line-layer/index.js +3 -3
- package/lib/fly-line-layer/index.js.map +1 -1
- package/lib/fly-line-layer/style/css.js.map +1 -1
- package/lib/fly-line-layer/style/index.js.map +1 -1
- package/lib/gif-dom-layer/GifDomLayer.js +12 -11
- package/lib/gif-dom-layer/GifDomLayer.js.map +1 -1
- package/lib/gif-dom-layer/index.js +3 -3
- package/lib/gif-dom-layer/index.js.map +1 -1
- package/lib/gif-dom-layer/style/css.js.map +1 -1
- package/lib/gif-dom-layer/style/index.js.map +1 -1
- package/lib/gradation-line-layer/GradationLineLayer.js +18 -16
- package/lib/gradation-line-layer/GradationLineLayer.js.map +1 -1
- package/lib/gradation-line-layer/index.js +3 -3
- package/lib/gradation-line-layer/index.js.map +1 -1
- package/lib/gradation-line-layer/style/css.js.map +1 -1
- package/lib/gradation-line-layer/style/index.js.map +1 -1
- package/lib/group-layer/GroupLayer.js +9 -8
- package/lib/group-layer/GroupLayer.js.map +1 -1
- package/lib/group-layer/index.js +7 -7
- package/lib/group-layer/index.js.map +1 -1
- package/lib/group-layer/style/css.js.map +1 -1
- package/lib/group-layer/style/index.js.map +1 -1
- package/lib/heatmap-layer/CesiumHeatmap.js +39 -38
- package/lib/heatmap-layer/CesiumHeatmap.js.map +1 -1
- package/lib/heatmap-layer/HeatmapLayer.js +26 -24
- package/lib/heatmap-layer/HeatmapLayer.js.map +1 -1
- package/lib/heatmap-layer/heatmap.js +42 -41
- package/lib/heatmap-layer/heatmap.js.map +1 -1
- package/lib/heatmap-layer/index.js +13 -13
- package/lib/heatmap-layer/index.js.map +1 -1
- package/lib/heatmap-layer/style/css.js.map +1 -1
- package/lib/heatmap-layer/style/index.js.map +1 -1
- package/lib/highlight-layer/HighlightLayer.js +17 -16
- package/lib/highlight-layer/HighlightLayer.js.map +1 -1
- package/lib/highlight-layer/index.js +3 -3
- package/lib/highlight-layer/index.js.map +1 -1
- package/lib/highlight-layer/style/css.js.map +1 -1
- package/lib/highlight-layer/style/index.js.map +1 -1
- package/lib/image-layer/ImageLayer.js +24 -22
- package/lib/image-layer/ImageLayer.js.map +1 -1
- package/lib/image-layer/index.js +10 -8
- package/lib/image-layer/index.js.map +1 -1
- package/lib/image-layer/style/css.js.map +1 -1
- package/lib/image-layer/style/index.js.map +1 -1
- package/lib/image-wms-layer/ImageWmsLayer.js +10 -9
- package/lib/image-wms-layer/ImageWmsLayer.js.map +1 -1
- package/lib/image-wms-layer/index.js +8 -8
- package/lib/image-wms-layer/index.js.map +1 -1
- package/lib/image-wms-layer/style/css.js.map +1 -1
- package/lib/image-wms-layer/style/index.js.map +1 -1
- package/lib/index.js +1 -1
- package/lib/index.js.map +1 -1
- package/lib/inundate-analysis/index.js +8 -8
- package/lib/inundate-analysis/index.js.map +1 -1
- package/lib/inundate-analysis/style/css.js.map +1 -1
- package/lib/inundate-analysis/style/index.js.map +1 -1
- package/lib/label/Label.js +25 -23
- package/lib/label/Label.js.map +1 -1
- package/lib/label/index.js +3 -3
- package/lib/label/index.js.map +1 -1
- package/lib/label/style/css.js.map +1 -1
- package/lib/label/style/index.js.map +1 -1
- package/lib/legend/index.js +15 -15
- package/lib/legend/index.js.map +1 -1
- package/lib/legend/style/css.js.map +1 -1
- package/lib/legend/style/index.js.map +1 -1
- package/lib/legend/style/index.less +74 -74
- package/lib/line-flow-layer/LineFlowLayer.js +18 -15
- package/lib/line-flow-layer/LineFlowLayer.js.map +1 -1
- package/lib/line-flow-layer/index.js +3 -3
- package/lib/line-flow-layer/index.js.map +1 -1
- package/lib/line-flow-layer/style/css.js.map +1 -1
- package/lib/line-flow-layer/style/index.js.map +1 -1
- package/lib/map/InfoTool/index.js +74 -66
- package/lib/map/InfoTool/index.js.map +1 -1
- package/lib/map/InfoTool/index.less +46 -46
- package/lib/map/InfoTool/util.js +23 -23
- package/lib/map/InfoTool/util.js.map +1 -1
- package/lib/map/InfoWindow.js +7 -7
- package/lib/map/InfoWindow.js.map +1 -1
- package/lib/map/Layers.js +23 -21
- package/lib/map/Layers.js.map +1 -1
- package/lib/map/Popup.js +13 -13
- package/lib/map/Popup.js.map +1 -1
- package/lib/map/base/imagery/amap/AmapImageryProvider.js +16 -15
- package/lib/map/base/imagery/amap/AmapImageryProvider.js.map +1 -1
- package/lib/map/base/imagery/amap/AmapMercatorTilingScheme.js +16 -15
- package/lib/map/base/imagery/amap/AmapMercatorTilingScheme.js.map +1 -1
- package/lib/map/base/imagery/baidu/BaiduImageryProvider.js +8 -7
- package/lib/map/base/imagery/baidu/BaiduImageryProvider.js.map +1 -1
- package/lib/map/base/imagery/baidu/BaiduMercatorProjection.js +84 -83
- package/lib/map/base/imagery/baidu/BaiduMercatorProjection.js.map +1 -1
- package/lib/map/base/imagery/baidu/BaiduMercatorTilingScheme.js +33 -31
- package/lib/map/base/imagery/baidu/BaiduMercatorTilingScheme.js.map +1 -1
- package/lib/map/base/imagery/geoq/GeoQImageryProvider.js +16 -15
- package/lib/map/base/imagery/geoq/GeoQImageryProvider.js.map +1 -1
- package/lib/map/base/imagery/google/GoogleImageryProvider.js +15 -14
- package/lib/map/base/imagery/google/GoogleImageryProvider.js.map +1 -1
- package/lib/map/base/imagery/irs/IRSImageryProvider.js +22 -20
- package/lib/map/base/imagery/irs/IRSImageryProvider.js.map +1 -1
- package/lib/map/base/imagery/tdt/JiangSuTdtImageryProvider.js +16 -15
- package/lib/map/base/imagery/tdt/JiangSuTdtImageryProvider.js.map +1 -1
- package/lib/map/base/imagery/tdt/TdtImageryProvider.js +20 -18
- package/lib/map/base/imagery/tdt/TdtImageryProvider.js.map +1 -1
- package/lib/map/base/imagery/tencent/TencentImageryProvider.js +15 -14
- package/lib/map/base/imagery/tencent/TencentImageryProvider.js.map +1 -1
- package/lib/map/base/imagery/transform/AmapMercatorTilingScheme.js +16 -15
- package/lib/map/base/imagery/transform/AmapMercatorTilingScheme.js.map +1 -1
- package/lib/map/base/imagery/transform/CoordTransform.js +49 -48
- package/lib/map/base/imagery/transform/CoordTransform.js.map +1 -1
- package/lib/map/base/index.js +21 -19
- package/lib/map/base/index.js.map +1 -1
- package/lib/map/hooks/useGetMapFeatureInfoByText.js +4 -4
- package/lib/map/hooks/useGetMapFeatureInfoByText.js.map +1 -1
- package/lib/map/index.js +21 -21
- package/lib/map/index.js.map +1 -1
- package/lib/map/material/AroundPoint.js +7 -6
- package/lib/map/material/AroundPoint.js.map +1 -1
- package/lib/map/material/CircleRippleMaterialProperty.js +6 -5
- package/lib/map/material/CircleRippleMaterialProperty.js.map +1 -1
- package/lib/map/material/ODLineLayer.js +7 -6
- package/lib/map/material/ODLineLayer.js.map +1 -1
- package/lib/map/material/PolylineTrailLinkMaterialProperty.js +8 -7
- package/lib/map/material/PolylineTrailLinkMaterialProperty.js.map +1 -1
- package/lib/map/material/PolylineTrailMaterialProperty.js +8 -7
- package/lib/map/material/PolylineTrailMaterialProperty.js.map +1 -1
- package/lib/map/material/TilesBuilding.js +7 -6
- package/lib/map/material/TilesBuilding.js.map +1 -1
- package/lib/map/material/index.js +1 -1
- package/lib/map/material/index.js.map +1 -1
- package/lib/map/style/css.js.map +1 -1
- package/lib/map/style/index.js.map +1 -1
- package/lib/map/style/index.less +248 -248
- package/lib/marker/Marker.js +26 -24
- package/lib/marker/Marker.js.map +1 -1
- package/lib/marker/index.js +3 -3
- package/lib/marker/index.js.map +1 -1
- package/lib/marker/style/css.js.map +1 -1
- package/lib/marker/style/index.js.map +1 -1
- package/lib/model/Model.js +25 -23
- package/lib/model/Model.js.map +1 -1
- package/lib/model/index.js +8 -8
- package/lib/model/index.js.map +1 -1
- package/lib/model/style/css.js.map +1 -1
- package/lib/model/style/index.js.map +1 -1
- package/lib/navigation/index.js +7 -7
- package/lib/navigation/index.js.map +1 -1
- package/lib/navigation/style/css.js.map +1 -1
- package/lib/navigation/style/index.js.map +1 -1
- package/lib/navigation/style/index.less +176 -176
- package/lib/pipe-tiles-layer/PipeTilesLayer.js +20 -19
- package/lib/pipe-tiles-layer/PipeTilesLayer.js.map +1 -1
- package/lib/pipe-tiles-layer/index.js +6 -6
- package/lib/pipe-tiles-layer/index.js.map +1 -1
- package/lib/pipe-tiles-layer/style/css.js.map +1 -1
- package/lib/pipe-tiles-layer/style/index.js.map +1 -1
- package/lib/point/Point.js +25 -23
- package/lib/point/Point.js.map +1 -1
- package/lib/point/index.js +3 -3
- package/lib/point/index.js.map +1 -1
- package/lib/point/style/css.js.map +1 -1
- package/lib/point/style/index.js.map +1 -1
- package/lib/polygon/Polygon.js +25 -23
- package/lib/polygon/Polygon.js.map +1 -1
- package/lib/polygon/index.js +3 -3
- package/lib/polygon/index.js.map +1 -1
- package/lib/polygon/style/css.js.map +1 -1
- package/lib/polygon/style/index.js.map +1 -1
- package/lib/polyline/Polyline.js +25 -23
- package/lib/polyline/Polyline.js.map +1 -1
- package/lib/polyline/index.js +3 -3
- package/lib/polyline/index.js.map +1 -1
- package/lib/polyline/style/css.js.map +1 -1
- package/lib/polyline/style/index.js.map +1 -1
- package/lib/renderer/index.js +22 -21
- package/lib/renderer/index.js.map +1 -1
- package/lib/renderer/style/css.js.map +1 -1
- package/lib/renderer/style/index.js.map +1 -1
- package/lib/scene-roam/index.js +6 -6
- package/lib/scene-roam/index.js.map +1 -1
- package/lib/scene-roam/style/css.js.map +1 -1
- package/lib/scene-roam/style/index.js.map +1 -1
- package/lib/slider-scene/index.js +3 -3
- package/lib/slider-scene/index.js.map +1 -1
- package/lib/slider-scene/style/css.js.map +1 -1
- package/lib/slider-scene/style/index.js.map +1 -1
- package/lib/slider-scene/style/index.less +13 -13
- package/lib/split-screen/index.js +9 -9
- package/lib/split-screen/index.js.map +1 -1
- package/lib/split-screen/style/css.js.map +1 -1
- package/lib/split-screen/style/index.js.map +1 -1
- package/lib/style/index.less +2 -2
- package/lib/style/themes/compact.less +1 -1
- package/lib/style/themes/dark.less +9 -9
- package/lib/style/themes/default.less +7 -7
- package/lib/style/themes/index.less +1 -1
- package/lib/style/themes/variable.less +5 -5
- package/lib/three-line-layer/ThreeLineLayer.js +126 -58
- package/lib/three-line-layer/ThreeLineLayer.js.map +1 -1
- package/lib/three-line-layer/index.js +3 -3
- package/lib/three-line-layer/index.js.map +1 -1
- package/lib/three-line-layer/style/css.js.map +1 -1
- package/lib/three-line-layer/style/index.js.map +1 -1
- package/lib/tools/base-map-switch/index.js +10 -10
- package/lib/tools/base-map-switch/index.js.map +1 -1
- package/lib/tools/components/Icon/index.js +1 -1
- package/lib/tools/components/Icon/index.js.map +1 -1
- package/lib/tools/components/Icon/svg.js +1 -1
- package/lib/tools/components/Icon/svg.js.map +1 -1
- package/lib/tools/components/Modal/index.js +3 -3
- package/lib/tools/components/Modal/index.js.map +1 -1
- package/lib/tools/components/Modal/index.less +33 -33
- package/lib/tools/components/item-wrap/index.js +7 -7
- package/lib/tools/components/item-wrap/index.js.map +1 -1
- package/lib/tools/components/tool-Item/index.js +1 -1
- package/lib/tools/components/tool-Item/index.js.map +1 -1
- package/lib/tools/components/tool-Item/index.less +27 -27
- package/lib/tools/dimension-switch/index.js +7 -7
- package/lib/tools/dimension-switch/index.js.map +1 -1
- package/lib/tools/index.js +2 -2
- package/lib/tools/index.js.map +1 -1
- package/lib/tools/layer-control/index.js +13 -13
- package/lib/tools/layer-control/index.js.map +1 -1
- package/lib/tools/layer-control-popover/LayersCheckService.js +6 -5
- package/lib/tools/layer-control-popover/LayersCheckService.js.map +1 -1
- package/lib/tools/layer-control-popover/index.js +13 -13
- package/lib/tools/layer-control-popover/index.js.map +1 -1
- package/lib/tools/loading/index.js +7 -7
- package/lib/tools/loading/index.js.map +1 -1
- package/lib/tools/map-search/Select/index.js +12 -12
- package/lib/tools/map-search/Select/index.js.map +1 -1
- package/lib/tools/map-search/Select/style/css.js.map +1 -1
- package/lib/tools/map-search/Select/style/index.js.map +1 -1
- package/lib/tools/map-search/Select/style/index.less +47 -47
- package/lib/tools/map-search/index.js +13 -13
- package/lib/tools/map-search/index.js.map +1 -1
- package/lib/tools/style/css.js.map +1 -1
- package/lib/tools/style/index.css +4 -1
- package/lib/tools/style/index.js.map +1 -1
- package/lib/tools/style/index.less +309 -307
- package/lib/tools/tip/index.js +1 -1
- package/lib/tools/tip/index.js.map +1 -1
- package/lib/tools/tool-box/Measure/Area/index.js +2 -2
- package/lib/tools/tool-box/Measure/Area/index.js.map +1 -1
- package/lib/tools/tool-box/Measure/Distance/index.js +2 -2
- package/lib/tools/tool-box/Measure/Distance/index.js.map +1 -1
- package/lib/tools/tool-box/Measure/Height/index.js +2 -2
- package/lib/tools/tool-box/Measure/Height/index.js.map +1 -1
- package/lib/tools/tool-box/Measure/Measure.js +273 -167
- package/lib/tools/tool-box/Measure/Measure.js.map +1 -1
- package/lib/tools/tool-box/Measure/index.js +16 -14
- package/lib/tools/tool-box/Measure/index.js.map +1 -1
- package/lib/tools/tool-box/index.js +13 -9
- package/lib/tools/tool-box/index.js.map +1 -1
- package/lib/trail-polyline-layer/TrailPolylineLayer.js +18 -16
- package/lib/trail-polyline-layer/TrailPolylineLayer.js.map +1 -1
- package/lib/trail-polyline-layer/TrailPolylineMaterial.js +2 -2
- package/lib/trail-polyline-layer/TrailPolylineMaterial.js.map +1 -1
- package/lib/trail-polyline-layer/index.js +3 -3
- package/lib/trail-polyline-layer/index.js.map +1 -1
- package/lib/trail-polyline-layer/style/css.js.map +1 -1
- package/lib/trail-polyline-layer/style/index.js.map +1 -1
- package/lib/use-props/index.js.map +1 -1
- package/lib/use-props/style/css.js.map +1 -1
- package/lib/use-props/style/index.js.map +1 -1
- package/lib/wall/WallGeometry.js +20 -19
- package/lib/wall/WallGeometry.js.map +1 -1
- package/lib/wall/index.js +3 -3
- package/lib/wall/index.js.map +1 -1
- package/lib/wall/style/css.js.map +1 -1
- package/lib/wall/style/index.js.map +1 -1
- package/lib/water-surface-layer/WaterSurfaceLayer.js +28 -26
- package/lib/water-surface-layer/WaterSurfaceLayer.js.map +1 -1
- package/lib/water-surface-layer/index.js +6 -6
- package/lib/water-surface-layer/index.js.map +1 -1
- package/lib/water-surface-layer/style/css.js.map +1 -1
- package/lib/water-surface-layer/style/index.js.map +1 -1
- package/lib/weather/Weather.js +36 -35
- package/lib/weather/Weather.js.map +1 -1
- package/lib/weather/index.js +3 -3
- package/lib/weather/index.js.map +1 -1
- package/lib/weather/style/css.js.map +1 -1
- package/lib/weather/style/index.js.map +1 -1
- package/package.json +124 -124
- package/CHANGELOG.md +0 -124
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TrailPolylineLayer.js","names":["_cesium","require","_colors","_interopRequireDefault","_createFeatureCollection","_TrailPolylineMaterial","
|
|
1
|
+
{"version":3,"file":"TrailPolylineLayer.js","names":["_cesium","require","_colors","_interopRequireDefault","_createFeatureCollection","_TrailPolylineMaterial","obj","__esModule","_classCallCheck","instance","Constructor","TypeError","_defineProperties","target","props","i","length","descriptor","enumerable","configurable","writable","Object","defineProperty","_toPropertyKey","key","_createClass","protoProps","staticProps","prototype","arg","_toPrimitive","_typeof","String","input","hint","prim","Symbol","toPrimitive","undefined","res","call","Number","_inherits","subClass","superClass","create","constructor","value","_setPrototypeOf","o","p","setPrototypeOf","bind","__proto__","_createSuper","Derived","hasNativeReflectConstruct","_isNativeReflectConstruct","_createSuperInternal","Super","_getPrototypeOf","result","NewTarget","Reflect","construct","arguments","apply","_possibleConstructorReturn","self","_assertThisInitialized","ReferenceError","sham","Proxy","Boolean","valueOf","e","getPrototypeOf","TrailPolylineLayer","exports","_Primitive","_super","option","_this","data","_option$width","width","_option$speed","speed","_option$img","img","colors","id","name","labelField","template","instances","map","item","geometry","transformGeometry","geometryInfo","polyline","PolylineGeometry","positions","Cartesian3","fromDegreesArray","coordinates","flat","Infinity","vertexFormat","PolylineMaterialAppearance","VERTEX_FORMAT","GeometryInstance","values_","primitive","Primitive","geometryInstances","appearance","material","getTrailPolylineMaterial","show","asynchronous","getFeatureByFieldValue","field","getFeatures","find","v"],"sources":["trail-polyline-layer/TrailPolylineLayer.js"],"sourcesContent":["import {Primitive, PolylineGeometry, Cartesian3, PolylineMaterialAppearance, GeometryInstance} from 'cesium';\r\nimport colors from '../assets/colors1.png';\r\nimport { transformGeometry } from '../feature-layer/createFeatureCollection';\r\nimport { getTrailPolylineMaterial } from './TrailPolylineMaterial';\r\n\r\nexport default class TrailPolylineLayer extends Primitive {\r\n constructor(option) {\r\n const {\r\n data,\r\n width = 5,\r\n speed = 5,\r\n img = colors,\r\n id: key,\r\n name,\r\n labelField,\r\n template,\r\n } = option;\r\n\r\n const instances = data.map(item => {\r\n const geometry = transformGeometry(item.geometryInfo);\r\n const polyline = new PolylineGeometry({\r\n positions: Cartesian3.fromDegreesArray(geometry.coordinates.flat(Infinity)),\r\n width,\r\n vertexFormat: PolylineMaterialAppearance.VERTEX_FORMAT,\r\n });\r\n return new GeometryInstance({\r\n geometry: polyline,\r\n values_: item,\r\n id: item.id,\r\n });\r\n });\r\n\r\n const primitive = new Primitive({\r\n geometryInstances: instances,\r\n appearance: new PolylineMaterialAppearance({\r\n material: getTrailPolylineMaterial(img, speed),\r\n }),\r\n show: true,\r\n asynchronous: false,\r\n });\r\n\r\n super(primitive);\r\n\r\n // 图层标识\r\n this.key = key;\r\n\r\n // 图层名称\r\n this.name = name;\r\n\r\n // 标签字段\r\n this.labelField = labelField;\r\n\r\n // 模版内容\r\n this.template = template;\r\n\r\n this.data = data;\r\n }\r\n\r\n // 根据条件获取图形数据\r\n getFeatureByFieldValue(field, value) {\r\n return this.getFeatures().find(v => v[field] === value);\r\n }\r\n\r\n // 获取图形\r\n getFeatures() {\r\n return this.data\r\n }\r\n}\r\n"],"mappings":";;;;;;;AAAA,IAAAA,OAAA,GAAAC,OAAA;AACA,IAAAC,OAAA,GAAAC,sBAAA,CAAAF,OAAA;AACA,IAAAG,wBAAA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CAAC6E,WAAW,CAAC,CAAC,CAACC,IAAI,CAAC,UAAAC,CAAC;QAAA,OAAIA,CAAC,CAACH,KAAK,CAAC,KAAK5E,KAAK;MAAA,EAAC;IAC3D;;IAEA;EAAA;IAAAvB,GAAA;IAAAuB,KAAA,EACA,SAAA6E,YAAA,EAAc;MACV,OAAO,IAAI,CAACzC,IAAI;IACpB;EAAC;EAAA,OAAAN,kBAAA;AAAA,EA7D2CsC,iBAAS"}
|
|
@@ -6,8 +6,8 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
});
|
|
7
7
|
exports.getTrailPolylineMaterial = void 0;
|
|
8
8
|
var Cesium = _interopRequireWildcard(require("cesium"));
|
|
9
|
-
function _getRequireWildcardCache(
|
|
10
|
-
function _interopRequireWildcard(
|
|
9
|
+
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
10
|
+
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
11
11
|
var glsl = "\n czm_material czm_getMaterial(czm_materialInput materialInput) {\n czm_material material = czm_getDefaultMaterial(materialInput);\n vec2 st = materialInput.st;\n vec4 colorImage = texture2D(image, vec2(fract((st.s - speed * czm_frameNumber * 0.001)), st.t));\n material.alpha = colorImage.a;\n material.diffuse = colorImage.rgb;\n return material;\n }";
|
|
12
12
|
var getTrailPolylineMaterial = exports.getTrailPolylineMaterial = function getTrailPolylineMaterial(image) {
|
|
13
13
|
var speed = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 10;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TrailPolylineMaterial.js","names":["Cesium","_interopRequireWildcard","require","_getRequireWildcardCache","
|
|
1
|
+
{"version":3,"file":"TrailPolylineMaterial.js","names":["Cesium","_interopRequireWildcard","require","_getRequireWildcardCache","nodeInterop","WeakMap","cacheBabelInterop","cacheNodeInterop","obj","__esModule","_typeof","cache","has","get","newObj","hasPropertyDescriptor","Object","defineProperty","getOwnPropertyDescriptor","key","prototype","hasOwnProperty","call","desc","set","glsl","getTrailPolylineMaterial","exports","image","speed","arguments","length","undefined","Material","strict","fabric","uniforms","source","translucent","minificationFilter","TextureMinificationFilter","LINEAR","magnificationFilter","TextureMagnificationFilter"],"sources":["trail-polyline-layer/TrailPolylineMaterial.js"],"sourcesContent":["import * as Cesium from 'cesium';\r\n\r\nconst glsl = `\r\n czm_material czm_getMaterial(czm_materialInput materialInput) {\r\n czm_material material = czm_getDefaultMaterial(materialInput);\r\n vec2 st = materialInput.st;\r\n vec4 colorImage = texture2D(image, vec2(fract((st.s - speed * czm_frameNumber * 0.001)), st.t));\r\n material.alpha = colorImage.a;\r\n material.diffuse = colorImage.rgb;\r\n return material;\r\n }`;\r\n\r\nexport const getTrailPolylineMaterial = (image, speed = 10) => {\r\n return new Cesium.Material({\r\n strict: false,\r\n fabric: {\r\n uniforms: { image, speed },\r\n source: glsl,\r\n },\r\n translucent: function() {\r\n return true;\r\n },\r\n minificationFilter: Cesium.TextureMinificationFilter.LINEAR,\r\n magnificationFilter: Cesium.TextureMagnificationFilter.LINEAR,\r\n });\r\n};\r\n"],"mappings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BA,CAAIE,KAAK,EAAiB;EAAA,IAAfC,KAAK,GAAAC,SAAA,CAAAC,MAAA,QAAAD,SAAA,QAAAE,SAAA,GAAAF,SAAA,MAAG,EAAE;EACtD,OAAO,IAAI9B,MAAM,CAACiC,QAAQ,CAAC;IACvBC,MAAM,EAAE,KAAK;IACbC,MAAM,EAAE;MACJC,QAAQ,EAAE;QAAER,KAAK,EAALA,KAAK;QAAEC,KAAK,EAALA;MAAM,CAAC;MAC1BQ,MAAM,EAAEZ;IACZ,CAAC;IACDa,WAAW,EAAE,SAAAA,YAAA,EAAW;MACpB,OAAO,IAAI;IACf,CAAC;IACDC,kBAAkB,EAAEvC,MAAM,CAACwC,yBAAyB,CAACC,MAAM;IAC3DC,mBAAmB,EAAE1C,MAAM,CAAC2C,0BAA0B,CAACF;EAC3D,CAAC,CAAC;AACN,CAAC"}
|
|
@@ -9,9 +9,9 @@ var _react = _interopRequireWildcard(require("react"));
|
|
|
9
9
|
var _useProps2 = _interopRequireDefault(require("../_util/useProps"));
|
|
10
10
|
var _events = require("../events");
|
|
11
11
|
var _TrailPolylineLayer = _interopRequireDefault(require("./TrailPolylineLayer"));
|
|
12
|
-
function _interopRequireDefault(
|
|
13
|
-
function _getRequireWildcardCache(
|
|
14
|
-
function _interopRequireWildcard(
|
|
12
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
13
|
+
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
14
|
+
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
15
15
|
function _default(props) {
|
|
16
16
|
var _useProps = (0, _useProps2["default"])(),
|
|
17
17
|
map = _useProps.map;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["_react","_interopRequireWildcard","require","_useProps2","_interopRequireDefault","_events","_TrailPolylineLayer","
|
|
1
|
+
{"version":3,"file":"index.js","names":["_react","_interopRequireWildcard","require","_useProps2","_interopRequireDefault","_events","_TrailPolylineLayer","obj","__esModule","_getRequireWildcardCache","nodeInterop","WeakMap","cacheBabelInterop","cacheNodeInterop","_typeof","cache","has","get","newObj","hasPropertyDescriptor","Object","defineProperty","getOwnPropertyDescriptor","key","prototype","hasOwnProperty","call","desc","set","_default","props","_useProps","useProps","map","useEffect","primitive","TrailPolylineLayer","registerEventLayer","scene","primitives","add","remove","createElement","Fragment"],"sources":["trail-polyline-layer/index.jsx"],"sourcesContent":["import React, { useEffect } from 'react';\r\nimport useProps from '../_util/useProps';\r\nimport { registerEventLayer } from '../events';\r\nimport TrailPolylineLayer from './TrailPolylineLayer';\r\n\r\nexport default function(props) {\r\n const { map } = useProps();\r\n\r\n useEffect(() => {\r\n const primitive = new TrailPolylineLayer(props);\r\n registerEventLayer(primitive, props);\r\n map.scene.primitives.add(primitive);\r\n return () => {\r\n map.scene.primitives.remove(primitive);\r\n };\r\n }, []);\r\n\r\n return <></>;\r\n}\r\n"],"mappings":";;;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,UAAA,GAAAC,sBAAA,CAAAF,OAA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AA,EAAAW,MAAA,YAAAA,MAAA;AAEvC,SAAAW,SAASC,KAAK,EAAE;EAC3B,IAAAC,SAAA,GAAgB,IAAAC,qBAAQ,EAAC,CAAC;IAAlBC,GAAG,GAAAF,SAAA,CAAHE,GAAG;EAEX,IAAAC,gBAAS,EAAC,YAAM;IACZ,IAAMC,SAAS,GAAG,IAAIC,8BAAkB,CAACN,KAAK,CAAC;IAC/C,IAAAO,0BAAkB,EAACF,SAAS,EAAEL,KAAK,CAAC;IACpCG,GAAG,CAACK,KAAK,CAACC,UAAU,CAACC,GAAG,CAACL,SAAS,CAAC;IACnC,OAAO,YAAM;MACTF,GAAG,CAACK,KAAK,CAACC,UAAU,CAACE,MAAM,CAACN,SAAS,CAAC;IAC1C,CAAC;EACL,CAAC,EAAE,EAAE,CAAC;EAEN,oBAAOnC,MAAA,YAAA0C,aAAA,CAAA1C,MAAA,YAAA2C,QAAA,MAAI,CAAC;AAChB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"css.js","names":["require"],"sources":["trail-polyline-layer/style/index.js"],"sourcesContent":["import './index.less';\n"],"mappings":";;AAAAA,OAAA"
|
|
1
|
+
{"version":3,"file":"css.js","names":["require"],"sources":["trail-polyline-layer/style/index.js"],"sourcesContent":["import './index.less';\r\n"],"mappings":";;AAAAA,OAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["require"],"sources":["trail-polyline-layer/style/index.js"],"sourcesContent":["import './index.less';\n"],"mappings":";;AAAAA,OAAA"
|
|
1
|
+
{"version":3,"file":"index.js","names":["require"],"sources":["trail-polyline-layer/style/index.js"],"sourcesContent":["import './index.less';\r\n"],"mappings":";;AAAAA,OAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["_react","require","_Provider","useProps","params","useContext","Context","_default","exports"],"sources":["use-props/index.js"],"sourcesContent":["import { useContext } from 'react';\nimport { Context } from '../_util/Provider';\n\nconst useProps = () => {\n const params = useContext(Context);\n return params;\n};\n\nexport default useProps;\n"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AACA,IAAAC,SAAA,GAAAD,OAAA;AAEA,IAAME,QAAQ,GAAG,SAAXA,QAAQA,CAAA,EAAS;EACnB,IAAMC,MAAM,GAAG,IAAAC,iBAAU,EAACC,iBAAO,CAAC;EAClC,OAAOF,MAAM;AACjB,CAAC;AAAC,IAAAG,QAAA,GAAAC,OAAA,cAEaL,QAAQ"
|
|
1
|
+
{"version":3,"file":"index.js","names":["_react","require","_Provider","useProps","params","useContext","Context","_default","exports"],"sources":["use-props/index.js"],"sourcesContent":["import { useContext } from 'react';\r\nimport { Context } from '../_util/Provider';\r\n\r\nconst useProps = () => {\r\n const params = useContext(Context);\r\n return params;\r\n};\r\n\r\nexport default useProps;\r\n"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AACA,IAAAC,SAAA,GAAAD,OAAA;AAEA,IAAME,QAAQ,GAAG,SAAXA,QAAQA,CAAA,EAAS;EACnB,IAAMC,MAAM,GAAG,IAAAC,iBAAU,EAACC,iBAAO,CAAC;EAClC,OAAOF,MAAM;AACjB,CAAC;AAAC,IAAAG,QAAA,GAAAC,OAAA,cAEaL,QAAQ"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"css.js","names":[],"sources":["use-props/style/index.js"],"sourcesContent":[""],"mappings":""
|
|
1
|
+
{"version":3,"file":"css.js","names":[],"sources":["use-props/style/index.js"],"sourcesContent":[""],"mappings":""}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":[],"sources":["use-props/style/index.js"],"sourcesContent":[""],"mappings":""
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["use-props/style/index.js"],"sourcesContent":[""],"mappings":""}
|
package/lib/wall/WallGeometry.js
CHANGED
|
@@ -7,25 +7,27 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
exports["default"] = void 0;
|
|
8
8
|
var _cesium = require("cesium");
|
|
9
9
|
var _renderer = require("../renderer");
|
|
10
|
-
function _toConsumableArray(
|
|
10
|
+
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
|
|
11
11
|
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
12
|
-
function _unsupportedIterableToArray(
|
|
13
|
-
function _iterableToArray(
|
|
14
|
-
function _arrayWithoutHoles(
|
|
15
|
-
function _arrayLikeToArray(
|
|
16
|
-
function _defineProperties(
|
|
17
|
-
function _createClass(
|
|
18
|
-
function _toPropertyKey(
|
|
19
|
-
function _toPrimitive(
|
|
20
|
-
function _classCallCheck(
|
|
21
|
-
function
|
|
22
|
-
function
|
|
23
|
-
function
|
|
24
|
-
function
|
|
25
|
-
function
|
|
26
|
-
function
|
|
27
|
-
function
|
|
12
|
+
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
13
|
+
function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
|
|
14
|
+
function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
|
|
15
|
+
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
16
|
+
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
|
|
17
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
18
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
19
|
+
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
20
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
21
|
+
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
22
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
23
|
+
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
24
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
|
|
25
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
26
|
+
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
27
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
28
28
|
var Wall = exports["default"] = /*#__PURE__*/function (_Primitive) {
|
|
29
|
+
_inherits(Wall, _Primitive);
|
|
30
|
+
var _super = _createSuper(Wall);
|
|
29
31
|
function Wall(option) {
|
|
30
32
|
var _ref, _ref2;
|
|
31
33
|
var _this;
|
|
@@ -61,13 +63,12 @@ var Wall = exports["default"] = /*#__PURE__*/function (_Primitive) {
|
|
|
61
63
|
geometryInstances: [instance],
|
|
62
64
|
appearance: new _cesium.PerInstanceColorAppearance()
|
|
63
65
|
});
|
|
64
|
-
_this =
|
|
66
|
+
_this = _super.call(this, primitive);
|
|
65
67
|
// 图层标识
|
|
66
68
|
_this.key = key;
|
|
67
69
|
_this.data = data;
|
|
68
70
|
return _this;
|
|
69
71
|
}
|
|
70
|
-
_inherits(Wall, _Primitive);
|
|
71
72
|
return _createClass(Wall);
|
|
72
73
|
}(_cesium.Primitive);
|
|
73
74
|
//# sourceMappingURL=WallGeometry.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WallGeometry.js","names":["_cesium","require","_renderer","_toConsumableArray","
|
|
1
|
+
{"version":3,"file":"WallGeometry.js","names":["_cesium","require","_renderer","_toConsumableArray","arr","_arrayWithoutHoles","_iterableToArray","_unsupportedIterableToArray","_nonIterableSpread","TypeError","o","minLen","_arrayLikeToArray","n","Object","prototype","toString","call","slice","constructor","name","Array","from","test","iter","Symbol","iterator","isArray","len","length","i","arr2","_defineProperties","target","props","descriptor","enumerable","configurable","writable","defineProperty","_toPropertyKey","key","_createClass","Constructor","protoProps","staticProps","arg","_toPrimitive","_typeof","String","input","hint","prim","toPrimitive","undefined","res","Number","_classCallCheck","instance","_inherits","subClass","superClass","create","value","_setPrototypeOf","p","setPrototypeOf","bind","__proto__","_createSuper","Derived","hasNativeReflectConstruct","_isNativeReflectConstruct","_createSuperInternal","Super","_getPrototypeOf","result","NewTarget","Reflect","construct","arguments","apply","_possibleConstructorReturn","self","_assertThisInitialized","ReferenceError","sham","Proxy","Boolean","valueOf","e","getPrototypeOf","Wall","exports","_Primitive","_super","option","_ref","_ref2","_this","data","_option$style","style","extrudedHeight","fill","color","opacity","minHeight","maxHeight","wall","WallGeometry","positions","Cartesian3","fromDegreesArray","concat","flat","Infinity","maximumHeights","map","item","height","minimumHeights","GeometryInstance","geometry","attributes","ColorGeometryInstanceAttribute","fromColor","getColor","primitive","Primitive","geometryInstances","appearance","PerInstanceColorAppearance"],"sources":["wall/WallGeometry.js"],"sourcesContent":["import {\r\n WallGeometry,\r\n PerInstanceColorAppearance,\r\n Cartesian3,\r\n ColorGeometryInstanceAttribute,\r\n GeometryInstance,\r\n Primitive,\r\n} from 'cesium';\r\nimport { getColor } from '../renderer';\r\n\r\nexport default class Wall extends Primitive {\r\n constructor(option) {\r\n const {\r\n data,\r\n style = { extrudedHeight: 1000, fill: { color: '#119FFB', opacity: 0.4 } },\r\n key,\r\n minHeight,\r\n maxHeight\r\n } = option;\r\n let wall = new WallGeometry({\r\n positions: Cartesian3.fromDegreesArray([...data[0], data[0][0]].flat(Infinity)),\r\n maximumHeights: [...data[0], data[0][0]]?.map(item => maxHeight || style.height),\r\n minimumHeights: [...data[0], data[0][0]]?.map(item => minHeight || 0),\r\n });\r\n const instance = new GeometryInstance({\r\n geometry: wall,\r\n attributes: {\r\n color: ColorGeometryInstanceAttribute.fromColor(getColor(style.fill)),\r\n },\r\n });\r\n\r\n const primitive = new Primitive({\r\n geometryInstances: [instance],\r\n appearance: new PerInstanceColorAppearance(),\r\n });\r\n\r\n super(primitive);\r\n // 图层标识\r\n this.key = key;\r\n\r\n this.data = data;\r\n }\r\n}\r\n"],"mappings":";;;;;;;AAAA,IAAAA,OAAA,GAAAC,OAAA;AAQA,IAAAC,SAAA,GAAAD,OAAA;AAAuC,SAAAE,mBAAAC,GAAA,WAAAC,kBAAA,CAAAD,GAAA,KAAAE,gBAAA,CAAAF,GAAA,KAAAG,2BAAA,CAAAH,GAAA,KAAAI,kBAAA;AAAA,SAAAA,mBAAA,cAAAC,SAAA;AAAA,SAAAF,4BAAAG,CAAA,EAAAC,MAAA,SAAAD,CAAA,qBAAAA,CAAA,sBAAAE,iBAAA,CAAAF,CAAA,EAAAC,MAAA,OAAAE,CAAA,GAAAC,MAAA,CAAAC,SAAA,CAAAC,QAAA,CAAAC,IAAA,CAAAP,CAAA,EAAAQ,KAAA,aAAAL,CAAA,iBAAAH,CAAA,CAAAS,WAAA,EAAAN,CAAA,GAAAH,CAAA,CAAAS,WAAA,CAAAC,IAAA,MAAAP,CAAA,cAAAA,CAAA,mBAAAQ,KAAA,CAAAC,IAAA,CAAAZ,CAAA,OAAAG,CAAA,+DAAAU,IAAA,CAAAV,CAAA,UAAAD,iBAAA,CAAAF,CAAA,EAAAC,MAAA;AAAA,SAAAL,iBAAAkB,IAAA,eAAAC,MAAA,oBAAAD,IAAA,CAAAC,MAAA,CAAAC,QAAA,aAAAF,IAAA,+BAAAH,KAAA,CAAAC,IAAA,CAAAE,IAAA;AAAA,SAAAnB,mBAAAD,GAAA,QAAAiB,KAAA,CAAAM,OAAA,CAAAvB,GAAA,UAAAQ,iBAAA,CAAAR,GAAA;AAAA,SAAAQ,kBAAAR,GAAA,EAAAwB,GAAA,QAAAA,GAAA,YAAAA,GAAA,GAAAxB,GAAA,CAAAyB,MAAA,EAA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AAKC,IAAI,GAAGA,IAAI;IAAC,OAAAD,KAAA;EACrB;EAAC,OAAAzD,YAAA,CAAAkD,IAAA;AAAA,EA/B6BqC,iBAAS"}
|
package/lib/wall/index.js
CHANGED
|
@@ -9,9 +9,9 @@ var _react = _interopRequireWildcard(require("react"));
|
|
|
9
9
|
var _useProps2 = _interopRequireDefault(require("../_util/useProps"));
|
|
10
10
|
var _events = require("../events");
|
|
11
11
|
var _WallGeometry = _interopRequireDefault(require("./WallGeometry"));
|
|
12
|
-
function _interopRequireDefault(
|
|
13
|
-
function _getRequireWildcardCache(
|
|
14
|
-
function _interopRequireWildcard(
|
|
12
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
13
|
+
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
14
|
+
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
15
15
|
function _default(props) {
|
|
16
16
|
var _useProps = (0, _useProps2["default"])(),
|
|
17
17
|
map = _useProps.map;
|
package/lib/wall/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["_react","_interopRequireWildcard","require","_useProps2","_interopRequireDefault","_events","_WallGeometry","
|
|
1
|
+
{"version":3,"file":"index.js","names":["_react","_interopRequireWildcard","require","_useProps2","_interopRequireDefault","_events","_WallGeometry","obj","__esModule","_getRequireWildcardCache","nodeInterop","WeakMap","cacheBabelInterop","cacheNodeInterop","_typeof","cache","has","get","newObj","hasPropertyDescriptor","Object","defineProperty","getOwnPropertyDescriptor","key","prototype","hasOwnProperty","call","desc","set","_default","props","_useProps","useProps","map","useEffect","primitive","WallGeometry","registerEventLayer","scene","primitives","add","remove","createElement","Fragment"],"sources":["wall/index.jsx"],"sourcesContent":["import React, { useEffect } from 'react';\r\nimport useProps from '../_util/useProps';\r\nimport { registerEventLayer } from '../events';\r\nimport WallGeometry from './WallGeometry';\r\n\r\nexport default function(props) {\r\n const { map } = useProps();\r\n\r\n useEffect(() => {\r\n const primitive = new WallGeometry(props);\r\n registerEventLayer(primitive, props);\r\n map.scene.primitives.add(primitive);\r\n return () => {\r\n map.scene.primitives.remove(primitive);\r\n };\r\n }, []);\r\n\r\n return <></>;\r\n}\r\n"],"mappings":";;;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,UAAA,GAAAC,sBAAA,CAAAF,OAAA;AACA,IAAAG,OAAA,GAAAH,OAAA;AACA,IAAAI,aAAA,GAAAF,sBAAA,CAAAF,OAAA;AAA0C,SAAAE,uBAAAG,GAAA,WAAAA,GAAA,IAAAA,GAAA,CAAAC,UAAA,GAAAD,GAAA,gBAAAA,GAAA;AAAA,SAAAE,yBAAAC,WAAA,eAAAC,OAAA,kCAAAC,iBAAA,OAAAD,OAAA,QAAAE,gBAAA,OAAAF,OAAA,YAAAF,wBAAA,YAAAA,yBAAAC,WAAA,WAAAA,WAAA,GAAAG,gBAAA,GAAAD,iBAAA,KAAAF,WAAA;AAAA,SAAAT,wBAAAM,GAAA,EAAAG,WAAA,SAAAA,WAAA,IA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,CAACE,MAAM,CAACN,SAAS,CAAC;IAC1C,CAAC;EACL,CAAC,EAAE,EAAE,CAAC;EAEN,oBAAOnC,MAAA,YAAA0C,aAAA,CAAA1C,MAAA,YAAA2C,QAAA,MAAI,CAAC;AAChB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"css.js","names":["require"],"sources":["wall/style/index.js"],"sourcesContent":["import './index.less';\n"],"mappings":";;AAAAA,OAAA"
|
|
1
|
+
{"version":3,"file":"css.js","names":["require"],"sources":["wall/style/index.js"],"sourcesContent":["import './index.less';\r\n"],"mappings":";;AAAAA,OAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["require"],"sources":["wall/style/index.js"],"sourcesContent":["import './index.less';\n"],"mappings":";;AAAAA,OAAA"
|
|
1
|
+
{"version":3,"file":"index.js","names":["require"],"sources":["wall/style/index.js"],"sourcesContent":["import './index.less';\r\n"],"mappings":";;AAAAA,OAAA"}
|
|
@@ -10,31 +10,33 @@ var _water = _interopRequireDefault(require("../assets/water.png"));
|
|
|
10
10
|
var _createFeatureCollection = require("../feature-layer/createFeatureCollection");
|
|
11
11
|
var _transformRgb = _interopRequireDefault(require("../_util/transformRgb"));
|
|
12
12
|
var _excluded = ["color", "opacity"];
|
|
13
|
-
function _interopRequireDefault(
|
|
13
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
14
14
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
15
15
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
16
|
-
function _objectWithoutProperties(
|
|
17
|
-
function _objectWithoutPropertiesLoose(
|
|
18
|
-
function _classCallCheck(
|
|
19
|
-
function _defineProperties(
|
|
20
|
-
function _createClass(
|
|
21
|
-
function
|
|
22
|
-
function
|
|
23
|
-
function
|
|
24
|
-
function
|
|
25
|
-
function
|
|
26
|
-
function
|
|
27
|
-
function
|
|
28
|
-
function set(
|
|
29
|
-
function _set(
|
|
30
|
-
function _defineProperty(
|
|
31
|
-
function _toPropertyKey(
|
|
32
|
-
function _toPrimitive(
|
|
33
|
-
function _superPropBase(
|
|
34
|
-
function _getPrototypeOf(
|
|
16
|
+
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
17
|
+
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
18
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
19
|
+
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
|
|
20
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
21
|
+
function _get() { if (typeof Reflect !== "undefined" && Reflect.get) { _get = Reflect.get.bind(); } else { _get = function _get(target, property, receiver) { var base = _superPropBase(target, property); if (!base) return; var desc = Object.getOwnPropertyDescriptor(base, property); if (desc.get) { return desc.get.call(arguments.length < 3 ? target : receiver); } return desc.value; }; } return _get.apply(this, arguments); }
|
|
22
|
+
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
23
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
24
|
+
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
25
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
|
|
26
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
27
|
+
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
28
|
+
function set(target, property, value, receiver) { if (typeof Reflect !== "undefined" && Reflect.set) { set = Reflect.set; } else { set = function set(target, property, value, receiver) { var base = _superPropBase(target, property); var desc; if (base) { desc = Object.getOwnPropertyDescriptor(base, property); if (desc.set) { desc.set.call(receiver, value); return true; } else if (!desc.writable) { return false; } } desc = Object.getOwnPropertyDescriptor(receiver, property); if (desc) { if (!desc.writable) { return false; } desc.value = value; Object.defineProperty(receiver, property, desc); } else { _defineProperty(receiver, property, value); } return true; }; } return set(target, property, value, receiver); }
|
|
29
|
+
function _set(target, property, value, receiver, isStrict) { var s = set(target, property, value, receiver || target); if (!s && isStrict) { throw new TypeError('failed to set property'); } return value; }
|
|
30
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
31
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
32
|
+
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
33
|
+
function _superPropBase(object, property) { while (!Object.prototype.hasOwnProperty.call(object, property)) { object = _getPrototypeOf(object); if (object === null) break; } return object; }
|
|
34
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
35
35
|
var WaterSurfaceLayer = exports["default"] = /*#__PURE__*/function (_Primitive) {
|
|
36
|
+
_inherits(WaterSurfaceLayer, _Primitive);
|
|
37
|
+
var _super = _createSuper(WaterSurfaceLayer);
|
|
36
38
|
function WaterSurfaceLayer(option) {
|
|
37
|
-
var _this;
|
|
39
|
+
var _thisSuper, _this;
|
|
38
40
|
_classCallCheck(this, WaterSurfaceLayer);
|
|
39
41
|
var data = option.data,
|
|
40
42
|
img = option.img,
|
|
@@ -70,7 +72,7 @@ var WaterSurfaceLayer = exports["default"] = /*#__PURE__*/function (_Primitive)
|
|
|
70
72
|
color = _ref.color,
|
|
71
73
|
opacity = _ref.opacity,
|
|
72
74
|
otherStyle = _objectWithoutProperties(_ref, _excluded);
|
|
73
|
-
_this =
|
|
75
|
+
_this = _super.call(this, {
|
|
74
76
|
geometryInstances: instances,
|
|
75
77
|
appearance: new _cesium.EllipsoidSurfaceAppearance({
|
|
76
78
|
material: new _cesium.Material({
|
|
@@ -90,8 +92,8 @@ var WaterSurfaceLayer = exports["default"] = /*#__PURE__*/function (_Primitive)
|
|
|
90
92
|
}
|
|
91
93
|
})
|
|
92
94
|
})
|
|
93
|
-
}
|
|
94
|
-
_set((_this, _getPrototypeOf(WaterSurfaceLayer.prototype)), "show", show,
|
|
95
|
+
});
|
|
96
|
+
_set((_thisSuper = _assertThisInitialized(_this), _getPrototypeOf(WaterSurfaceLayer.prototype)), "show", show, _thisSuper, true);
|
|
95
97
|
|
|
96
98
|
// 图层标识
|
|
97
99
|
_this.key = key;
|
|
@@ -117,8 +119,7 @@ var WaterSurfaceLayer = exports["default"] = /*#__PURE__*/function (_Primitive)
|
|
|
117
119
|
}
|
|
118
120
|
|
|
119
121
|
// 重写父类的属性访问器
|
|
120
|
-
|
|
121
|
-
return _createClass(WaterSurfaceLayer, [{
|
|
122
|
+
_createClass(WaterSurfaceLayer, [{
|
|
122
123
|
key: "show",
|
|
123
124
|
get: function get() {
|
|
124
125
|
console.log("super.show:", _get(_getPrototypeOf(WaterSurfaceLayer.prototype), "show", this));
|
|
@@ -147,5 +148,6 @@ var WaterSurfaceLayer = exports["default"] = /*#__PURE__*/function (_Primitive)
|
|
|
147
148
|
return this.map;
|
|
148
149
|
}
|
|
149
150
|
}]);
|
|
151
|
+
return WaterSurfaceLayer;
|
|
150
152
|
}(_cesium.Primitive);
|
|
151
153
|
//# sourceMappingURL=WaterSurfaceLayer.js.map
|