@vtx/ol-map 1.0.145 → 1.0.146
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 +205 -205
- package/lib/_util/EventEmitter.js +13 -11
- package/lib/_util/EventEmitter.js.map +1 -1
- package/lib/_util/StyleCache.js +10 -8
- package/lib/_util/StyleCache.js.map +1 -1
- package/lib/_util/encryptParams.js +22 -17
- 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/getComponentProps.js +1 -1
- package/lib/_util/getComponentProps.js.map +1 -1
- package/lib/_util/getCookie.js +6 -5
- package/lib/_util/getCookie.js.map +1 -1
- package/lib/_util/getDefaultMapInfo.js +8 -7
- package/lib/_util/getDefaultMapInfo.js.map +1 -1
- package/lib/_util/getSystemInfo.js +8 -7
- package/lib/_util/getSystemInfo.js.map +1 -1
- package/lib/_util/getToken.js +4 -2
- package/lib/_util/getToken.js.map +1 -1
- package/lib/_util/getUrlParam.js +3 -2
- package/lib/_util/getUrlParam.js.map +1 -1
- package/lib/_util/http.js +32 -30
- 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 +37 -33
- package/lib/_util/layer.js.map +1 -1
- package/lib/_util/mapTool.js +37 -36
- package/lib/_util/mapTool.js.map +1 -1
- package/lib/_util/projzh/datum/bd-09.js +3 -2
- package/lib/_util/projzh/datum/bd-09.js.map +1 -1
- package/lib/_util/projzh/datum/gcj-02.js +2 -1
- package/lib/_util/projzh/datum/gcj-02.js.map +1 -1
- package/lib/_util/projzh/datum/index.js +3 -2
- package/lib/_util/projzh/datum/index.js.map +1 -1
- package/lib/_util/projzh/index.js +3 -2
- package/lib/_util/projzh/index.js.map +1 -1
- package/lib/_util/projzh/projection/baidu-mercator.js +2 -1
- package/lib/_util/projzh/projection/baidu-mercator.js.map +1 -1
- package/lib/_util/projzh/projection/index.js +3 -2
- package/lib/_util/projzh/projection/index.js.map +1 -1
- package/lib/_util/projzh/projection/spherical-mercator.js +2 -1
- package/lib/_util/projzh/projection/spherical-mercator.js.map +1 -1
- package/lib/_util/projzh/util.js +2 -1
- package/lib/_util/projzh/util.js.map +1 -1
- package/lib/_util/search.js +16 -13
- package/lib/_util/search.js.map +1 -1
- package/lib/_util/setCookie.js +6 -5
- package/lib/_util/setCookie.js.map +1 -1
- package/lib/_util/stringToFun.js +5 -5
- package/lib/_util/stringToFun.js.map +1 -1
- package/lib/_util/transform.js +10 -9
- package/lib/_util/transform.js.map +1 -1
- package/lib/_util/useColSize.js +3 -2
- package/lib/_util/useColSize.js.map +1 -1
- package/lib/_util/useInterval.js.map +1 -1
- package/lib/_util/useSet.js +13 -12
- package/lib/_util/useSet.js.map +1 -1
- package/lib/analysis-layer/index.js +50 -44
- package/lib/analysis-layer/index.js.map +1 -1
- package/lib/analysis-layer/style/css.js.map +1 -1
- package/lib/analysis-layer/style/index.js.map +1 -1
- package/lib/buffer-draw/BufferDraw.js +13 -11
- package/lib/buffer-draw/BufferDraw.js.map +1 -1
- package/lib/buffer-draw/index.js +10 -9
- package/lib/buffer-draw/index.js.map +1 -1
- package/lib/buffer-draw/style/css.js.map +1 -1
- package/lib/buffer-draw/style/index.js.map +1 -1
- package/lib/circle/Circle.js +24 -22
- package/lib/circle/Circle.js.map +1 -1
- package/lib/circle/index.js +4 -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/config.js +2 -1
- package/lib/config.js.map +1 -1
- package/lib/convertCamelToCSS.js +2 -1
- package/lib/convertCamelToCSS.js.map +1 -1
- package/lib/dom/Dom.js +21 -19
- package/lib/dom/Dom.js.map +1 -1
- package/lib/dom/index.js +11 -10
- 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 +4 -2
- package/lib/events/index.js.map +1 -1
- package/lib/feature-draw/FeatureDraw.js +46 -40
- package/lib/feature-draw/FeatureDraw.js.map +1 -1
- package/lib/feature-draw/index.js +11 -11
- package/lib/feature-draw/index.js.map +1 -1
- package/lib/feature-draw/style/css.js.map +1 -1
- package/lib/feature-draw/style/index.js.map +1 -1
- package/lib/feature-layer/FeatureLayer.js +65 -64
- package/lib/feature-layer/FeatureLayer.js.map +1 -1
- package/lib/feature-layer/MyCluster.js +31 -28
- package/lib/feature-layer/MyCluster.js.map +1 -1
- package/lib/feature-layer/createFeatureCollection.js +47 -39
- package/lib/feature-layer/createFeatureCollection.js.map +1 -1
- package/lib/feature-layer/index.js +16 -15
- 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/flow-line-layer/FlowLineLayer.js +25 -22
- package/lib/flow-line-layer/FlowLineLayer.js.map +1 -1
- package/lib/flow-line-layer/index.js +16 -15
- package/lib/flow-line-layer/index.js.map +1 -1
- package/lib/flow-line-layer/style/css.js.map +1 -1
- package/lib/flow-line-layer/style/index.js.map +1 -1
- package/lib/fly-line-layer/FlyLineLayer.js +15 -12
- package/lib/fly-line-layer/FlyLineLayer.js.map +1 -1
- package/lib/fly-line-layer/index.js +10 -8
- 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/group-layer/GroupLayer.js +13 -11
- package/lib/group-layer/GroupLayer.js.map +1 -1
- package/lib/group-layer/index.js +9 -8
- 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/HeatmapLayer.js +30 -29
- package/lib/heatmap-layer/HeatmapLayer.js.map +1 -1
- package/lib/heatmap-layer/index.js +9 -8
- 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/high-layer/HighLayer.js +15 -13
- package/lib/high-layer/HighLayer.js.map +1 -1
- package/lib/high-layer/index.js +13 -11
- package/lib/high-layer/index.js.map +1 -1
- package/lib/high-layer/style/css.js.map +1 -1
- package/lib/high-layer/style/index.js.map +1 -1
- package/lib/image-layer/ImageLayer.js +33 -31
- package/lib/image-layer/ImageLayer.js.map +1 -1
- package/lib/image-layer/ImageTileLayer.js +33 -31
- package/lib/image-layer/ImageTileLayer.js.map +1 -1
- package/lib/image-layer/index.js +11 -10
- 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/index.js +1 -1
- package/lib/index.js.map +1 -1
- package/lib/legend/index.js +73 -38
- package/lib/legend/index.js.map +1 -1
- package/lib/legend/style/css.js.map +1 -1
- package/lib/legend/style/index.css +35 -0
- package/lib/legend/style/index.js.map +1 -1
- package/lib/legend/style/index.less +100 -73
- package/lib/map/Analysis.js +27 -24
- package/lib/map/Analysis.js.map +1 -1
- package/lib/map/Layers.js +29 -25
- package/lib/map/Layers.js.map +1 -1
- package/lib/map/Popup.js +24 -22
- package/lib/map/Popup.js.map +1 -1
- package/lib/map/ScaleDenominator.js +11 -9
- package/lib/map/ScaleDenominator.js.map +1 -1
- package/lib/map/Test.js +14 -12
- package/lib/map/Test.js.map +1 -1
- package/lib/map/getBaseLayers/imagery/amap/AmapImageryProvider.js +2 -1
- package/lib/map/getBaseLayers/imagery/amap/AmapImageryProvider.js.map +1 -1
- package/lib/map/getBaseLayers/imagery/baidu/BaiduImageryProvider.js +3 -2
- package/lib/map/getBaseLayers/imagery/baidu/BaiduImageryProvider.js.map +1 -1
- package/lib/map/getBaseLayers/imagery/geoq/GeoQImageryProvider.js +10 -8
- package/lib/map/getBaseLayers/imagery/geoq/GeoQImageryProvider.js.map +1 -1
- package/lib/map/getBaseLayers/imagery/tdt/TdtImageryProvider.js +9 -7
- package/lib/map/getBaseLayers/imagery/tdt/TdtImageryProvider.js.map +1 -1
- package/lib/map/getBaseLayers/index.js +13 -11
- package/lib/map/getBaseLayers/index.js.map +1 -1
- package/lib/map/index.js +70 -66
- package/lib/map/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 +152 -152
- package/lib/map-icon/svg/index.js +3 -2
- package/lib/map-icon/svg/index.js.map +1 -1
- package/lib/map-icon/svg/tuceng.svg.js.map +1 -1
- package/lib/marker/Marker.js +26 -23
- package/lib/marker/Marker.js.map +1 -1
- package/lib/marker/index.js +4 -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/path-line-layer/PathLineLayer.js +23 -21
- package/lib/path-line-layer/PathLineLayer.js.map +1 -1
- package/lib/path-line-layer/getPathLineStyles.js +9 -8
- package/lib/path-line-layer/getPathLineStyles.js.map +1 -1
- package/lib/path-line-layer/index.js +16 -15
- package/lib/path-line-layer/index.js.map +1 -1
- package/lib/path-line-layer/style/css.js.map +1 -1
- package/lib/path-line-layer/style/index.js.map +1 -1
- package/lib/path-play-back/PathPlayBack.js +21 -18
- package/lib/path-play-back/PathPlayBack.js.map +1 -1
- package/lib/path-play-back/index.js +9 -8
- package/lib/path-play-back/index.js.map +1 -1
- package/lib/path-play-back/style/css.js.map +1 -1
- package/lib/path-play-back/style/index.js.map +1 -1
- package/lib/poi-search/Location.js +8 -7
- package/lib/poi-search/Location.js.map +1 -1
- package/lib/poi-search/PoiList.js +10 -9
- package/lib/poi-search/PoiList.js.map +1 -1
- package/lib/poi-search/Search.js +21 -20
- package/lib/poi-search/Search.js.map +1 -1
- package/lib/poi-search/index.js +11 -9
- package/lib/poi-search/index.js.map +1 -1
- package/lib/poi-search/style/css.js.map +1 -1
- package/lib/poi-search/style/index.js.map +1 -1
- package/lib/poi-search/style/index.less +97 -97
- package/lib/point/Point.js +24 -22
- package/lib/point/Point.js.map +1 -1
- package/lib/point/index.js +4 -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 +24 -22
- package/lib/polygon/Polygon.js.map +1 -1
- package/lib/polygon/index.js +4 -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 +24 -22
- package/lib/polyline/Polyline.js.map +1 -1
- package/lib/polyline/index.js +4 -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/popup/index.js +16 -14
- package/lib/popup/index.js.map +1 -1
- package/lib/popup/style/css.js.map +1 -1
- package/lib/popup/style/index.js.map +1 -1
- package/lib/popup/style/index.less +129 -129
- package/lib/provider/index.js +5 -3
- package/lib/provider/index.js.map +1 -1
- package/lib/provider/style/css.js.map +1 -1
- package/lib/provider/style/index.js.map +1 -1
- package/lib/renderer/Fill.js +19 -17
- package/lib/renderer/Fill.js.map +1 -1
- package/lib/renderer/Stroke.js +19 -17
- package/lib/renderer/Stroke.js.map +1 -1
- package/lib/renderer/index.js +15 -12
- 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/renderer/transformRgb.js +2 -1
- package/lib/renderer/transformRgb.js.map +1 -1
- package/lib/search-map/VtxModal.js +25 -22
- package/lib/search-map/VtxModal.js.map +1 -1
- package/lib/search-map/index.js +24 -22
- package/lib/search-map/index.js.map +1 -1
- package/lib/search-map/style/css.js.map +1 -1
- package/lib/search-map/style/index.js.map +1 -1
- package/lib/search-map/style/index.less +82 -82
- package/lib/search-map/style/modal.less +58 -58
- 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/tile-layer/TileLayer.js +24 -21
- package/lib/tile-layer/TileLayer.js.map +1 -1
- package/lib/tile-layer/index.js +4 -3
- package/lib/tile-layer/index.js.map +1 -1
- package/lib/tile-layer/style/css.js.map +1 -1
- package/lib/tile-layer/style/index.js.map +1 -1
- package/lib/tools/Layer/LayerService.js +9 -8
- package/lib/tools/Layer/LayerService.js.map +1 -1
- package/lib/tools/Layer/LayersCheckService.js +39 -32
- package/lib/tools/Layer/LayersCheckService.js.map +1 -1
- package/lib/tools/Layer/index.js +15 -14
- package/lib/tools/Layer/index.js.map +1 -1
- package/lib/tools/Layer/index.less +43 -43
- package/lib/tools/Search/index.js +21 -18
- package/lib/tools/Search/index.js.map +1 -1
- package/lib/tools/Toolbox/BoxSelect/index.js +6 -5
- package/lib/tools/Toolbox/BoxSelect/index.js.map +1 -1
- package/lib/tools/Toolbox/CircleSelect/index.js +6 -5
- package/lib/tools/Toolbox/CircleSelect/index.js.map +1 -1
- package/lib/tools/Toolbox/EagleEye/index.js +11 -9
- package/lib/tools/Toolbox/EagleEye/index.js.map +1 -1
- package/lib/tools/Toolbox/MapBookmark/Bookmark.js +50 -44
- package/lib/tools/Toolbox/MapBookmark/Bookmark.js.map +1 -1
- package/lib/tools/Toolbox/MapBookmark/index.js +36 -34
- package/lib/tools/Toolbox/MapBookmark/index.js.map +1 -1
- package/lib/tools/Toolbox/MapBookmark/index.less +20 -20
- package/lib/tools/Toolbox/MapDownload/index.js +2 -2
- package/lib/tools/Toolbox/MapDownload/index.js.map +1 -1
- package/lib/tools/Toolbox/MapPrint/index.js +36 -33
- package/lib/tools/Toolbox/MapPrint/index.js.map +1 -1
- package/lib/tools/Toolbox/MapPrint/index.less +4 -4
- package/lib/tools/Toolbox/Measure/Area/index.js +4 -3
- package/lib/tools/Toolbox/Measure/Area/index.js.map +1 -1
- package/lib/tools/Toolbox/Measure/Distance/index.js +4 -3
- package/lib/tools/Toolbox/Measure/Distance/index.js.map +1 -1
- package/lib/tools/Toolbox/Measure/Measure.js +10 -8
- package/lib/tools/Toolbox/Measure/Measure.js.map +1 -1
- package/lib/tools/Toolbox/Measure/index.js +14 -12
- package/lib/tools/Toolbox/Measure/index.js.map +1 -1
- package/lib/tools/Toolbox/PolygonSelect/index.js +6 -5
- package/lib/tools/Toolbox/PolygonSelect/index.js.map +1 -1
- package/lib/tools/Toolbox/ScaleLine/index.js +11 -9
- package/lib/tools/Toolbox/ScaleLine/index.js.map +1 -1
- package/lib/tools/Toolbox/SelectTools/index.js +62 -59
- package/lib/tools/Toolbox/SelectTools/index.js.map +1 -1
- package/lib/tools/Toolbox/SelectTools/index.less +87 -87
- package/lib/tools/Toolbox/SpaceQuery/index.js +25 -24
- package/lib/tools/Toolbox/SpaceQuery/index.js.map +1 -1
- package/lib/tools/Toolbox/SpaceQuery/index.less +16 -16
- package/lib/tools/Toolbox/ZoomInput/index.js +11 -9
- package/lib/tools/Toolbox/ZoomInput/index.js.map +1 -1
- package/lib/tools/Toolbox/ZoomInput/index.less +5 -5
- package/lib/tools/Toolbox/index.js +10 -7
- package/lib/tools/Toolbox/index.js.map +1 -1
- package/lib/tools/Toolbox/index.less +2 -2
- package/lib/tools/Utils/CreateOverlay.js +11 -10
- package/lib/tools/Utils/CreateOverlay.js.map +1 -1
- package/lib/tools/Utils/Draw.js +19 -16
- package/lib/tools/Utils/Draw.js.map +1 -1
- package/lib/tools/Utils/HighLayer.js +16 -14
- package/lib/tools/Utils/HighLayer.js.map +1 -1
- package/lib/tools/Utils/measure.js +7 -6
- package/lib/tools/Utils/measure.js.map +1 -1
- package/lib/tools/Utils/utils.js +45 -36
- package/lib/tools/Utils/utils.js.map +1 -1
- package/lib/tools/View/index.js +16 -14
- package/lib/tools/View/index.js.map +1 -1
- package/lib/tools/View/index.less +28 -28
- package/lib/tools/analysis-tool/index.js +20 -18
- package/lib/tools/analysis-tool/index.js.map +1 -1
- package/lib/tools/base-map-switch/index.js +16 -14
- package/lib/tools/base-map-switch/index.js.map +1 -1
- package/lib/tools/components/Chart/index.js +140 -129
- package/lib/tools/components/Chart/index.js.map +1 -1
- package/lib/tools/components/Icon/index.js +3 -2
- package/lib/tools/components/Icon/index.js.map +1 -1
- package/lib/tools/components/Info/index.js +3 -2
- package/lib/tools/components/Info/index.js.map +1 -1
- package/lib/tools/components/Info/index.less +26 -26
- package/lib/tools/components/ItemWrap/index.js +11 -9
- package/lib/tools/components/ItemWrap/index.js.map +1 -1
- package/lib/tools/components/ItemWrap/index.less +41 -41
- package/lib/tools/components/Modal/index.js +11 -10
- package/lib/tools/components/Modal/index.js.map +1 -1
- package/lib/tools/components/Modal/index.less +33 -33
- package/lib/tools/components/MyTabs/index.js +1 -1
- package/lib/tools/components/MyTabs/index.js.map +1 -1
- package/lib/tools/components/RequiredLabel/index.js +7 -7
- package/lib/tools/components/RequiredLabel/index.js.map +1 -1
- package/lib/tools/components/RequiredLabel/index.less +5 -5
- package/lib/tools/components/Select/index.js +3 -2
- package/lib/tools/components/Select/index.js.map +1 -1
- package/lib/tools/components/Table/index.js +19 -17
- package/lib/tools/components/Table/index.js.map +1 -1
- package/lib/tools/components/Table/index.less +13 -13
- package/lib/tools/components/ToolItem/index.js +3 -2
- package/lib/tools/components/ToolItem/index.js.map +1 -1
- package/lib/tools/components/ToolItem/index.less +27 -27
- package/lib/tools/components/ToolsSelect/index.js +3 -2
- package/lib/tools/components/ToolsSelect/index.js.map +1 -1
- package/lib/tools/components/ToolsSelect/index.less +10 -10
- package/lib/tools/full-screen/index.js +12 -10
- package/lib/tools/full-screen/index.js.map +1 -1
- package/lib/tools/index.js +11 -10
- package/lib/tools/index.js.map +1 -1
- package/lib/tools/layer-control/index.js +26 -22
- package/lib/tools/layer-control/index.js.map +1 -1
- package/lib/tools/refresh/index.js +12 -10
- package/lib/tools/refresh/index.js.map +1 -1
- package/lib/tools/style/css.js.map +1 -1
- package/lib/tools/style/index.js.map +1 -1
- package/lib/tools/style/index.less +154 -154
- package/lib/tools-item/index.js +11 -9
- package/lib/tools-item/index.js.map +1 -1
- package/lib/use-props/index.js +2 -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/wms-layer/WmsLayer.js +33 -31
- package/lib/wms-layer/WmsLayer.js.map +1 -1
- package/lib/wms-layer/index.js +11 -10
- package/lib/wms-layer/index.js.map +1 -1
- package/lib/wms-layer/style/css.js.map +1 -1
- package/lib/wms-layer/style/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,154 +1,154 @@
|
|
|
1
|
-
.ol-map-tools {
|
|
2
|
-
position: absolute;
|
|
3
|
-
background: #fff;
|
|
4
|
-
padding: 0;
|
|
5
|
-
margin: 0;
|
|
6
|
-
box-shadow: 0 2px 10px 0 rgba(0, 0, 0, 0.26);
|
|
7
|
-
|
|
8
|
-
.ol-map-tools-open {
|
|
9
|
-
opacity: 1;
|
|
10
|
-
transition: max-height 0.3s, opacity 0.3s;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
.ol-map-tools-close {
|
|
14
|
-
max-height: 0;
|
|
15
|
-
opacity: 0;
|
|
16
|
-
overflow: hidden;
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
.ol-map-tools-layer-tree-wrap {
|
|
21
|
-
max-height: 400px;
|
|
22
|
-
overflow-y: auto;
|
|
23
|
-
background: transparent;
|
|
24
|
-
|
|
25
|
-
&::-webkit-scrollbar {
|
|
26
|
-
/*滚动条整体样式*/
|
|
27
|
-
width: 0; /*高宽分别对应横竖滚动条的尺寸*/
|
|
28
|
-
height: 0;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
.ol-map-tools-layer-tree {
|
|
32
|
-
background: transparent;
|
|
33
|
-
color: #fff;
|
|
34
|
-
|
|
35
|
-
.ant-tree-icon__customize {
|
|
36
|
-
margin-right: 4px;
|
|
37
|
-
|
|
38
|
-
.ol-map-tools-layer-tree-legend {
|
|
39
|
-
max-height: 24px;
|
|
40
|
-
padding-bottom: 4px;
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
.base-map-switch-list-wrap {
|
|
47
|
-
width: 300px;
|
|
48
|
-
|
|
49
|
-
.base-map-switch-list-title {
|
|
50
|
-
font-size: 18px;
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
.base-map-switch-list {
|
|
54
|
-
max-height: 400px;
|
|
55
|
-
overflow-y: scroll;
|
|
56
|
-
|
|
57
|
-
&::-webkit-scrollbar {
|
|
58
|
-
/*滚动条整体样式*/
|
|
59
|
-
width: 0;
|
|
60
|
-
/*高宽分别对应横竖滚动条的尺寸*/
|
|
61
|
-
height: 0;
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
.base-map-switch-list-label {
|
|
65
|
-
font-size: 14px;
|
|
66
|
-
margin: 5px 0;
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
.base-map-switch-list-item-wrap {
|
|
70
|
-
// border: 1px solid #999;
|
|
71
|
-
border-radius: 5px;
|
|
72
|
-
padding: 5px;
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
.base-map-switch-list-item {
|
|
76
|
-
cursor: pointer;
|
|
77
|
-
|
|
78
|
-
.base-map-switch-list-item-img {
|
|
79
|
-
width: 100%;
|
|
80
|
-
border: solid 1px #999;
|
|
81
|
-
border-radius: 9px;
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
.base-map-switch-list-item-label {
|
|
85
|
-
margin-top: 4px;
|
|
86
|
-
text-align: center;
|
|
87
|
-
font-size: 12px;
|
|
88
|
-
// color: #FFF;
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
&:hover {
|
|
92
|
-
.base-map-switch-list-item-img {
|
|
93
|
-
border-color: #fff;
|
|
94
|
-
box-shadow: 0 0 8px #fff, 0 0 8px #fff;
|
|
95
|
-
}
|
|
96
|
-
}
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
.base-map-switch-list-item-active {
|
|
100
|
-
.base-map-switch-list-item-img {
|
|
101
|
-
border: double 4px #0080ff;
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
.base-map-switch-list-item-label {
|
|
105
|
-
color: #0080ff;
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
&:hover {
|
|
109
|
-
.base-map-switch-list-item-img {
|
|
110
|
-
border: double 4px #0080ff;
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
.base-map-switch-list-item-label {
|
|
114
|
-
color: #0080ff;
|
|
115
|
-
}
|
|
116
|
-
}
|
|
117
|
-
}
|
|
118
|
-
}
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
.analysis-tool-list {
|
|
122
|
-
max-height: 60vh;
|
|
123
|
-
user-select: none;
|
|
124
|
-
|
|
125
|
-
overflow-y: auto;
|
|
126
|
-
|
|
127
|
-
.anticon {
|
|
128
|
-
padding-right: 6px;
|
|
129
|
-
}
|
|
130
|
-
|
|
131
|
-
.analysis-tool-list-title {
|
|
132
|
-
display: flex;
|
|
133
|
-
align-items: center;
|
|
134
|
-
font-weight: bold;
|
|
135
|
-
}
|
|
136
|
-
|
|
137
|
-
.analysis-tool-list-sub {
|
|
138
|
-
margin-left: 8px;
|
|
139
|
-
|
|
140
|
-
.analysis-tool-list-sub-item {
|
|
141
|
-
display: flex;
|
|
142
|
-
align-items: center;
|
|
143
|
-
cursor: pointer;
|
|
144
|
-
padding: 5px 8px;
|
|
145
|
-
border-bottom: 1px dashed #cccccc;
|
|
146
|
-
font-size: 14px;
|
|
147
|
-
user-select: none;
|
|
148
|
-
}
|
|
149
|
-
|
|
150
|
-
.analysis-tool-list-sub-item-active {
|
|
151
|
-
background: #aedcff;
|
|
152
|
-
}
|
|
153
|
-
}
|
|
154
|
-
}
|
|
1
|
+
.ol-map-tools {
|
|
2
|
+
position: absolute;
|
|
3
|
+
background: #fff;
|
|
4
|
+
padding: 0;
|
|
5
|
+
margin: 0;
|
|
6
|
+
box-shadow: 0 2px 10px 0 rgba(0, 0, 0, 0.26);
|
|
7
|
+
|
|
8
|
+
.ol-map-tools-open {
|
|
9
|
+
opacity: 1;
|
|
10
|
+
transition: max-height 0.3s, opacity 0.3s;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.ol-map-tools-close {
|
|
14
|
+
max-height: 0;
|
|
15
|
+
opacity: 0;
|
|
16
|
+
overflow: hidden;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.ol-map-tools-layer-tree-wrap {
|
|
21
|
+
max-height: 400px;
|
|
22
|
+
overflow-y: auto;
|
|
23
|
+
background: transparent;
|
|
24
|
+
|
|
25
|
+
&::-webkit-scrollbar {
|
|
26
|
+
/*滚动条整体样式*/
|
|
27
|
+
width: 0; /*高宽分别对应横竖滚动条的尺寸*/
|
|
28
|
+
height: 0;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.ol-map-tools-layer-tree {
|
|
32
|
+
background: transparent;
|
|
33
|
+
color: #fff;
|
|
34
|
+
|
|
35
|
+
.ant-tree-icon__customize {
|
|
36
|
+
margin-right: 4px;
|
|
37
|
+
|
|
38
|
+
.ol-map-tools-layer-tree-legend {
|
|
39
|
+
max-height: 24px;
|
|
40
|
+
padding-bottom: 4px;
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.base-map-switch-list-wrap {
|
|
47
|
+
width: 300px;
|
|
48
|
+
|
|
49
|
+
.base-map-switch-list-title {
|
|
50
|
+
font-size: 18px;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.base-map-switch-list {
|
|
54
|
+
max-height: 400px;
|
|
55
|
+
overflow-y: scroll;
|
|
56
|
+
|
|
57
|
+
&::-webkit-scrollbar {
|
|
58
|
+
/*滚动条整体样式*/
|
|
59
|
+
width: 0;
|
|
60
|
+
/*高宽分别对应横竖滚动条的尺寸*/
|
|
61
|
+
height: 0;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.base-map-switch-list-label {
|
|
65
|
+
font-size: 14px;
|
|
66
|
+
margin: 5px 0;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
.base-map-switch-list-item-wrap {
|
|
70
|
+
// border: 1px solid #999;
|
|
71
|
+
border-radius: 5px;
|
|
72
|
+
padding: 5px;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
.base-map-switch-list-item {
|
|
76
|
+
cursor: pointer;
|
|
77
|
+
|
|
78
|
+
.base-map-switch-list-item-img {
|
|
79
|
+
width: 100%;
|
|
80
|
+
border: solid 1px #999;
|
|
81
|
+
border-radius: 9px;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
.base-map-switch-list-item-label {
|
|
85
|
+
margin-top: 4px;
|
|
86
|
+
text-align: center;
|
|
87
|
+
font-size: 12px;
|
|
88
|
+
// color: #FFF;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
&:hover {
|
|
92
|
+
.base-map-switch-list-item-img {
|
|
93
|
+
border-color: #fff;
|
|
94
|
+
box-shadow: 0 0 8px #fff, 0 0 8px #fff;
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
.base-map-switch-list-item-active {
|
|
100
|
+
.base-map-switch-list-item-img {
|
|
101
|
+
border: double 4px #0080ff;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
.base-map-switch-list-item-label {
|
|
105
|
+
color: #0080ff;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
&:hover {
|
|
109
|
+
.base-map-switch-list-item-img {
|
|
110
|
+
border: double 4px #0080ff;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
.base-map-switch-list-item-label {
|
|
114
|
+
color: #0080ff;
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
.analysis-tool-list {
|
|
122
|
+
max-height: 60vh;
|
|
123
|
+
user-select: none;
|
|
124
|
+
|
|
125
|
+
overflow-y: auto;
|
|
126
|
+
|
|
127
|
+
.anticon {
|
|
128
|
+
padding-right: 6px;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
.analysis-tool-list-title {
|
|
132
|
+
display: flex;
|
|
133
|
+
align-items: center;
|
|
134
|
+
font-weight: bold;
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
.analysis-tool-list-sub {
|
|
138
|
+
margin-left: 8px;
|
|
139
|
+
|
|
140
|
+
.analysis-tool-list-sub-item {
|
|
141
|
+
display: flex;
|
|
142
|
+
align-items: center;
|
|
143
|
+
cursor: pointer;
|
|
144
|
+
padding: 5px 8px;
|
|
145
|
+
border-bottom: 1px dashed #cccccc;
|
|
146
|
+
font-size: 14px;
|
|
147
|
+
user-select: none;
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
.analysis-tool-list-sub-item-active {
|
|
151
|
+
background: #aedcff;
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
}
|
package/lib/tools-item/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
function _typeof(
|
|
3
|
+
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
4
4
|
Object.defineProperty(exports, "__esModule", {
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
@@ -10,14 +10,15 @@ var _antd = require("antd");
|
|
|
10
10
|
var _icons = require("@ant-design/icons");
|
|
11
11
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
12
12
|
var _lodash = require("lodash");
|
|
13
|
-
function _interopRequireDefault(
|
|
14
|
-
function
|
|
15
|
-
function
|
|
13
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
14
|
+
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); }
|
|
15
|
+
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; }
|
|
16
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
16
17
|
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
17
|
-
function _unsupportedIterableToArray(
|
|
18
|
-
function _arrayLikeToArray(
|
|
19
|
-
function _iterableToArrayLimit(
|
|
20
|
-
function _arrayWithHoles(
|
|
18
|
+
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); }
|
|
19
|
+
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; }
|
|
20
|
+
function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i["return"] && (_r = _i["return"](), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
|
|
21
|
+
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
21
22
|
var ToolsItem = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
|
22
23
|
var hideCloseBtn = props.hideCloseBtn,
|
|
23
24
|
children = props.children;
|
|
@@ -61,5 +62,6 @@ var ToolsItem = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
|
|
61
62
|
})
|
|
62
63
|
}, children));
|
|
63
64
|
});
|
|
64
|
-
var _default =
|
|
65
|
+
var _default = ToolsItem;
|
|
66
|
+
exports["default"] = _default;
|
|
65
67
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["_react","_interopRequireWildcard","require","_antd","_icons","_classnames","_interopRequireDefault","_lodash","
|
|
1
|
+
{"version":3,"file":"index.js","names":["_react","_interopRequireWildcard","require","_antd","_icons","_classnames","_interopRequireDefault","_lodash","obj","__esModule","_getRequireWildcardCache","nodeInterop","WeakMap","cacheBabelInterop","cacheNodeInterop","_typeof","cache","has","get","newObj","hasPropertyDescriptor","Object","defineProperty","getOwnPropertyDescriptor","key","prototype","hasOwnProperty","call","desc","set","_slicedToArray","arr","i","_arrayWithHoles","_iterableToArrayLimit","_unsupportedIterableToArray","_nonIterableRest","TypeError","o","minLen","_arrayLikeToArray","n","toString","slice","constructor","name","Array","from","test","len","length","arr2","_i","Symbol","iterator","_s","_e","_x","_r","_arr","_n","_d","next","done","push","value","err","isArray","ToolsItem","forwardRef","props","ref","hideCloseBtn","children","_useState","useState","_useState2","visible","setVisible","useImperativeHandle","onVisibleChange","arguments","undefined","content","createElement","className","classnames","Fragment","CloseOutlined","onClick","isFunction","Popover","placement","trigger","overlayClassName","_default","exports"],"sources":["tools-item/index.js"],"sourcesContent":["import React, { useState, useImperativeHandle, forwardRef } from 'react';\nimport { Popover } from 'antd';\nimport { CloseOutlined } from '@ant-design/icons';\nimport classnames from 'classnames';\nimport { isFunction } from 'lodash';\n\nconst ToolsItem = forwardRef((props, ref) => {\n const { hideCloseBtn, children } = props;\n const [visible, setVisible] = useState(false);\n\n useImperativeHandle(ref, () => ({\n onVisibleChange: (visible = false) => {\n setVisible(visible);\n },\n }));\n\n if (!props.content) {\n return (\n <li className={classnames('ol-map-tools-item', { 'ol-map-tools-active-item': visible })}>\n {children}\n </li>\n );\n }\n\n const content = () => (\n <>\n {!hideCloseBtn && (\n <CloseOutlined\n className={classnames('ol-map-tools-close-btn')}\n onClick={() => setVisible(false)}\n />\n )}\n\n {props.content && (isFunction(props.content) ? props.content() : props.content)}\n </>\n );\n return (\n <Popover\n visible={visible}\n placement=\"rightTop\"\n trigger=\"click\"\n content={content}\n onVisibleChange={setVisible}\n overlayClassName={classnames('ol-map-tools-item-popover')}\n >\n <li className={classnames('ol-map-tools-item', { 'ol-map-tools-active-item': visible })}>\n {children}\n </li>\n </Popover>\n );\n});\n\nexport default ToolsItem;\n"],"mappings":";;;;;;;AAAA,IAAAA,MAAA,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A"}
|
package/lib/use-props/index.js
CHANGED
|
@@ -10,5 +10,6 @@ var useProps = function useProps() {
|
|
|
10
10
|
var params = (0, _react.useContext)(_provider.Context);
|
|
11
11
|
return params;
|
|
12
12
|
};
|
|
13
|
-
var _default =
|
|
13
|
+
var _default = useProps;
|
|
14
|
+
exports["default"] = _default;
|
|
14
15
|
//# sourceMappingURL=index.js.map
|
|
@@ -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';\
|
|
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 '../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,GAEaJ,QAAQ;AAAAK,OAAA,cAAAD,QAAA"}
|
|
@@ -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":""}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
function _typeof(
|
|
3
|
+
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
4
4
|
Object.defineProperty(exports, "__esModule", {
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
@@ -14,31 +14,29 @@ var _encryptParams = _interopRequireDefault(require("../_util/encryptParams"));
|
|
|
14
14
|
var _getToken = require("../_util/getToken");
|
|
15
15
|
var _getUrlParam = _interopRequireDefault(require("../_util/getUrlParam"));
|
|
16
16
|
var _getSystemInfo = _interopRequireDefault(require("../_util/getSystemInfo"));
|
|
17
|
-
function _interopRequireDefault(
|
|
18
|
-
function ownKeys(
|
|
19
|
-
function _objectSpread(
|
|
20
|
-
function _classCallCheck(
|
|
21
|
-
function _defineProperties(
|
|
22
|
-
function _createClass(
|
|
23
|
-
function
|
|
24
|
-
function
|
|
25
|
-
function
|
|
26
|
-
function
|
|
27
|
-
function
|
|
28
|
-
function
|
|
29
|
-
function
|
|
30
|
-
function
|
|
31
|
-
function
|
|
32
|
-
function
|
|
33
|
-
function
|
|
34
|
-
function
|
|
35
|
-
function
|
|
36
|
-
function
|
|
37
|
-
function _superPropBase(t, o) { for (; !{}.hasOwnProperty.call(t, o) && null !== (t = _getPrototypeOf(t));); return t; }
|
|
38
|
-
function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); }
|
|
17
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
18
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
19
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
20
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
21
|
+
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); } }
|
|
22
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
23
|
+
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); }
|
|
24
|
+
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); }
|
|
25
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
26
|
+
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); }; }
|
|
27
|
+
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); }
|
|
28
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
29
|
+
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; } }
|
|
30
|
+
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); }
|
|
31
|
+
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; }
|
|
32
|
+
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; }
|
|
33
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
34
|
+
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); }
|
|
35
|
+
function _superPropBase(object, property) { while (!Object.prototype.hasOwnProperty.call(object, property)) { object = _getPrototypeOf(object); if (object === null) break; } return object; }
|
|
36
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
39
37
|
var geoJsonFormat = new _format.GeoJSON();
|
|
40
38
|
var tenantId = (0, _getUrlParam["default"])('tenantId') || (0, _getSystemInfo["default"])('tenantId') || '';
|
|
41
|
-
var getFilter =
|
|
39
|
+
var getFilter = function getFilter(group) {
|
|
42
40
|
var cql_filter = '';
|
|
43
41
|
if (group !== null && group !== void 0 && group.length) {
|
|
44
42
|
var filterGroup = group.filter(function (item) {
|
|
@@ -52,6 +50,7 @@ var getFilter = exports.getFilter = function getFilter(group) {
|
|
|
52
50
|
}
|
|
53
51
|
return cql_filter;
|
|
54
52
|
};
|
|
53
|
+
exports.getFilter = getFilter;
|
|
55
54
|
var transformWhere = function transformWhere(field, value, operation) {
|
|
56
55
|
var where = "".concat(field, " ").concat(operation, " '").concat(value, "'");
|
|
57
56
|
if (operation === '===') {
|
|
@@ -65,9 +64,11 @@ var transformWhere = function transformWhere(field, value, operation) {
|
|
|
65
64
|
}
|
|
66
65
|
return where;
|
|
67
66
|
};
|
|
68
|
-
var WmsLayer =
|
|
67
|
+
var WmsLayer = /*#__PURE__*/function (_Tile) {
|
|
68
|
+
_inherits(WmsLayer, _Tile);
|
|
69
|
+
var _super = _createSuper(WmsLayer);
|
|
69
70
|
function WmsLayer(options) {
|
|
70
|
-
var _this;
|
|
71
|
+
var _thisSuper, _this;
|
|
71
72
|
_classCallCheck(this, WmsLayer);
|
|
72
73
|
var url = options.url,
|
|
73
74
|
params = options.params,
|
|
@@ -105,8 +106,8 @@ var WmsLayer = exports["default"] = /*#__PURE__*/function (_Tile) {
|
|
|
105
106
|
});
|
|
106
107
|
}
|
|
107
108
|
}
|
|
108
|
-
_this =
|
|
109
|
-
|
|
109
|
+
_this = _super.call(this, options);
|
|
110
|
+
_set((_thisSuper = _assertThisInitialized(_this), _getPrototypeOf(WmsLayer.prototype)), "show", show, _thisSuper, true);
|
|
110
111
|
// 图层标识
|
|
111
112
|
_this.url = url;
|
|
112
113
|
_this._params = _objectSpread({
|
|
@@ -165,11 +166,10 @@ var WmsLayer = exports["default"] = /*#__PURE__*/function (_Tile) {
|
|
|
165
166
|
}
|
|
166
167
|
|
|
167
168
|
// 重写父类的属性访问器
|
|
168
|
-
|
|
169
|
-
return _createClass(WmsLayer, [{
|
|
169
|
+
_createClass(WmsLayer, [{
|
|
170
170
|
key: "show",
|
|
171
171
|
get: function get() {
|
|
172
|
-
return
|
|
172
|
+
return _get(_getPrototypeOf(WmsLayer.prototype), "show", this);
|
|
173
173
|
},
|
|
174
174
|
set: function set(value) {
|
|
175
175
|
this.setVisible(value);
|
|
@@ -309,5 +309,7 @@ var WmsLayer = exports["default"] = /*#__PURE__*/function (_Tile) {
|
|
|
309
309
|
return (0, _layer2.getWFSFeatureInfoByLayer)(layer, cql_filter);
|
|
310
310
|
}
|
|
311
311
|
}]);
|
|
312
|
+
return WmsLayer;
|
|
312
313
|
}(_layer.Tile);
|
|
314
|
+
exports["default"] = WmsLayer;
|
|
313
315
|
//# sourceMappingURL=WmsLayer.js.map
|