@vtx/ol-map 1.0.158 → 1.0.159
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 +11 -13
- package/lib/_util/EventEmitter.js.map +1 -1
- package/lib/_util/StyleCache.js +8 -10
- package/lib/_util/StyleCache.js.map +1 -1
- package/lib/_util/encryptParams.js +17 -22
- 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 +5 -6
- package/lib/_util/getCookie.js.map +1 -1
- package/lib/_util/getDefaultMapInfo.js +7 -8
- package/lib/_util/getDefaultMapInfo.js.map +1 -1
- package/lib/_util/getSystemInfo.js +7 -8
- package/lib/_util/getSystemInfo.js.map +1 -1
- package/lib/_util/getToken.js +2 -4
- package/lib/_util/getToken.js.map +1 -1
- package/lib/_util/getUrlParam.js +2 -3
- package/lib/_util/getUrlParam.js.map +1 -1
- package/lib/_util/http.js +30 -32
- 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 +33 -37
- package/lib/_util/layer.js.map +1 -1
- package/lib/_util/mapTool.js +36 -37
- package/lib/_util/mapTool.js.map +1 -1
- package/lib/_util/projzh/datum/bd-09.js +2 -3
- package/lib/_util/projzh/datum/bd-09.js.map +1 -1
- package/lib/_util/projzh/datum/gcj-02.js +1 -2
- package/lib/_util/projzh/datum/gcj-02.js.map +1 -1
- package/lib/_util/projzh/datum/index.js +2 -3
- package/lib/_util/projzh/datum/index.js.map +1 -1
- package/lib/_util/projzh/index.js +2 -3
- package/lib/_util/projzh/index.js.map +1 -1
- package/lib/_util/projzh/projection/baidu-mercator.js +1 -2
- package/lib/_util/projzh/projection/baidu-mercator.js.map +1 -1
- package/lib/_util/projzh/projection/index.js +2 -3
- package/lib/_util/projzh/projection/index.js.map +1 -1
- package/lib/_util/projzh/projection/spherical-mercator.js +1 -2
- package/lib/_util/projzh/projection/spherical-mercator.js.map +1 -1
- package/lib/_util/projzh/util.js +1 -2
- package/lib/_util/projzh/util.js.map +1 -1
- package/lib/_util/search.js +13 -16
- package/lib/_util/search.js.map +1 -1
- package/lib/_util/setCookie.js +5 -6
- 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 +9 -10
- package/lib/_util/transform.js.map +1 -1
- package/lib/_util/useColSize.js +2 -3
- package/lib/_util/useColSize.js.map +1 -1
- package/lib/_util/useInterval.js.map +1 -1
- package/lib/_util/useSet.js +12 -13
- package/lib/_util/useSet.js.map +1 -1
- package/lib/analysis-layer/index.js +45 -52
- 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 +11 -13
- package/lib/buffer-draw/BufferDraw.js.map +1 -1
- package/lib/buffer-draw/index.js +9 -10
- 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 +22 -24
- package/lib/circle/Circle.js.map +1 -1
- package/lib/circle/index.js +3 -4
- 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 +1 -2
- package/lib/config.js.map +1 -1
- package/lib/convertCamelToCSS.js +1 -2
- package/lib/convertCamelToCSS.js.map +1 -1
- package/lib/dom/Dom.js +19 -21
- package/lib/dom/Dom.js.map +1 -1
- package/lib/dom/index.js +10 -11
- 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/dom-layer/index.js +10 -11
- package/lib/dom-layer/index.js.map +1 -1
- package/lib/dom-layer/style/css.js.map +1 -1
- package/lib/dom-layer/style/index.js.map +1 -1
- package/lib/dom-layer/style/index.less +3 -3
- package/lib/events/index.js +2 -4
- package/lib/events/index.js.map +1 -1
- package/lib/feature-draw/FeatureDraw.js +40 -46
- 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 +64 -65
- package/lib/feature-layer/FeatureLayer.js.map +1 -1
- package/lib/feature-layer/MyCluster.js +28 -31
- package/lib/feature-layer/MyCluster.js.map +1 -1
- package/lib/feature-layer/createFeatureCollection.js +39 -47
- package/lib/feature-layer/createFeatureCollection.js.map +1 -1
- package/lib/feature-layer/index.js +15 -16
- 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 +22 -25
- package/lib/flow-line-layer/FlowLineLayer.js.map +1 -1
- package/lib/flow-line-layer/index.js +15 -16
- 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 +12 -14
- package/lib/fly-line-layer/FlyLineLayer.js.map +1 -1
- package/lib/fly-line-layer/index.js +8 -9
- 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 +10 -12
- package/lib/group-layer/GroupLayer.js.map +1 -1
- package/lib/group-layer/index.js +8 -9
- 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 +29 -30
- package/lib/heatmap-layer/HeatmapLayer.js.map +1 -1
- package/lib/heatmap-layer/index.js +8 -9
- 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 +13 -15
- package/lib/high-layer/HighLayer.js.map +1 -1
- package/lib/high-layer/index.js +11 -13
- 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 +31 -33
- package/lib/image-layer/ImageLayer.js.map +1 -1
- package/lib/image-layer/ImageTileLayer.js +31 -33
- package/lib/image-layer/ImageTileLayer.js.map +1 -1
- package/lib/image-layer/index.js +10 -11
- 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 +20 -23
- 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 +100 -100
- package/lib/map/Analysis.js +24 -27
- package/lib/map/Analysis.js.map +1 -1
- package/lib/map/Layers.js +24 -28
- package/lib/map/Layers.js.map +1 -1
- package/lib/map/Popup.js +22 -24
- package/lib/map/Popup.js.map +1 -1
- package/lib/map/ScaleDenominator.js +9 -11
- package/lib/map/ScaleDenominator.js.map +1 -1
- package/lib/map/Test.js +12 -14
- package/lib/map/Test.js.map +1 -1
- package/lib/map/getBaseLayers/imagery/amap/AmapImageryProvider.js +3 -4
- package/lib/map/getBaseLayers/imagery/amap/AmapImageryProvider.js.map +1 -1
- package/lib/map/getBaseLayers/imagery/baidu/BaiduImageryProvider.js +2 -3
- package/lib/map/getBaseLayers/imagery/baidu/BaiduImageryProvider.js.map +1 -1
- package/lib/map/getBaseLayers/imagery/geoq/GeoQImageryProvider.js +8 -10
- package/lib/map/getBaseLayers/imagery/geoq/GeoQImageryProvider.js.map +1 -1
- package/lib/map/getBaseLayers/imagery/tdt/TdtImageryProvider.js +7 -9
- package/lib/map/getBaseLayers/imagery/tdt/TdtImageryProvider.js.map +1 -1
- package/lib/map/getBaseLayers/index.js +11 -13
- package/lib/map/getBaseLayers/index.js.map +1 -1
- package/lib/map/index.js +67 -71
- 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 +2 -3
- 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 +23 -26
- package/lib/marker/Marker.js.map +1 -1
- package/lib/marker/index.js +3 -4
- 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 +21 -23
- package/lib/path-line-layer/PathLineLayer.js.map +1 -1
- package/lib/path-line-layer/getPathLineStyles.js +8 -9
- package/lib/path-line-layer/getPathLineStyles.js.map +1 -1
- package/lib/path-line-layer/index.js +15 -16
- 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 -24
- package/lib/path-play-back/PathPlayBack.js.map +1 -1
- package/lib/path-play-back/index.js +8 -9
- 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 +7 -8
- package/lib/poi-search/Location.js.map +1 -1
- package/lib/poi-search/PoiList.js +9 -10
- package/lib/poi-search/PoiList.js.map +1 -1
- package/lib/poi-search/Search.js +20 -21
- package/lib/poi-search/Search.js.map +1 -1
- package/lib/poi-search/index.js +9 -11
- 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 +22 -24
- package/lib/point/Point.js.map +1 -1
- package/lib/point/index.js +3 -4
- 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 +22 -24
- package/lib/polygon/Polygon.js.map +1 -1
- package/lib/polygon/index.js +3 -4
- 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 +22 -24
- package/lib/polyline/Polyline.js.map +1 -1
- package/lib/polyline/index.js +3 -4
- 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 +14 -16
- 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 +3 -5
- 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 +17 -19
- package/lib/renderer/Fill.js.map +1 -1
- package/lib/renderer/Stroke.js +17 -19
- package/lib/renderer/Stroke.js.map +1 -1
- package/lib/renderer/index.js +12 -15
- 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 +1 -2
- package/lib/renderer/transformRgb.js.map +1 -1
- package/lib/search-map/VtxModal.js +22 -25
- package/lib/search-map/VtxModal.js.map +1 -1
- package/lib/search-map/index.js +31 -33
- 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 +21 -24
- package/lib/tile-layer/TileLayer.js.map +1 -1
- package/lib/tile-layer/index.js +7 -6
- 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 +8 -9
- package/lib/tools/Layer/LayerService.js.map +1 -1
- package/lib/tools/Layer/LayersCheckService.js +32 -39
- package/lib/tools/Layer/LayersCheckService.js.map +1 -1
- package/lib/tools/Layer/index.js +14 -15
- package/lib/tools/Layer/index.js.map +1 -1
- package/lib/tools/Layer/index.less +43 -43
- package/lib/tools/Search/index.js +18 -21
- package/lib/tools/Search/index.js.map +1 -1
- package/lib/tools/Toolbox/BoxSelect/index.js +5 -6
- package/lib/tools/Toolbox/BoxSelect/index.js.map +1 -1
- package/lib/tools/Toolbox/CircleSelect/index.js +5 -6
- package/lib/tools/Toolbox/CircleSelect/index.js.map +1 -1
- package/lib/tools/Toolbox/EagleEye/index.js +9 -11
- package/lib/tools/Toolbox/EagleEye/index.js.map +1 -1
- package/lib/tools/Toolbox/MapBookmark/Bookmark.js +44 -50
- package/lib/tools/Toolbox/MapBookmark/Bookmark.js.map +1 -1
- package/lib/tools/Toolbox/MapBookmark/index.js +34 -36
- 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 +33 -36
- 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 +3 -4
- package/lib/tools/Toolbox/Measure/Area/index.js.map +1 -1
- package/lib/tools/Toolbox/Measure/Distance/index.js +3 -4
- package/lib/tools/Toolbox/Measure/Distance/index.js.map +1 -1
- package/lib/tools/Toolbox/Measure/Measure.js +8 -10
- package/lib/tools/Toolbox/Measure/Measure.js.map +1 -1
- package/lib/tools/Toolbox/Measure/index.js +12 -14
- package/lib/tools/Toolbox/Measure/index.js.map +1 -1
- package/lib/tools/Toolbox/PolygonSelect/index.js +5 -6
- package/lib/tools/Toolbox/PolygonSelect/index.js.map +1 -1
- package/lib/tools/Toolbox/ScaleLine/index.js +9 -11
- package/lib/tools/Toolbox/ScaleLine/index.js.map +1 -1
- package/lib/tools/Toolbox/SelectTools/index.js +59 -62
- 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 +24 -25
- 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 +9 -11
- package/lib/tools/Toolbox/ZoomInput/index.js.map +1 -1
- package/lib/tools/Toolbox/ZoomInput/index.less +5 -5
- package/lib/tools/Toolbox/draftingPrint/index.css +26 -0
- package/lib/tools/Toolbox/draftingPrint/index.js +364 -0
- package/lib/tools/Toolbox/draftingPrint/index.js.map +1 -0
- package/lib/tools/Toolbox/draftingPrint/index.less +34 -0
- package/lib/tools/Toolbox/index.js +18 -11
- package/lib/tools/Toolbox/index.js.map +1 -1
- package/lib/tools/Toolbox/index.less +2 -2
- package/lib/tools/Utils/CreateOverlay.js +10 -11
- package/lib/tools/Utils/CreateOverlay.js.map +1 -1
- package/lib/tools/Utils/Draw.js +16 -19
- package/lib/tools/Utils/Draw.js.map +1 -1
- package/lib/tools/Utils/HighLayer.js +14 -16
- package/lib/tools/Utils/HighLayer.js.map +1 -1
- package/lib/tools/Utils/measure.js +6 -7
- package/lib/tools/Utils/measure.js.map +1 -1
- package/lib/tools/Utils/utils.js +36 -45
- package/lib/tools/Utils/utils.js.map +1 -1
- package/lib/tools/View/index.js +14 -16
- package/lib/tools/View/index.js.map +1 -1
- package/lib/tools/View/index.less +28 -28
- package/lib/tools/analysis-tool/index.js +18 -20
- package/lib/tools/analysis-tool/index.js.map +1 -1
- package/lib/tools/base-map-switch/index.js +14 -16
- package/lib/tools/base-map-switch/index.js.map +1 -1
- package/lib/tools/components/Chart/index.js +129 -140
- package/lib/tools/components/Chart/index.js.map +1 -1
- package/lib/tools/components/Icon/index.js +2 -3
- package/lib/tools/components/Icon/index.js.map +1 -1
- package/lib/tools/components/Info/index.js +2 -3
- 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 +9 -11
- 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 +10 -11
- 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 +2 -3
- package/lib/tools/components/Select/index.js.map +1 -1
- package/lib/tools/components/Table/index.js +17 -19
- 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 +2 -3
- 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 +2 -3
- 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 +10 -12
- package/lib/tools/full-screen/index.js.map +1 -1
- package/lib/tools/index.js +11 -12
- package/lib/tools/index.js.map +1 -1
- package/lib/tools/layer-control/index.js +22 -26
- package/lib/tools/layer-control/index.js.map +1 -1
- package/lib/tools/refresh/index.js +10 -12
- 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 +9 -11
- package/lib/tools-item/index.js.map +1 -1
- package/lib/use-props/index.js +1 -2
- 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 +31 -33
- package/lib/wms-layer/WmsLayer.js.map +1 -1
- package/lib/wms-layer/index.js +10 -11
- 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 +120 -120
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["require"],"sources":["tools/style/index.js"],"sourcesContent":["import 'antd/lib/auto-complete/style';\nimport 'antd/lib/checkbox/style';\nimport 'antd/lib/popover/style';\nimport 'antd/lib/radio/style';\nimport 'antd/lib/select/style';\nimport 'antd/lib/table/style';\nimport 'antd/lib/tabs/style';\nimport 'antd/lib/segmented/style';\nimport 'antd/lib/empty/style';\nimport '../components/ItemWrap/index.less';\nimport '../components/Modal/index.less';\nimport '../components/RequiredLabel/index.less';\nimport '../components/Table/index.less';\nimport '../components/ToolItem/index.less';\nimport '../components/ToolsSelect/index.less';\nimport '../components/Info/index.less';\nimport '../Layer/index.less';\nimport '../Toolbox/index.less';\nimport './index.less';\n"],"mappings":";;AAAAA,OAAA;AACAA,OAAA;AACAA,OAAA;AACAA,OAAA;AACAA,OAAA;AACAA,OAAA;AACAA,OAAA;AACAA,OAAA;AACAA,OAAA;AACAA,OAAA;AACAA,OAAA;AACAA,OAAA;AACAA,OAAA;AACAA,OAAA;AACAA,OAAA;AACAA,OAAA;AACAA,OAAA;AACAA,OAAA;AACAA,OAAA"}
|
|
1
|
+
{"version":3,"file":"index.js","names":["require"],"sources":["tools/style/index.js"],"sourcesContent":["import 'antd/lib/auto-complete/style';\r\nimport 'antd/lib/checkbox/style';\r\nimport 'antd/lib/popover/style';\r\nimport 'antd/lib/radio/style';\r\nimport 'antd/lib/select/style';\r\nimport 'antd/lib/table/style';\r\nimport 'antd/lib/tabs/style';\r\nimport 'antd/lib/segmented/style';\r\nimport 'antd/lib/empty/style';\r\nimport '../components/ItemWrap/index.less';\r\nimport '../components/Modal/index.less';\r\nimport '../components/RequiredLabel/index.less';\r\nimport '../components/Table/index.less';\r\nimport '../components/ToolItem/index.less';\r\nimport '../components/ToolsSelect/index.less';\r\nimport '../components/Info/index.less';\r\nimport '../Layer/index.less';\r\nimport '../Toolbox/index.less';\r\nimport './index.less';\r\n"],"mappings":";;AAAAA,OAAA;AACAA,OAAA;AACAA,OAAA;AACAA,OAAA;AACAA,OAAA;AACAA,OAAA;AACAA,OAAA;AACAA,OAAA;AACAA,OAAA;AACAA,OAAA;AACAA,OAAA;AACAA,OAAA;AACAA,OAAA;AACAA,OAAA;AACAA,OAAA;AACAA,OAAA;AACAA,OAAA;AACAA,OAAA;AACAA,OAAA","ignoreList":[]}
|
|
@@ -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(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
4
4
|
Object.defineProperty(exports, "__esModule", {
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
@@ -10,15 +10,14 @@ 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
|
|
16
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
13
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
14
|
+
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, "default": e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
|
|
15
|
+
function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }
|
|
17
16
|
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."); }
|
|
18
|
-
function _unsupportedIterableToArray(
|
|
19
|
-
function _arrayLikeToArray(
|
|
20
|
-
function _iterableToArrayLimit(
|
|
21
|
-
function _arrayWithHoles(
|
|
17
|
+
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
|
|
18
|
+
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
19
|
+
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
20
|
+
function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
|
|
22
21
|
var ToolsItem = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
|
23
22
|
var hideCloseBtn = props.hideCloseBtn,
|
|
24
23
|
children = props.children;
|
|
@@ -62,6 +61,5 @@ var ToolsItem = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
|
|
62
61
|
})
|
|
63
62
|
}, children));
|
|
64
63
|
});
|
|
65
|
-
var _default = ToolsItem;
|
|
66
|
-
exports["default"] = _default;
|
|
64
|
+
var _default = exports["default"] = ToolsItem;
|
|
67
65
|
//# 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","e","__esModule","t","WeakMap","r","n","o","i","f","__proto__","_typeof","has","get","set","_t","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","_slicedToArray","_arrayWithHoles","_iterableToArrayLimit","_unsupportedIterableToArray","_nonIterableRest","TypeError","a","_arrayLikeToArray","toString","slice","constructor","name","Array","from","test","length","l","Symbol","iterator","u","next","done","push","value","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';\r\nimport { Popover } from 'antd';\r\nimport { CloseOutlined } from '@ant-design/icons';\r\nimport classnames from 'classnames';\r\nimport { isFunction } from 'lodash';\r\n\r\nconst ToolsItem = forwardRef((props, ref) => {\r\n const { hideCloseBtn, children } = props;\r\n const [visible, setVisible] = useState(false);\r\n\r\n useImperativeHandle(ref, () => ({\r\n onVisibleChange: (visible = false) => {\r\n setVisible(visible);\r\n },\r\n }));\r\n\r\n if (!props.content) {\r\n return (\r\n <li className={classnames('ol-map-tools-item', { 'ol-map-tools-active-item': visible })}>\r\n {children}\r\n </li>\r\n );\r\n }\r\n\r\n const content = () => (\r\n <>\r\n {!hideCloseBtn && (\r\n <CloseOutlined\r\n className={classnames('ol-map-tools-close-btn')}\r\n onClick={() => setVisible(false)}\r\n />\r\n )}\r\n\r\n {props.content && (isFunction(props.content) ? props.content() : props.content)}\r\n </>\r\n );\r\n return (\r\n <Popover\r\n visible={visible}\r\n placement=\"rightTop\"\r\n trigger=\"click\"\r\n content={content}\r\n onVisibleChange={setVisible}\r\n overlayClassName={classnames('ol-map-tools-item-popover')}\r\n >\r\n <li className={classnames('ol-map-tools-item', { 'ol-map-tools-active-item': visible })}>\r\n {children}\r\n </li>\r\n </Popover>\r\n );\r\n});\r\n\r\nexport default ToolsItem;\r\n"],"mappings":";;;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,KAAA,GAAAD,OAAA;AACA,IAAAE,MAAA,GAAAF,OAAA;AACA,IAAAG,WAAA,GAAAC,sBAAA,CAAAJ,OAAA;AACA,IAAAK,OAAA,GAAAL,OAAA;AAAoC,SAAAI,uBAAAE,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,gBAAAA,CAAA;AAAA,SAAAP,wBAAAO,CAAA,EAAAE,CAAA,6BAAAC,OAAA,MAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAV,uBAAA,YAAAA,wBAAAO,CAAA,EAAAE,CAAA,SAAAA,CAAA,IAAAF,CAAA,IAAAA,CAAA,CAAAC,UAAA,SAAAD,CAAA,MAAAM,CAAA,EAAAC,CAAA,EAAAC,CAAA,KAAAC,SAAA,mBAAAT,CAAA,iBAAAA,CAAA,gBAAAU,OAAA,CAAAV,CAAA,0BAAAA,CAAA,SAAAQ,CAAA,MAAAF,CAAA,GAAAJ,CAAA,GAAAG,CAAA,GAAAD,CAAA,QAAAE,CAAA,CAAAK,GAAA,CAAAX,CAAA,UAAAM,CAAA,CAAAM,GAAA,CAAAZ,CAAA,GAAAM,CAAA,CAAAO,GAAA,CAAAb,CAAA,EAAAQ,CAAA,cAAAM,EAAA,IAAAd,CAAA,gBAAAc,EAAA,OAAAC,cAAA,CAAAC,IAAA,CAAAhB,CAAA,EAAAc,EAAA,OAAAP,CAAA,IAAAD,CAAA,GAAAW,MAAA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EAAE,IAAAC,sBAAU,EAAC,mBAAmB,EAAE;MAAE,0BAA0B,EAAET;IAAQ,CAAC;EAAE,GACnFJ,QACD,CACC,CAAC;AAElB,CAAC,CAAC;AAAC,IAAAsB,QAAA,GAAAC,OAAA,cAEY5B,SAAS","ignoreList":[]}
|
package/lib/use-props/index.js
CHANGED
|
@@ -10,6 +10,5 @@ var useProps = function useProps() {
|
|
|
10
10
|
var params = (0, _react.useContext)(_provider.Context);
|
|
11
11
|
return params;
|
|
12
12
|
};
|
|
13
|
-
var _default = useProps;
|
|
14
|
-
exports["default"] = _default;
|
|
13
|
+
var _default = exports["default"] = useProps;
|
|
15
14
|
//# 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';\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,
|
|
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 '../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","ignoreList":[]}
|
|
@@ -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":"","ignoreList":[]}
|
|
@@ -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":"","ignoreList":[]}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
function _typeof(
|
|
3
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
4
4
|
Object.defineProperty(exports, "__esModule", {
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
@@ -14,29 +14,31 @@ 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
|
|
17
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
18
|
+
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; }
|
|
19
|
+
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; }
|
|
20
|
+
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
21
|
+
function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
|
|
22
|
+
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
23
|
+
function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
24
|
+
function _possibleConstructorReturn(t, e) { if (e && ("object" == _typeof(e) || "function" == typeof e)) return e; if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined"); return _assertThisInitialized(t); }
|
|
25
|
+
function _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return e; }
|
|
26
|
+
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
27
|
+
function _superPropGet(t, o, e, r) { var p = _get(_getPrototypeOf(1 & r ? t.prototype : t), o, e); return 2 & r && "function" == typeof p ? function (t) { return p.apply(e, t); } : p; }
|
|
28
|
+
function _get() { return _get = "undefined" != typeof Reflect && Reflect.get ? Reflect.get.bind() : function (e, t, r) { var p = _superPropBase(e, t); if (p) { var n = Object.getOwnPropertyDescriptor(p, t); return n.get ? n.get.call(arguments.length < 3 ? e : r) : n.value; } }, _get.apply(null, arguments); }
|
|
29
|
+
function _inherits(t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, "prototype", { writable: !1 }), e && _setPrototypeOf(t, e); }
|
|
30
|
+
function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }
|
|
31
|
+
function _superPropSet(t, e, o, r, p, f) { return _set(_getPrototypeOf(f ? t.prototype : t), e, o, r, p); }
|
|
32
|
+
function set(e, r, t, o) { return set = "undefined" != typeof Reflect && Reflect.set ? Reflect.set : function (e, r, t, o) { var f, i = _superPropBase(e, r); if (i) { if ((f = Object.getOwnPropertyDescriptor(i, r)).set) return f.set.call(o, t), !0; if (!f.writable) return !1; } if (f = Object.getOwnPropertyDescriptor(o, r)) { if (!f.writable) return !1; f.value = t, Object.defineProperty(o, r, f); } else _defineProperty(o, r, t); return !0; }, set(e, r, t, o); }
|
|
33
|
+
function _set(e, r, t, o, f) { if (!set(e, r, t, o || e) && f) throw new TypeError("failed to set property"); return t; }
|
|
34
|
+
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
35
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
36
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
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); }
|
|
37
39
|
var geoJsonFormat = new _format.GeoJSON();
|
|
38
40
|
var tenantId = (0, _getUrlParam["default"])('tenantId') || (0, _getSystemInfo["default"])('tenantId') || '';
|
|
39
|
-
var getFilter = function getFilter(group) {
|
|
41
|
+
var getFilter = exports.getFilter = function getFilter(group) {
|
|
40
42
|
var cql_filter = '';
|
|
41
43
|
if (group !== null && group !== void 0 && group.length) {
|
|
42
44
|
var filterGroup = group.filter(function (item) {
|
|
@@ -50,7 +52,6 @@ var getFilter = function getFilter(group) {
|
|
|
50
52
|
}
|
|
51
53
|
return cql_filter;
|
|
52
54
|
};
|
|
53
|
-
exports.getFilter = getFilter;
|
|
54
55
|
var transformWhere = function transformWhere(field, value, operation) {
|
|
55
56
|
var where = "".concat(field, " ").concat(operation, " '").concat(value, "'");
|
|
56
57
|
if (operation === '===') {
|
|
@@ -64,11 +65,9 @@ var transformWhere = function transformWhere(field, value, operation) {
|
|
|
64
65
|
}
|
|
65
66
|
return where;
|
|
66
67
|
};
|
|
67
|
-
var WmsLayer = /*#__PURE__*/function (_Tile) {
|
|
68
|
-
_inherits(WmsLayer, _Tile);
|
|
69
|
-
var _super = _createSuper(WmsLayer);
|
|
68
|
+
var WmsLayer = exports["default"] = /*#__PURE__*/function (_Tile) {
|
|
70
69
|
function WmsLayer(options) {
|
|
71
|
-
var
|
|
70
|
+
var _this;
|
|
72
71
|
_classCallCheck(this, WmsLayer);
|
|
73
72
|
var url = options.url,
|
|
74
73
|
params = options.params,
|
|
@@ -106,8 +105,8 @@ var WmsLayer = /*#__PURE__*/function (_Tile) {
|
|
|
106
105
|
});
|
|
107
106
|
}
|
|
108
107
|
}
|
|
109
|
-
_this =
|
|
110
|
-
|
|
108
|
+
_this = _callSuper(this, WmsLayer, [options]);
|
|
109
|
+
_superPropSet((_this, WmsLayer), "show", show, _this, 1, 1);
|
|
111
110
|
// 图层标识
|
|
112
111
|
_this.url = url;
|
|
113
112
|
_this._params = _objectSpread({
|
|
@@ -166,10 +165,11 @@ var WmsLayer = /*#__PURE__*/function (_Tile) {
|
|
|
166
165
|
}
|
|
167
166
|
|
|
168
167
|
// 重写父类的属性访问器
|
|
169
|
-
|
|
168
|
+
_inherits(WmsLayer, _Tile);
|
|
169
|
+
return _createClass(WmsLayer, [{
|
|
170
170
|
key: "show",
|
|
171
171
|
get: function get() {
|
|
172
|
-
return
|
|
172
|
+
return _superPropGet(WmsLayer, "show", this, 1);
|
|
173
173
|
},
|
|
174
174
|
set: function set(value) {
|
|
175
175
|
this.setVisible(value);
|
|
@@ -309,7 +309,5 @@ var WmsLayer = /*#__PURE__*/function (_Tile) {
|
|
|
309
309
|
return (0, _layer2.getWFSFeatureInfoByLayer)(layer, cql_filter);
|
|
310
310
|
}
|
|
311
311
|
}]);
|
|
312
|
-
return WmsLayer;
|
|
313
312
|
}(_layer.Tile);
|
|
314
|
-
exports["default"] = WmsLayer;
|
|
315
313
|
//# sourceMappingURL=WmsLayer.js.map
|