@vtx/ol-map 1.0.144 → 1.0.145
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/lib/_util/EventEmitter.js +78 -0
- package/lib/_util/EventEmitter.js.map +1 -0
- package/lib/_util/StyleCache.js +46 -0
- package/lib/_util/StyleCache.js.map +1 -0
- package/lib/_util/encryptParams.js +60 -0
- package/lib/_util/encryptParams.js.map +1 -0
- package/lib/_util/filterSpecialCharacters.js +90 -0
- package/lib/_util/filterSpecialCharacters.js.map +1 -0
- package/lib/_util/getComponentProps.js +14 -0
- package/lib/_util/getComponentProps.js.map +1 -0
- package/lib/_util/getCookie.js +24 -0
- package/lib/_util/getCookie.js.map +1 -0
- package/lib/_util/getDefaultMapInfo.js +50 -0
- package/lib/_util/getDefaultMapInfo.js.map +1 -0
- package/lib/_util/getSystemInfo.js +26 -0
- package/lib/_util/getSystemInfo.js.map +1 -0
- package/lib/_util/getToken.js +27 -0
- package/lib/_util/getToken.js.map +1 -0
- package/lib/_util/getUrlParam.js +15 -0
- package/lib/_util/getUrlParam.js.map +1 -0
- package/lib/_util/http.js +176 -0
- package/lib/_util/http.js.map +1 -0
- package/lib/_util/isFunction.js +10 -0
- package/lib/_util/isFunction.js.map +1 -0
- package/lib/_util/isObject.js +10 -0
- package/lib/_util/isObject.js.map +1 -0
- package/lib/_util/layer.js +152 -0
- package/lib/_util/layer.js.map +1 -0
- package/lib/_util/mapTool.js +188 -0
- package/lib/_util/mapTool.js.map +1 -0
- package/lib/_util/projzh/datum/bd-09.js +44 -0
- package/lib/_util/projzh/datum/bd-09.js.map +1 -0
- package/lib/_util/projzh/datum/gcj-02.js +72 -0
- package/lib/_util/projzh/datum/gcj-02.js.map +1 -0
- package/lib/_util/projzh/datum/index.js +14 -0
- package/lib/_util/projzh/datum/index.js.map +1 -0
- package/lib/_util/projzh/index.js +40 -0
- package/lib/_util/projzh/index.js.map +1 -0
- package/lib/_util/projzh/projection/baidu-mercator.js +74 -0
- package/lib/_util/projzh/projection/baidu-mercator.js.map +1 -0
- package/lib/_util/projzh/projection/index.js +14 -0
- package/lib/_util/projzh/projection/index.js.map +1 -0
- package/lib/_util/projzh/projection/spherical-mercator.js +25 -0
- package/lib/_util/projzh/projection/spherical-mercator.js.map +1 -0
- package/lib/_util/projzh/util.js +27 -0
- package/lib/_util/projzh/util.js.map +1 -0
- package/lib/_util/search.js +130 -0
- package/lib/_util/search.js.map +1 -0
- package/lib/_util/setCookie.js +15 -0
- package/lib/_util/setCookie.js.map +1 -0
- package/lib/_util/stringToFun.js +25 -0
- package/lib/_util/stringToFun.js.map +1 -0
- package/lib/_util/transform.js +169 -0
- package/lib/_util/transform.js.map +1 -0
- package/lib/_util/useColSize.js +28 -0
- package/lib/_util/useColSize.js.map +1 -0
- package/lib/_util/useInterval.js +19 -0
- package/lib/_util/useInterval.js.map +1 -0
- package/lib/_util/useSet.js +44 -0
- package/lib/_util/useSet.js.map +1 -0
- package/lib/analysis-layer/index.js +449 -0
- package/lib/analysis-layer/index.js.map +1 -0
- package/lib/analysis-layer/style/css.js +2 -0
- package/lib/analysis-layer/style/css.js.map +1 -0
- package/lib/analysis-layer/style/index.js +2 -0
- package/lib/analysis-layer/style/index.js.map +1 -0
- package/lib/assets/arrow.png +0 -0
- package/lib/assets/base-img-1.png +0 -0
- package/lib/assets/base-img-2.png +0 -0
- package/lib/assets/base-img-3.png +0 -0
- package/lib/assets/base-img-4.png +0 -0
- package/lib/assets/base-img-5.png +0 -0
- package/lib/assets/base-img-6.png +0 -0
- package/lib/assets/base-img.png +0 -0
- package/lib/assets/bz.png +0 -0
- package/lib/assets/img.png +0 -0
- package/lib/assets/kz.png +0 -0
- package/lib/assets/ll.png +0 -0
- package/lib/assets/location.png +0 -0
- package/lib/assets/noLocation.png +0 -0
- package/lib/assets/people.png +0 -0
- package/lib/assets/qd.png +0 -0
- package/lib/assets/sw.png +0 -0
- package/lib/assets/yl.png +0 -0
- package/lib/assets/zd.png +0 -0
- package/lib/buffer-draw/BufferDraw.js +398 -0
- package/lib/buffer-draw/BufferDraw.js.map +1 -0
- package/lib/buffer-draw/index.js +56 -0
- package/lib/buffer-draw/index.js.map +1 -0
- package/lib/buffer-draw/style/css.js +2 -0
- package/lib/buffer-draw/style/css.js.map +1 -0
- package/lib/buffer-draw/style/index.js +2 -0
- package/lib/buffer-draw/style/index.js.map +1 -0
- package/lib/circle/Circle.js +51 -0
- package/lib/circle/Circle.js.map +1 -0
- package/lib/circle/index.js +64 -0
- package/lib/circle/index.js.map +1 -0
- package/lib/circle/style/css.js +2 -0
- package/lib/circle/style/css.js.map +1 -0
- package/lib/circle/style/index.js +2 -0
- package/lib/circle/style/index.js.map +1 -0
- package/lib/config.js +12 -0
- package/lib/config.js.map +1 -0
- package/lib/convertCamelToCSS.js +23 -0
- package/lib/convertCamelToCSS.js.map +1 -0
- package/lib/dom/Dom.js +39 -0
- package/lib/dom/Dom.js.map +1 -0
- package/lib/dom/index.js +61 -0
- package/lib/dom/index.js.map +1 -0
- package/lib/dom/style/css.js +2 -0
- package/lib/dom/style/css.js.map +1 -0
- package/lib/dom/style/index.js +2 -0
- package/lib/dom/style/index.js.map +1 -0
- package/lib/events/index.js +25 -0
- package/lib/events/index.js.map +1 -0
- package/lib/feature-draw/FeatureDraw.js +230 -0
- package/lib/feature-draw/FeatureDraw.js.map +1 -0
- package/lib/feature-draw/index.js +73 -0
- package/lib/feature-draw/index.js.map +1 -0
- package/lib/feature-draw/style/css.js +2 -0
- package/lib/feature-draw/style/css.js.map +1 -0
- package/lib/feature-draw/style/index.js +2 -0
- package/lib/feature-draw/style/index.js.map +1 -0
- package/lib/feature-layer/FeatureLayer.js +1039 -0
- package/lib/feature-layer/FeatureLayer.js.map +1 -0
- package/lib/feature-layer/MyCluster.js +150 -0
- package/lib/feature-layer/MyCluster.js.map +1 -0
- package/lib/feature-layer/createFeatureCollection.js +167 -0
- package/lib/feature-layer/createFeatureCollection.js.map +1 -0
- package/lib/feature-layer/index.js +154 -0
- package/lib/feature-layer/index.js.map +1 -0
- package/lib/feature-layer/style/css.js +4 -0
- package/lib/feature-layer/style/css.js.map +1 -0
- package/lib/feature-layer/style/index.css +0 -0
- package/lib/feature-layer/style/index.js +4 -0
- package/lib/feature-layer/style/index.js.map +1 -0
- package/lib/feature-layer/style/index.less +0 -0
- package/lib/flow-line-layer/FlowLineLayer.js +197 -0
- package/lib/flow-line-layer/FlowLineLayer.js.map +1 -0
- package/lib/flow-line-layer/index.js +126 -0
- package/lib/flow-line-layer/index.js.map +1 -0
- package/lib/flow-line-layer/style/css.js +4 -0
- package/lib/flow-line-layer/style/css.js.map +1 -0
- package/lib/flow-line-layer/style/index.css +0 -0
- package/lib/flow-line-layer/style/index.js +4 -0
- package/lib/flow-line-layer/style/index.js.map +1 -0
- package/lib/flow-line-layer/style/index.less +0 -0
- package/lib/fly-line-layer/FlyLineLayer.js +217 -0
- package/lib/fly-line-layer/FlyLineLayer.js.map +1 -0
- package/lib/fly-line-layer/index.js +108 -0
- package/lib/fly-line-layer/index.js.map +1 -0
- package/lib/fly-line-layer/style/css.js +4 -0
- package/lib/fly-line-layer/style/css.js.map +1 -0
- package/lib/fly-line-layer/style/index.css +0 -0
- package/lib/fly-line-layer/style/index.js +4 -0
- package/lib/fly-line-layer/style/index.js.map +1 -0
- package/lib/fly-line-layer/style/index.less +0 -0
- package/lib/group-layer/GroupLayer.js +132 -0
- package/lib/group-layer/GroupLayer.js.map +1 -0
- package/lib/group-layer/index.js +73 -0
- package/lib/group-layer/index.js.map +1 -0
- package/lib/group-layer/style/css.js +4 -0
- package/lib/group-layer/style/css.js.map +1 -0
- package/lib/group-layer/style/index.css +0 -0
- package/lib/group-layer/style/index.js +4 -0
- package/lib/group-layer/style/index.js.map +1 -0
- package/lib/group-layer/style/index.less +0 -0
- package/lib/heatmap-layer/HeatmapLayer.js +191 -0
- package/lib/heatmap-layer/HeatmapLayer.js.map +1 -0
- package/lib/heatmap-layer/index.js +93 -0
- package/lib/heatmap-layer/index.js.map +1 -0
- package/lib/heatmap-layer/style/css.js +4 -0
- package/lib/heatmap-layer/style/css.js.map +1 -0
- package/lib/heatmap-layer/style/index.css +0 -0
- package/lib/heatmap-layer/style/index.js +4 -0
- package/lib/heatmap-layer/style/index.js.map +1 -0
- package/lib/heatmap-layer/style/index.less +0 -0
- package/lib/high-layer/HighLayer.js +199 -0
- package/lib/high-layer/HighLayer.js.map +1 -0
- package/lib/high-layer/index.js +44 -0
- package/lib/high-layer/index.js.map +1 -0
- package/lib/high-layer/style/css.js +2 -0
- package/lib/high-layer/style/css.js.map +1 -0
- package/lib/high-layer/style/index.js +2 -0
- package/lib/high-layer/style/index.js.map +1 -0
- package/lib/image-layer/ImageLayer.js +330 -0
- package/lib/image-layer/ImageLayer.js.map +1 -0
- package/lib/image-layer/ImageTileLayer.js +332 -0
- package/lib/image-layer/ImageTileLayer.js.map +1 -0
- package/lib/image-layer/index.js +100 -0
- package/lib/image-layer/index.js.map +1 -0
- package/lib/image-layer/style/css.js +4 -0
- package/lib/image-layer/style/css.js.map +1 -0
- package/lib/image-layer/style/index.css +0 -0
- package/lib/image-layer/style/index.js +4 -0
- package/lib/image-layer/style/index.js.map +1 -0
- package/lib/image-layer/style/index.less +0 -0
- package/lib/index.js +201 -0
- package/lib/index.js.map +1 -0
- package/lib/legend/index.js +220 -0
- package/lib/legend/index.js.map +1 -0
- package/lib/legend/style/css.js +8 -0
- package/lib/legend/style/css.js.map +1 -0
- package/lib/legend/style/index.css +74 -0
- package/lib/legend/style/index.js +8 -0
- package/lib/legend/style/index.js.map +1 -0
- package/lib/legend/style/index.less +73 -0
- package/lib/map/Analysis.js +148 -0
- package/lib/map/Analysis.js.map +1 -0
- package/lib/map/Layers.js +337 -0
- package/lib/map/Layers.js.map +1 -0
- package/lib/map/Popup.js +370 -0
- package/lib/map/Popup.js.map +1 -0
- package/lib/map/ScaleDenominator.js +68 -0
- package/lib/map/ScaleDenominator.js.map +1 -0
- package/lib/map/Test.js +144 -0
- package/lib/map/Test.js.map +1 -0
- package/lib/map/getBaseLayers/imagery/amap/AmapImageryProvider.js +163 -0
- package/lib/map/getBaseLayers/imagery/amap/AmapImageryProvider.js.map +1 -0
- package/lib/map/getBaseLayers/imagery/baidu/BaiduImageryProvider.js +84 -0
- package/lib/map/getBaseLayers/imagery/baidu/BaiduImageryProvider.js.map +1 -0
- package/lib/map/getBaseLayers/imagery/geoq/GeoQImageryProvider.js +65 -0
- package/lib/map/getBaseLayers/imagery/geoq/GeoQImageryProvider.js.map +1 -0
- package/lib/map/getBaseLayers/imagery/tdt/TdtImageryProvider.js +84 -0
- package/lib/map/getBaseLayers/imagery/tdt/TdtImageryProvider.js.map +1 -0
- package/lib/map/getBaseLayers/index.js +46 -0
- package/lib/map/getBaseLayers/index.js.map +1 -0
- package/lib/map/index.js +819 -0
- package/lib/map/index.js.map +1 -0
- package/lib/map/style/css.js +5 -0
- package/lib/map/style/css.js.map +1 -0
- package/lib/map/style/index.css +171 -0
- package/lib/map/style/index.js +5 -0
- package/lib/map/style/index.js.map +1 -0
- package/lib/map/style/index.less +152 -0
- package/lib/map-icon/svg/index.js +81 -0
- package/lib/map-icon/svg/index.js.map +1 -0
- package/lib/map-icon/svg/tuceng.svg.js +2 -0
- package/lib/map-icon/svg/tuceng.svg.js.map +1 -0
- package/lib/marker/Marker.js +105 -0
- package/lib/marker/Marker.js.map +1 -0
- package/lib/marker/index.js +61 -0
- package/lib/marker/index.js.map +1 -0
- package/lib/marker/style/css.js +2 -0
- package/lib/marker/style/css.js.map +1 -0
- package/lib/marker/style/index.js +2 -0
- package/lib/marker/style/index.js.map +1 -0
- package/lib/path-line-layer/PathLineLayer.js +45 -0
- package/lib/path-line-layer/PathLineLayer.js.map +1 -0
- package/lib/path-line-layer/getPathLineStyles.js +71 -0
- package/lib/path-line-layer/getPathLineStyles.js.map +1 -0
- package/lib/path-line-layer/index.js +151 -0
- package/lib/path-line-layer/index.js.map +1 -0
- package/lib/path-line-layer/style/css.js +4 -0
- package/lib/path-line-layer/style/css.js.map +1 -0
- package/lib/path-line-layer/style/index.css +0 -0
- package/lib/path-line-layer/style/index.js +4 -0
- package/lib/path-line-layer/style/index.js.map +1 -0
- package/lib/path-line-layer/style/index.less +0 -0
- package/lib/path-play-back/PathPlayBack.js +674 -0
- package/lib/path-play-back/PathPlayBack.js.map +1 -0
- package/lib/path-play-back/index.js +75 -0
- package/lib/path-play-back/index.js.map +1 -0
- package/lib/path-play-back/style/css.js +2 -0
- package/lib/path-play-back/style/css.js.map +1 -0
- package/lib/path-play-back/style/index.js +2 -0
- package/lib/path-play-back/style/index.js.map +1 -0
- package/lib/poi-search/Location.js +62 -0
- package/lib/poi-search/Location.js.map +1 -0
- package/lib/poi-search/PoiList.js +115 -0
- package/lib/poi-search/PoiList.js.map +1 -0
- package/lib/poi-search/Search.js +207 -0
- package/lib/poi-search/Search.js.map +1 -0
- package/lib/poi-search/index.js +172 -0
- package/lib/poi-search/index.js.map +1 -0
- package/lib/poi-search/style/css.js +8 -0
- package/lib/poi-search/style/css.js.map +1 -0
- package/lib/poi-search/style/index.css +96 -0
- package/lib/poi-search/style/index.js +8 -0
- package/lib/poi-search/style/index.js.map +1 -0
- package/lib/poi-search/style/index.less +97 -0
- package/lib/point/Point.js +57 -0
- package/lib/point/Point.js.map +1 -0
- package/lib/point/index.js +61 -0
- package/lib/point/index.js.map +1 -0
- package/lib/point/style/css.js +2 -0
- package/lib/point/style/css.js.map +1 -0
- package/lib/point/style/index.js +2 -0
- package/lib/point/style/index.js.map +1 -0
- package/lib/polygon/Polygon.js +51 -0
- package/lib/polygon/Polygon.js.map +1 -0
- package/lib/polygon/index.js +61 -0
- package/lib/polygon/index.js.map +1 -0
- package/lib/polygon/style/css.js +2 -0
- package/lib/polygon/style/css.js.map +1 -0
- package/lib/polygon/style/index.js +2 -0
- package/lib/polygon/style/index.js.map +1 -0
- package/lib/polyline/Polyline.js +51 -0
- package/lib/polyline/Polyline.js.map +1 -0
- package/lib/polyline/index.js +61 -0
- package/lib/polyline/index.js.map +1 -0
- package/lib/polyline/style/css.js +2 -0
- package/lib/polyline/style/css.js.map +1 -0
- package/lib/polyline/style/index.js +2 -0
- package/lib/polyline/style/index.js.map +1 -0
- package/lib/popup/index.js +202 -0
- package/lib/popup/index.js.map +1 -0
- package/lib/popup/style/css.js +4 -0
- package/lib/popup/style/css.js.map +1 -0
- package/lib/popup/style/index.css +131 -0
- package/lib/popup/style/index.js +4 -0
- package/lib/popup/style/index.js.map +1 -0
- package/lib/popup/style/index.less +129 -0
- package/lib/provider/index.js +12 -0
- package/lib/provider/index.js.map +1 -0
- package/lib/provider/style/css.js +2 -0
- package/lib/provider/style/css.js.map +1 -0
- package/lib/provider/style/index.js +2 -0
- package/lib/provider/style/index.js.map +1 -0
- package/lib/renderer/Fill.js +37 -0
- package/lib/renderer/Fill.js.map +1 -0
- package/lib/renderer/Stroke.js +39 -0
- package/lib/renderer/Stroke.js.map +1 -0
- package/lib/renderer/index.js +137 -0
- package/lib/renderer/index.js.map +1 -0
- package/lib/renderer/style/css.js +4 -0
- package/lib/renderer/style/css.js.map +1 -0
- package/lib/renderer/style/index.css +0 -0
- package/lib/renderer/style/index.js +4 -0
- package/lib/renderer/style/index.js.map +1 -0
- package/lib/renderer/style/index.less +0 -0
- package/lib/renderer/transformRgb.js +33 -0
- package/lib/renderer/transformRgb.js.map +1 -0
- package/lib/search-map/VtxModal.js +202 -0
- package/lib/search-map/VtxModal.js.map +1 -0
- package/lib/search-map/index.js +416 -0
- package/lib/search-map/index.js.map +1 -0
- package/lib/search-map/style/css.js +6 -0
- package/lib/search-map/style/css.js.map +1 -0
- package/lib/search-map/style/index.css +73 -0
- package/lib/search-map/style/index.js +6 -0
- package/lib/search-map/style/index.js.map +1 -0
- package/lib/search-map/style/index.less +83 -0
- package/lib/search-map/style/modal.css +54 -0
- package/lib/search-map/style/modal.less +58 -0
- package/lib/style/index.css +0 -0
- package/lib/style/index.less +2 -0
- package/lib/style/themes/compact.css +0 -0
- package/lib/style/themes/compact.less +1 -0
- package/lib/style/themes/dark.css +0 -0
- package/lib/style/themes/dark.less +9 -0
- package/lib/style/themes/default.css +0 -0
- package/lib/style/themes/default.less +7 -0
- package/lib/style/themes/index.css +0 -0
- package/lib/style/themes/index.less +1 -0
- package/lib/style/themes/variable.css +0 -0
- package/lib/style/themes/variable.less +5 -0
- package/lib/tile-layer/TileLayer.js +85 -0
- package/lib/tile-layer/TileLayer.js.map +1 -0
- package/lib/tile-layer/index.js +52 -0
- package/lib/tile-layer/index.js.map +1 -0
- package/lib/tile-layer/style/css.js +4 -0
- package/lib/tile-layer/style/css.js.map +1 -0
- package/lib/tile-layer/style/index.css +0 -0
- package/lib/tile-layer/style/index.js +4 -0
- package/lib/tile-layer/style/index.js.map +1 -0
- package/lib/tile-layer/style/index.less +0 -0
- package/lib/tools/Layer/LayerService.js +182 -0
- package/lib/tools/Layer/LayerService.js.map +1 -0
- package/lib/tools/Layer/LayersCheckService.js +188 -0
- package/lib/tools/Layer/LayersCheckService.js.map +1 -0
- package/lib/tools/Layer/index.css +50 -0
- package/lib/tools/Layer/index.js +225 -0
- package/lib/tools/Layer/index.js.map +1 -0
- package/lib/tools/Layer/index.less +43 -0
- package/lib/tools/Search/index.js +295 -0
- package/lib/tools/Search/index.js.map +1 -0
- package/lib/tools/Toolbox/BoxSelect/index.js +19 -0
- package/lib/tools/Toolbox/BoxSelect/index.js.map +1 -0
- package/lib/tools/Toolbox/CircleSelect/index.js +19 -0
- package/lib/tools/Toolbox/CircleSelect/index.js.map +1 -0
- package/lib/tools/Toolbox/EagleEye/index.js +55 -0
- package/lib/tools/Toolbox/EagleEye/index.js.map +1 -0
- package/lib/tools/Toolbox/MapBookmark/Bookmark.js +147 -0
- package/lib/tools/Toolbox/MapBookmark/Bookmark.js.map +1 -0
- package/lib/tools/Toolbox/MapBookmark/index.css +18 -0
- package/lib/tools/Toolbox/MapBookmark/index.js +428 -0
- package/lib/tools/Toolbox/MapBookmark/index.js.map +1 -0
- package/lib/tools/Toolbox/MapBookmark/index.less +20 -0
- package/lib/tools/Toolbox/MapDownload/index.js +16 -0
- package/lib/tools/Toolbox/MapDownload/index.js.map +1 -0
- package/lib/tools/Toolbox/MapPrint/index.css +4 -0
- package/lib/tools/Toolbox/MapPrint/index.js +231 -0
- package/lib/tools/Toolbox/MapPrint/index.js.map +1 -0
- package/lib/tools/Toolbox/MapPrint/index.less +4 -0
- package/lib/tools/Toolbox/Measure/Area/index.js +16 -0
- package/lib/tools/Toolbox/Measure/Area/index.js.map +1 -0
- package/lib/tools/Toolbox/Measure/Distance/index.js +16 -0
- package/lib/tools/Toolbox/Measure/Distance/index.js.map +1 -0
- package/lib/tools/Toolbox/Measure/Measure.js +227 -0
- package/lib/tools/Toolbox/Measure/Measure.js.map +1 -0
- package/lib/tools/Toolbox/Measure/index.js +75 -0
- package/lib/tools/Toolbox/Measure/index.js.map +1 -0
- package/lib/tools/Toolbox/PolygonSelect/index.js +19 -0
- package/lib/tools/Toolbox/PolygonSelect/index.js.map +1 -0
- package/lib/tools/Toolbox/ScaleLine/index.js +57 -0
- package/lib/tools/Toolbox/ScaleLine/index.js.map +1 -0
- package/lib/tools/Toolbox/SelectTools/index.css +103 -0
- package/lib/tools/Toolbox/SelectTools/index.js +776 -0
- package/lib/tools/Toolbox/SelectTools/index.js.map +1 -0
- package/lib/tools/Toolbox/SelectTools/index.less +87 -0
- package/lib/tools/Toolbox/SpaceQuery/index.css +19 -0
- package/lib/tools/Toolbox/SpaceQuery/index.js +592 -0
- package/lib/tools/Toolbox/SpaceQuery/index.js.map +1 -0
- package/lib/tools/Toolbox/SpaceQuery/index.less +16 -0
- package/lib/tools/Toolbox/ZoomInput/index.css +6 -0
- package/lib/tools/Toolbox/ZoomInput/index.js +48 -0
- package/lib/tools/Toolbox/ZoomInput/index.js.map +1 -0
- package/lib/tools/Toolbox/ZoomInput/index.less +6 -0
- package/lib/tools/Toolbox/index.css +0 -0
- package/lib/tools/Toolbox/index.js +169 -0
- package/lib/tools/Toolbox/index.js.map +1 -0
- package/lib/tools/Toolbox/index.less +2 -0
- package/lib/tools/Utils/CreateOverlay.js +46 -0
- package/lib/tools/Utils/CreateOverlay.js.map +1 -0
- package/lib/tools/Utils/Draw.js +127 -0
- package/lib/tools/Utils/Draw.js.map +1 -0
- package/lib/tools/Utils/HighLayer.js +211 -0
- package/lib/tools/Utils/HighLayer.js.map +1 -0
- package/lib/tools/Utils/measure.js +246 -0
- package/lib/tools/Utils/measure.js.map +1 -0
- package/lib/tools/Utils/utils.js +263 -0
- package/lib/tools/Utils/utils.js.map +1 -0
- package/lib/tools/View/index.css +35 -0
- package/lib/tools/View/index.js +164 -0
- package/lib/tools/View/index.js.map +1 -0
- package/lib/tools/View/index.less +28 -0
- package/lib/tools/analysis-tool/index.js +111 -0
- package/lib/tools/analysis-tool/index.js.map +1 -0
- package/lib/tools/base-map-switch/index.js +148 -0
- package/lib/tools/base-map-switch/index.js.map +1 -0
- package/lib/tools/components/Chart/index.js +817 -0
- package/lib/tools/components/Chart/index.js.map +1 -0
- package/lib/tools/components/Icon/index.js +31 -0
- package/lib/tools/components/Icon/index.js.map +1 -0
- package/lib/tools/components/Info/index.css +39 -0
- package/lib/tools/components/Info/index.js +34 -0
- package/lib/tools/components/Info/index.js.map +1 -0
- package/lib/tools/components/Info/index.less +26 -0
- package/lib/tools/components/ItemWrap/index.css +43 -0
- package/lib/tools/components/ItemWrap/index.js +46 -0
- package/lib/tools/components/ItemWrap/index.js.map +1 -0
- package/lib/tools/components/ItemWrap/index.less +41 -0
- package/lib/tools/components/Modal/index.css +42 -0
- package/lib/tools/components/Modal/index.js +45 -0
- package/lib/tools/components/Modal/index.js.map +1 -0
- package/lib/tools/components/Modal/index.less +33 -0
- package/lib/tools/components/MyTabs/index.js +22 -0
- package/lib/tools/components/MyTabs/index.js.map +1 -0
- package/lib/tools/components/RequiredLabel/index.css +5 -0
- package/lib/tools/components/RequiredLabel/index.js +32 -0
- package/lib/tools/components/RequiredLabel/index.js.map +1 -0
- package/lib/tools/components/RequiredLabel/index.less +5 -0
- package/lib/tools/components/Select/index.js +32 -0
- package/lib/tools/components/Select/index.js.map +1 -0
- package/lib/tools/components/Table/assets/tableIcon.png +0 -0
- package/lib/tools/components/Table/index.css +10 -0
- package/lib/tools/components/Table/index.js +89 -0
- package/lib/tools/components/Table/index.js.map +1 -0
- package/lib/tools/components/Table/index.less +13 -0
- package/lib/tools/components/ToolItem/index.css +30 -0
- package/lib/tools/components/ToolItem/index.js +28 -0
- package/lib/tools/components/ToolItem/index.js.map +1 -0
- package/lib/tools/components/ToolItem/index.less +27 -0
- package/lib/tools/components/ToolsSelect/index.css +15 -0
- package/lib/tools/components/ToolsSelect/index.js +44 -0
- package/lib/tools/components/ToolsSelect/index.js.map +1 -0
- package/lib/tools/components/ToolsSelect/index.less +10 -0
- package/lib/tools/full-screen/index.js +45 -0
- package/lib/tools/full-screen/index.js.map +1 -0
- package/lib/tools/index.js +150 -0
- package/lib/tools/index.js.map +1 -0
- package/lib/tools/layer-control/index.js +169 -0
- package/lib/tools/layer-control/index.js.map +1 -0
- package/lib/tools/refresh/index.js +39 -0
- package/lib/tools/refresh/index.js.map +1 -0
- package/lib/tools/style/css.js +22 -0
- package/lib/tools/style/css.js.map +1 -0
- package/lib/tools/style/index.css +136 -0
- package/lib/tools/style/index.js +22 -0
- package/lib/tools/style/index.js.map +1 -0
- package/lib/tools/style/index.less +154 -0
- package/lib/tools-item/index.js +65 -0
- package/lib/tools-item/index.js.map +1 -0
- package/lib/use-props/index.js +14 -0
- package/lib/use-props/index.js.map +1 -0
- package/lib/use-props/style/css.js +2 -0
- package/lib/use-props/style/css.js.map +1 -0
- package/lib/use-props/style/index.js +2 -0
- package/lib/use-props/style/index.js.map +1 -0
- package/lib/wms-layer/WmsLayer.js +313 -0
- package/lib/wms-layer/WmsLayer.js.map +1 -0
- package/lib/wms-layer/index.js +97 -0
- package/lib/wms-layer/index.js.map +1 -0
- package/lib/wms-layer/style/css.js +4 -0
- package/lib/wms-layer/style/css.js.map +1 -0
- package/lib/wms-layer/style/index.css +0 -0
- package/lib/wms-layer/style/index.js +4 -0
- package/lib/wms-layer/style/index.js.map +1 -0
- package/lib/wms-layer/style/index.less +0 -0
- package/package.json +1 -1
|
@@ -0,0 +1,202 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports["default"] = void 0;
|
|
7
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
8
|
+
var _antd = require("antd");
|
|
9
|
+
var _classnames = _interopRequireDefault(require("classnames"));
|
|
10
|
+
var _icons = require("@ant-design/icons");
|
|
11
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
12
|
+
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); }
|
|
13
|
+
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); }
|
|
14
|
+
function _toConsumableArray(r) { return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread(); }
|
|
15
|
+
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
16
|
+
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; } }
|
|
17
|
+
function _iterableToArray(r) { if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r); }
|
|
18
|
+
function _arrayWithoutHoles(r) { if (Array.isArray(r)) return _arrayLikeToArray(r); }
|
|
19
|
+
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; }
|
|
20
|
+
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; }
|
|
21
|
+
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; }
|
|
22
|
+
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; }
|
|
23
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
24
|
+
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); }
|
|
25
|
+
var Context = /*#__PURE__*/_react["default"].createContext({
|
|
26
|
+
wrapDom: null
|
|
27
|
+
});
|
|
28
|
+
var Provider = Context.Provider;
|
|
29
|
+
|
|
30
|
+
// 最外层包裹容器
|
|
31
|
+
var Wrap = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
|
32
|
+
var children = props.children;
|
|
33
|
+
var dom = (0, _react.useRef)(null);
|
|
34
|
+
(0, _react.useImperativeHandle)(ref, function () {
|
|
35
|
+
return {
|
|
36
|
+
dom: dom.current
|
|
37
|
+
};
|
|
38
|
+
});
|
|
39
|
+
return /*#__PURE__*/_react["default"].createElement(Provider, {
|
|
40
|
+
value: {
|
|
41
|
+
wrapDom: dom.current
|
|
42
|
+
}
|
|
43
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
44
|
+
ref: dom,
|
|
45
|
+
className: (0, _classnames["default"])('ol-map-popup')
|
|
46
|
+
}, children));
|
|
47
|
+
});
|
|
48
|
+
|
|
49
|
+
// 关闭按钮
|
|
50
|
+
var Close = function Close(props) {
|
|
51
|
+
var onClick = props.onClick;
|
|
52
|
+
return /*#__PURE__*/_react["default"].createElement(_icons.CloseOutlined, {
|
|
53
|
+
className: (0, _classnames["default"])('ol-map-popup-close'),
|
|
54
|
+
width: 16,
|
|
55
|
+
height: 16,
|
|
56
|
+
onClick: onClick
|
|
57
|
+
});
|
|
58
|
+
};
|
|
59
|
+
|
|
60
|
+
// 标题
|
|
61
|
+
var Title = function Title(props) {
|
|
62
|
+
var title = props.title;
|
|
63
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
64
|
+
title: title,
|
|
65
|
+
className: (0, _classnames["default"])('ol-map-popup-title', {
|
|
66
|
+
'ol-map-popup-noTitle': !title
|
|
67
|
+
})
|
|
68
|
+
}, title);
|
|
69
|
+
};
|
|
70
|
+
|
|
71
|
+
// 内容
|
|
72
|
+
var Content = function Content(props) {
|
|
73
|
+
var list = props.list,
|
|
74
|
+
gutter = props.gutter,
|
|
75
|
+
_props$loading = props.loading,
|
|
76
|
+
loading = _props$loading === void 0 ? false : _props$loading,
|
|
77
|
+
children = props.children,
|
|
78
|
+
_props$column = props.column,
|
|
79
|
+
column = _props$column === void 0 ? 1 : _props$column,
|
|
80
|
+
width = props.width,
|
|
81
|
+
_props$style = props.style,
|
|
82
|
+
style = _props$style === void 0 ? {} : _props$style;
|
|
83
|
+
var _useContext = (0, _react.useContext)(Context),
|
|
84
|
+
wrapDom = _useContext.wrapDom;
|
|
85
|
+
var _style = _objectSpread({
|
|
86
|
+
width: '100%'
|
|
87
|
+
}, style);
|
|
88
|
+
(0, _react.useEffect)(function () {
|
|
89
|
+
return function () {
|
|
90
|
+
if (wrapDom && wrapDom.style) {
|
|
91
|
+
wrapDom.style.setProperty('--popup-width', '250px');
|
|
92
|
+
}
|
|
93
|
+
};
|
|
94
|
+
}, []);
|
|
95
|
+
if (width) {
|
|
96
|
+
_style.width = width;
|
|
97
|
+
wrapDom.style.setProperty('--popup-width', "".concat(_style.width, "px"));
|
|
98
|
+
} else if (column >= 2) {
|
|
99
|
+
_style.width = column * 200;
|
|
100
|
+
wrapDom.style.setProperty('--popup-width', "".concat(_style.width, "px"));
|
|
101
|
+
}
|
|
102
|
+
return /*#__PURE__*/_react["default"].createElement(_antd.Spin, {
|
|
103
|
+
spinning: loading
|
|
104
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
105
|
+
className: (0, _classnames["default"])('ol-map-popup-content'),
|
|
106
|
+
style: _style
|
|
107
|
+
}, /*#__PURE__*/_react["default"].createElement(_antd.Row, {
|
|
108
|
+
gutter: gutter || [5, 5]
|
|
109
|
+
}, (list === null || list === void 0 ? void 0 : list.length) > 0 && list.map(function (item, index) {
|
|
110
|
+
return /*#__PURE__*/_react["default"].createElement(_antd.Col, {
|
|
111
|
+
key: index,
|
|
112
|
+
span: item.span || 24 / column
|
|
113
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
114
|
+
className: (0, _classnames["default"])('ol-map-popup-content-item'),
|
|
115
|
+
onClick: item.onClick
|
|
116
|
+
}, item.label && /*#__PURE__*/_react["default"].createElement("div", {
|
|
117
|
+
className: (0, _classnames["default"])('ol-map-popup-content-item-label')
|
|
118
|
+
}, item.label, "\uFF1A"), (item.value || String(item.value) === '0' || item.unit) && /*#__PURE__*/_react["default"].createElement("div", {
|
|
119
|
+
className: (0, _classnames["default"])('ol-map-popup-content-item-value'),
|
|
120
|
+
style: _objectSpread({
|
|
121
|
+
color: item.onAlarm ? 'rgb(245,13,13)' : '#222'
|
|
122
|
+
}, item.style || {}),
|
|
123
|
+
title: item.value
|
|
124
|
+
}, item.value, item.unit), item.content));
|
|
125
|
+
})), children));
|
|
126
|
+
};
|
|
127
|
+
|
|
128
|
+
// 底部按钮
|
|
129
|
+
var Footer = function Footer(props) {
|
|
130
|
+
var list = props.list;
|
|
131
|
+
if ((list === null || list === void 0 ? void 0 : list.length) === 0) {
|
|
132
|
+
return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null);
|
|
133
|
+
}
|
|
134
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
135
|
+
className: (0, _classnames["default"])("ol-map-popup-footer")
|
|
136
|
+
}, list.map(function (item, index) {
|
|
137
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
138
|
+
key: index,
|
|
139
|
+
className: (0, _classnames["default"])("ol-map-popup-footer-item"),
|
|
140
|
+
onClick: item.onClick
|
|
141
|
+
}, item.icon && /*#__PURE__*/_react["default"].createElement("span", {
|
|
142
|
+
className: (0, _classnames["default"])("ol-map-popup-footer-item-icon")
|
|
143
|
+
}, item.icon), item.label);
|
|
144
|
+
}));
|
|
145
|
+
};
|
|
146
|
+
|
|
147
|
+
// 模版
|
|
148
|
+
var Template = function Template(props) {
|
|
149
|
+
var loading = props.loading,
|
|
150
|
+
contentList = props.contentList,
|
|
151
|
+
contentStyle = props.contentStyle,
|
|
152
|
+
content = props.content,
|
|
153
|
+
otherContent = props.otherContent,
|
|
154
|
+
gutter = props.gutter,
|
|
155
|
+
column = props.column,
|
|
156
|
+
footerList = props.footerList,
|
|
157
|
+
footer = props.footer,
|
|
158
|
+
detail = props.detail,
|
|
159
|
+
width = props.width,
|
|
160
|
+
children = props.children;
|
|
161
|
+
|
|
162
|
+
// 底部按钮
|
|
163
|
+
var footerButtons = [].concat(_toConsumableArray(detail !== null && detail !== void 0 && detail.show ? [_objectSpread({
|
|
164
|
+
label: "详情",
|
|
165
|
+
icon: /*#__PURE__*/_react["default"].createElement(_icons.ExclamationCircleOutlined, null)
|
|
166
|
+
}, detail)] : []), _toConsumableArray(footerList || []));
|
|
167
|
+
return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, content || /*#__PURE__*/_react["default"].createElement(Content, {
|
|
168
|
+
loading: loading,
|
|
169
|
+
list: contentList,
|
|
170
|
+
column: column,
|
|
171
|
+
gutter: gutter,
|
|
172
|
+
style: contentStyle,
|
|
173
|
+
width: width
|
|
174
|
+
}, otherContent), children, footer || /*#__PURE__*/_react["default"].createElement(Footer, {
|
|
175
|
+
list: footerButtons
|
|
176
|
+
}));
|
|
177
|
+
};
|
|
178
|
+
var Popup = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
|
179
|
+
var title = props.title,
|
|
180
|
+
onClose = props.onClose,
|
|
181
|
+
children = props.children;
|
|
182
|
+
var wrapRef = (0, _react.useRef)({});
|
|
183
|
+
(0, _react.useImperativeHandle)(ref, function () {
|
|
184
|
+
return {
|
|
185
|
+
wrapDom: wrapRef.current.dom
|
|
186
|
+
};
|
|
187
|
+
});
|
|
188
|
+
return /*#__PURE__*/_react["default"].createElement(Wrap, {
|
|
189
|
+
ref: wrapRef
|
|
190
|
+
}, /*#__PURE__*/_react["default"].createElement(Title, {
|
|
191
|
+
title: title
|
|
192
|
+
}), onClose && /*#__PURE__*/_react["default"].createElement(Close, {
|
|
193
|
+
onClick: onClose
|
|
194
|
+
}), children);
|
|
195
|
+
});
|
|
196
|
+
Popup.Title = Title;
|
|
197
|
+
Popup.Content = Content;
|
|
198
|
+
Popup.Footer = Footer;
|
|
199
|
+
Popup.Template = Template;
|
|
200
|
+
Popup.Context = Context;
|
|
201
|
+
var _default = exports["default"] = Popup;
|
|
202
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","names":["_react","_interopRequireWildcard","require","_antd","_classnames","_interopRequireDefault","_icons","e","__esModule","t","WeakMap","r","n","o","i","f","__proto__","_typeof","has","get","set","_t","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","Symbol","iterator","constructor","prototype","_toConsumableArray","_arrayWithoutHoles","_iterableToArray","_unsupportedIterableToArray","_nonIterableSpread","TypeError","a","_arrayLikeToArray","toString","slice","name","Array","from","test","isArray","length","ownKeys","keys","getOwnPropertySymbols","filter","enumerable","push","apply","_objectSpread","arguments","forEach","_defineProperty","getOwnPropertyDescriptors","defineProperties","_toPropertyKey","value","configurable","writable","_toPrimitive","toPrimitive","String","Number","Context","React","createContext","wrapDom","Provider","Wrap","forwardRef","props","ref","children","dom","useRef","useImperativeHandle","current","createElement","className","classNames","Close","onClick","CloseOutlined","width","height","Title","title","Content","list","gutter","_props$loading","loading","_props$column","column","_props$style","style","_useContext","useContext","_style","useEffect","setProperty","concat","Spin","spinning","Row","map","item","index","Col","key","span","label","unit","color","onAlarm","content","Footer","Fragment","icon","Template","contentList","contentStyle","otherContent","footerList","footer","detail","footerButtons","show","ExclamationCircleOutlined","Popup","onClose","wrapRef","_default","exports"],"sources":["popup/index.jsx"],"sourcesContent":["import React, {useImperativeHandle, forwardRef, useRef, useContext, useEffect} from \"react\";\r\nimport {Row, Col, Spin} from 'antd';\r\nimport classNames from 'classnames';\r\nimport {ExclamationCircleOutlined, CloseOutlined} from \"@ant-design/icons\";\r\n\r\nconst Context = React.createContext({wrapDom: null});\r\nconst Provider = Context.Provider;\r\n\r\n// 最外层包裹容器\r\nconst Wrap = forwardRef((props, ref) => {\r\n const {children} = props;\r\n const dom = useRef(null);\r\n\r\n useImperativeHandle(ref, () => ({\r\n dom: dom.current\r\n }));\r\n\r\n return (\r\n <Provider\r\n value={{\r\n wrapDom: dom.current,\r\n }}\r\n >\r\n <div ref={dom} className={classNames('ol-map-popup')}>\r\n {children}\r\n </div>\r\n </Provider>\r\n )\r\n})\r\n\r\n// 关闭按钮\r\nconst Close = (props) => {\r\n const {onClick} = props\r\n return (\r\n <CloseOutlined\r\n className={classNames('ol-map-popup-close')}\r\n width={16}\r\n height={16}\r\n onClick={onClick}\r\n />\r\n )\r\n}\r\n\r\n// 标题\r\nconst Title = (props) => {\r\n const {title} = props;\r\n\r\n return (\r\n <div\r\n title={title}\r\n className={classNames('ol-map-popup-title', { 'ol-map-popup-noTitle': !title })}\r\n >\r\n {title}\r\n </div>\r\n )\r\n}\r\n\r\n// 内容\r\nconst Content = (props) => {\r\n const {list, gutter, loading = false, children, column = 1, width, style = {}} = props;\r\n\r\n const {wrapDom} = useContext(Context);\r\n\r\n const _style = {\r\n width: '100%',\r\n ...style\r\n }\r\n\r\n useEffect(() => {\r\n return () => {\r\n if (wrapDom && wrapDom.style) {\r\n wrapDom.style.setProperty('--popup-width', '250px');\r\n }\r\n }\r\n }, [])\r\n\r\n if (width) {\r\n _style.width = width;\r\n wrapDom.style.setProperty('--popup-width', `${_style.width}px`);\r\n } else if (column >= 2) {\r\n _style.width = column * 200;\r\n wrapDom.style.setProperty('--popup-width', `${_style.width}px`);\r\n }\r\n\r\n return (\r\n <Spin spinning={loading}>\r\n <div className={classNames('ol-map-popup-content')} style={_style}>\r\n <Row gutter={gutter || [5, 5]}>\r\n {list?.length > 0 &&\r\n list.map((item, index) => (\r\n <Col key={index} span={item.span || (24 / column)}>\r\n <div className={classNames('ol-map-popup-content-item')} onClick={item.onClick}>\r\n {item.label &&\r\n <div\r\n className={classNames('ol-map-popup-content-item-label')}\r\n >\r\n {item.label}:\r\n </div>\r\n }\r\n\r\n {((item.value || String(item.value) === '0') || item.unit) &&\r\n <div\r\n className={classNames('ol-map-popup-content-item-value')}\r\n style={{\r\n color: item.onAlarm ? 'rgb(245,13,13)' : '#222',\r\n ...(item.style || {})\r\n }}\r\n title={item.value}\r\n >\r\n {item.value}{item.unit}\r\n </div>\r\n }\r\n\r\n {item.content}\r\n </div>\r\n </Col>\r\n ))}\r\n </Row>\r\n\r\n {children}\r\n </div>\r\n </Spin>\r\n )\r\n}\r\n\r\n// 底部按钮\r\nconst Footer = (props) => {\r\n const {list} = props;\r\n\r\n if (list?.length === 0) {\r\n return <></>\r\n }\r\n\r\n return (\r\n <div className={classNames(\"ol-map-popup-footer\")}>\r\n {list.map((item, index) => (\r\n <div key={index} className={classNames(\"ol-map-popup-footer-item\")} onClick={item.onClick}>\r\n {item.icon && <span className={classNames(\"ol-map-popup-footer-item-icon\")}>{item.icon}</span>}\r\n\r\n {item.label}\r\n </div>\r\n ))}\r\n </div>\r\n )\r\n}\r\n\r\n// 模版\r\nconst Template = (props) => {\r\n const {\r\n loading, // 加载中\r\n contentList, // 内容列表,[{label: '', value: ''}]\r\n contentStyle, // 内容样式\r\n content, // 自定义内容\r\n otherContent, // 其他内容\r\n gutter, // 内容列间距\r\n column, // 内容列数\r\n footerList, // 底部按钮列表,[{label: '', icon: '', onClick: () => {}}]\r\n footer, // 自定义底部内容\r\n detail, // 详情按钮\r\n width, // 自定义容器宽度\r\n children // 自定义内容\r\n } = props;\r\n\r\n // 底部按钮\r\n const footerButtons = [\r\n ...(detail?.show ? [\r\n {\r\n label: \"详情\",\r\n icon: <ExclamationCircleOutlined />,\r\n ...detail\r\n }\r\n ] : []),\r\n ...(footerList || [])\r\n ]\r\n\r\n return (\r\n <>\r\n {content ||\r\n <Content\r\n loading={loading}\r\n list={contentList}\r\n column={column}\r\n gutter={gutter}\r\n style={contentStyle}\r\n width={width}\r\n >\r\n {otherContent}\r\n </Content>\r\n }\r\n\r\n {children}\r\n\r\n {footer || <Footer list={footerButtons}/>}\r\n </>\r\n )\r\n}\r\n\r\nconst Popup = forwardRef((props, ref) => {\r\n const {title, onClose, children} = props;\r\n\r\n const wrapRef = useRef({});\r\n\r\n useImperativeHandle(ref, () => ({\r\n wrapDom: wrapRef.current.dom\r\n }));\r\n\r\n return (\r\n <Wrap ref={wrapRef}>\r\n <Title title={title}/>\r\n {onClose && <Close onClick={onClose}/>}\r\n\r\n {children}\r\n </Wrap>\r\n )\r\n})\r\n\r\nPopup.Title = Title;\r\nPopup.Content = Content;\r\nPopup.Footer = Footer;\r\nPopup.Template = Template;\r\nPopup.Context = Context;\r\n\r\nexport default Popup;\r\n"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,KAAA,GAAAD,OAAA;AACA,IAAAE,WAAA,GAAAC,sBAAA,CAAAH,OAAA;AACA,IAAAI,MAAA,GAAAJ,OAAA;AAA2E,SAAAG,uBAAAE,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,gBAAAA,CAAA;AAAA,SAAAN,wBAAAM,CAAA,EAAAE,CAAA,6BAAAC,OAAA,MAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAT,uBAAA,YAAAA,wBAAAM,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,GA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;IAAC5B,IAAI,EAAEsC;EAAc,CAAC,CAC1C,CAAC;AAEX,CAAC;AAED,IAAMG,KAAK,gBAAG,IAAA5D,iBAAU,EAAC,UAACC,KAAK,EAAEC,GAAG,EAAK;EACrC,IAAOe,KAAK,GAAuBhB,KAAK,CAAjCgB,KAAK;IAAE4C,OAAO,GAAc5D,KAAK,CAA1B4D,OAAO;IAAE1D,QAAQ,GAAIF,KAAK,CAAjBE,QAAQ;EAE/B,IAAM2D,OAAO,GAAG,IAAAzD,aAAM,EAAC,CAAC,CAAC,CAAC;EAE1B,IAAAC,0BAAmB,EAACJ,GAAG,EAAE;IAAA,OAAO;MAC5BL,OAAO,EAAEiE,OAAO,CAACvD,OAAO,CAACH;IAC7B,CAAC;EAAA,CAAC,CAAC;EAEH,oBACI9E,MAAA,YAAAkF,aAAA,CAACT,IAAI;IAACG,GAAG,EAAE4D;EAAQ,gBACfxI,MAAA,YAAAkF,aAAA,CAACQ,KAAK;IAACC,KAAK,EAAEA;EAAM,CAAC,CAAC,EACrB4C,OAAO,iBAAIvI,MAAA,YAAAkF,aAAA,CAACG,KAAK;IAACC,OAAO,EAAEiD;EAAQ,CAAC,CAAC,EAErC1D,QACC,CAAC;AAEf,CAAC,CAAC;AAEFyD,KAAK,CAAC5C,KAAK,GAAGA,KAAK;AACnB4C,KAAK,CAAC1C,OAAO,GAAGA,OAAO;AACvB0C,KAAK,CAACb,MAAM,GAAGA,MAAM;AACrBa,KAAK,CAACV,QAAQ,GAAGA,QAAQ;AACzBU,KAAK,CAAClE,OAAO,GAAGA,OAAO;AAAC,IAAAqE,QAAA,GAAAC,OAAA,cAETJ,KAAK","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"css.js","names":["require"],"sources":["popup/style/index.js"],"sourcesContent":["import './index.less';\r\n"],"mappings":";;AAAAA,OAAA","ignoreList":[]}
|
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
.ol-map-popup {
|
|
2
|
+
--popup-width: 250px;
|
|
3
|
+
position: absolute;
|
|
4
|
+
border: 1px solid #cccccc;
|
|
5
|
+
bottom: 12px;
|
|
6
|
+
left: 0;
|
|
7
|
+
-webkit-transform: translateX(-50%);
|
|
8
|
+
-ms-transform: translateX(-50%);
|
|
9
|
+
transform: translateX(-50%);
|
|
10
|
+
min-width: 250px;
|
|
11
|
+
background: #ffffff;
|
|
12
|
+
-webkit-box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.3);
|
|
13
|
+
box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.3);
|
|
14
|
+
border-radius: 10px;
|
|
15
|
+
opacity: 1;
|
|
16
|
+
width: var(--popup-width);
|
|
17
|
+
}
|
|
18
|
+
.ol-map-popup-close {
|
|
19
|
+
text-decoration: none;
|
|
20
|
+
position: absolute;
|
|
21
|
+
top: 12px;
|
|
22
|
+
right: 8px;
|
|
23
|
+
z-index: 9;
|
|
24
|
+
cursor: pointer;
|
|
25
|
+
color: #1890ff;
|
|
26
|
+
}
|
|
27
|
+
.ol-map-popup::after,
|
|
28
|
+
.ol-map-popup::before {
|
|
29
|
+
top: 100%;
|
|
30
|
+
border: solid transparent;
|
|
31
|
+
content: ' ';
|
|
32
|
+
height: 0;
|
|
33
|
+
width: 0;
|
|
34
|
+
position: absolute;
|
|
35
|
+
pointer-events: none;
|
|
36
|
+
}
|
|
37
|
+
.ol-map-popup::after {
|
|
38
|
+
border-top-color: white;
|
|
39
|
+
border-width: 5px;
|
|
40
|
+
left: 50%;
|
|
41
|
+
-webkit-transform: translateX(calc(-50% - 10px));
|
|
42
|
+
-ms-transform: translateX(calc(-50% - 10px));
|
|
43
|
+
transform: translateX(calc(-50% - 10px));
|
|
44
|
+
}
|
|
45
|
+
.ol-map-popup::before {
|
|
46
|
+
border-top-color: #cccccc;
|
|
47
|
+
border-width: 5px;
|
|
48
|
+
left: 50%;
|
|
49
|
+
-webkit-transform: translateX(calc(-50% - 11px));
|
|
50
|
+
-ms-transform: translateX(calc(-50% - 11px));
|
|
51
|
+
transform: translateX(calc(-50% - 11px));
|
|
52
|
+
}
|
|
53
|
+
.ol-map-popup-title {
|
|
54
|
+
font-size: 16px;
|
|
55
|
+
color: #262626;
|
|
56
|
+
font-weight: bold;
|
|
57
|
+
padding: 6px 2px 4px 12px;
|
|
58
|
+
max-width: calc(100% - 30px);
|
|
59
|
+
white-space: nowrap;
|
|
60
|
+
text-overflow: ellipsis;
|
|
61
|
+
overflow: hidden;
|
|
62
|
+
}
|
|
63
|
+
.ol-map-popup-noTitle {
|
|
64
|
+
padding: 0;
|
|
65
|
+
border-bottom: 0 !important;
|
|
66
|
+
}
|
|
67
|
+
.ol-map-popup-content {
|
|
68
|
+
padding: 10px 12px;
|
|
69
|
+
max-height: 200px;
|
|
70
|
+
min-width: 250px;
|
|
71
|
+
overflow-y: auto;
|
|
72
|
+
}
|
|
73
|
+
.ol-map-popup-content-item {
|
|
74
|
+
display: -webkit-box;
|
|
75
|
+
display: -ms-flexbox;
|
|
76
|
+
display: flex;
|
|
77
|
+
-webkit-box-align: center;
|
|
78
|
+
-ms-flex-align: center;
|
|
79
|
+
align-items: center;
|
|
80
|
+
font-size: 14px;
|
|
81
|
+
}
|
|
82
|
+
.ol-map-popup-content-item-label {
|
|
83
|
+
color: #5e6169;
|
|
84
|
+
white-space: nowrap;
|
|
85
|
+
}
|
|
86
|
+
.ol-map-popup-content-item-value {
|
|
87
|
+
color: #222222;
|
|
88
|
+
white-space: nowrap;
|
|
89
|
+
text-overflow: ellipsis;
|
|
90
|
+
overflow: hidden;
|
|
91
|
+
}
|
|
92
|
+
.ol-map-popup-footer {
|
|
93
|
+
border-top: 1px solid #e8e8e8;
|
|
94
|
+
padding: 4px 0;
|
|
95
|
+
display: -webkit-box;
|
|
96
|
+
display: -ms-flexbox;
|
|
97
|
+
display: flex;
|
|
98
|
+
-webkit-box-align: center;
|
|
99
|
+
-ms-flex-align: center;
|
|
100
|
+
align-items: center;
|
|
101
|
+
color: #1890ff;
|
|
102
|
+
}
|
|
103
|
+
.ol-map-popup-footer .ol-map-popup-footer-item {
|
|
104
|
+
display: -webkit-box;
|
|
105
|
+
display: -ms-flexbox;
|
|
106
|
+
display: flex;
|
|
107
|
+
-webkit-box-align: center;
|
|
108
|
+
-ms-flex-align: center;
|
|
109
|
+
align-items: center;
|
|
110
|
+
padding: 0 14px;
|
|
111
|
+
position: relative;
|
|
112
|
+
cursor: pointer;
|
|
113
|
+
white-space: nowrap;
|
|
114
|
+
}
|
|
115
|
+
.ol-map-popup-footer .ol-map-popup-footer-item .ol-map-popup-footer-item-icon {
|
|
116
|
+
font-size: 20px;
|
|
117
|
+
margin-right: 8px;
|
|
118
|
+
color: #007ff9;
|
|
119
|
+
}
|
|
120
|
+
.ol-map-popup-footer .ol-map-popup-footer-item::before {
|
|
121
|
+
content: '';
|
|
122
|
+
position: absolute;
|
|
123
|
+
right: 0px;
|
|
124
|
+
width: 1px;
|
|
125
|
+
height: 14px;
|
|
126
|
+
background: #007ff9;
|
|
127
|
+
opacity: 0.5;
|
|
128
|
+
}
|
|
129
|
+
.ol-map-popup-footer .ol-map-popup-footer-item:last-child::before {
|
|
130
|
+
display: none;
|
|
131
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","names":["require"],"sources":["popup/style/index.js"],"sourcesContent":["import './index.less';\r\n"],"mappings":";;AAAAA,OAAA","ignoreList":[]}
|
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
.ol-map-popup {
|
|
2
|
+
--popup-width: 250px;
|
|
3
|
+
|
|
4
|
+
position: absolute;
|
|
5
|
+
border: 1px solid #cccccc;
|
|
6
|
+
bottom: 12px;
|
|
7
|
+
left: 0;
|
|
8
|
+
transform: translateX(-50%);
|
|
9
|
+
min-width: 250px;
|
|
10
|
+
background: #ffffff;
|
|
11
|
+
box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.3);
|
|
12
|
+
border-radius: 10px;
|
|
13
|
+
opacity: 1;
|
|
14
|
+
width: var(--popup-width);
|
|
15
|
+
// padding: 6px 12px 14px;
|
|
16
|
+
|
|
17
|
+
&-close {
|
|
18
|
+
text-decoration: none;
|
|
19
|
+
position: absolute;
|
|
20
|
+
top: 12px;
|
|
21
|
+
right: 8px;
|
|
22
|
+
z-index: 9;
|
|
23
|
+
cursor: pointer;
|
|
24
|
+
color: #1890ff;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
&::after,
|
|
28
|
+
&::before {
|
|
29
|
+
top: 100%;
|
|
30
|
+
border: solid transparent;
|
|
31
|
+
content: ' ';
|
|
32
|
+
height: 0;
|
|
33
|
+
width: 0;
|
|
34
|
+
position: absolute;
|
|
35
|
+
pointer-events: none;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
&::after {
|
|
39
|
+
border-top-color: white;
|
|
40
|
+
border-width: 5px;
|
|
41
|
+
left: 50%;
|
|
42
|
+
transform: translateX(calc(-50% - 10px));
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
&::before {
|
|
46
|
+
border-top-color: #cccccc;
|
|
47
|
+
border-width: 5px;
|
|
48
|
+
left: 50%;
|
|
49
|
+
transform: translateX(calc(-50% - 11px));
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.ol-map-popup-title {
|
|
54
|
+
font-size: 16px;
|
|
55
|
+
color: #262626;
|
|
56
|
+
font-weight: bold;
|
|
57
|
+
padding: 6px 2px 4px 12px;
|
|
58
|
+
max-width: calc(~'100% - 30px');
|
|
59
|
+
white-space: nowrap;
|
|
60
|
+
text-overflow: ellipsis;
|
|
61
|
+
overflow: hidden;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.ol-map-popup-noTitle {
|
|
65
|
+
padding: 0;
|
|
66
|
+
border-bottom: 0 !important;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
.ol-map-popup-content {
|
|
70
|
+
padding: 10px 12px;
|
|
71
|
+
max-height: 200px;
|
|
72
|
+
min-width: 250px;
|
|
73
|
+
overflow-y: auto;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
.ol-map-popup-content-item {
|
|
77
|
+
display: flex;
|
|
78
|
+
align-items: center;
|
|
79
|
+
font-size: 14px;
|
|
80
|
+
|
|
81
|
+
&-label {
|
|
82
|
+
color: #5e6169;
|
|
83
|
+
white-space: nowrap;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
&-value {
|
|
87
|
+
color: #222222;
|
|
88
|
+
white-space: nowrap;
|
|
89
|
+
text-overflow: ellipsis;
|
|
90
|
+
overflow: hidden;
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
.ol-map-popup-footer {
|
|
95
|
+
border-top: 1px solid #e8e8e8;
|
|
96
|
+
padding: 4px 0;
|
|
97
|
+
display: flex;
|
|
98
|
+
align-items: center;
|
|
99
|
+
color: #1890ff;
|
|
100
|
+
|
|
101
|
+
.ol-map-popup-footer-item {
|
|
102
|
+
display: flex;
|
|
103
|
+
align-items: center;
|
|
104
|
+
padding: 0 14px;
|
|
105
|
+
position: relative;
|
|
106
|
+
cursor: pointer;
|
|
107
|
+
white-space: nowrap;
|
|
108
|
+
|
|
109
|
+
.ol-map-popup-footer-item-icon {
|
|
110
|
+
font-size: 20px;
|
|
111
|
+
margin-right: 8px;
|
|
112
|
+
color: #007ff9;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
&::before {
|
|
116
|
+
content: '';
|
|
117
|
+
position: absolute;
|
|
118
|
+
right: 0px;
|
|
119
|
+
width: 1px;
|
|
120
|
+
height: 14px;
|
|
121
|
+
background: #007ff9;
|
|
122
|
+
opacity: 0.5;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
&:last-child::before {
|
|
126
|
+
display: none;
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports["default"] = exports.Context = void 0;
|
|
7
|
+
var _react = _interopRequireDefault(require("react"));
|
|
8
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
9
|
+
var Context = exports.Context = /*#__PURE__*/_react["default"].createContext({});
|
|
10
|
+
var Provider = Context.Provider;
|
|
11
|
+
var _default = exports["default"] = Provider;
|
|
12
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","names":["_react","_interopRequireDefault","require","e","__esModule","Context","exports","React","createContext","Provider","_default"],"sources":["provider/index.js"],"sourcesContent":["import React from 'react';\r\nconst Context = React.createContext({});\r\nconst Provider = Context.Provider;\r\nexport { Context };\r\nexport default Provider;\r\n"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AAA0B,SAAAD,uBAAAE,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,gBAAAA,CAAA;AAC1B,IAAME,OAAO,GAAAC,OAAA,CAAAD,OAAA,gBAAGE,iBAAK,CAACC,aAAa,CAAC,CAAC,CAAC,CAAC;AACvC,IAAMC,QAAQ,GAAGJ,OAAO,CAACI,QAAQ;AAAC,IAAAC,QAAA,GAAAJ,OAAA,cAEnBG,QAAQ","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"css.js","names":[],"sources":["provider/style/index.js"],"sourcesContent":[""],"mappings":"","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["provider/style/index.js"],"sourcesContent":[""],"mappings":"","ignoreList":[]}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
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
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
exports["default"] = void 0;
|
|
8
|
+
var _style = require("ol/style");
|
|
9
|
+
var _transformRgb = _interopRequireDefault(require("./transformRgb"));
|
|
10
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
11
|
+
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); } }
|
|
12
|
+
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
13
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
14
|
+
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); }
|
|
15
|
+
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
16
|
+
function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
17
|
+
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); }
|
|
18
|
+
function _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return e; }
|
|
19
|
+
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
20
|
+
function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); }
|
|
21
|
+
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); }
|
|
22
|
+
function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }
|
|
23
|
+
var _default = exports["default"] = /*#__PURE__*/function (_Fill) {
|
|
24
|
+
function _default(options) {
|
|
25
|
+
_classCallCheck(this, _default);
|
|
26
|
+
var color = options.color,
|
|
27
|
+
_options$opacity = options.opacity,
|
|
28
|
+
opacity = _options$opacity === void 0 ? 1 : _options$opacity;
|
|
29
|
+
if (color && color.indexOf('#') !== -1) {
|
|
30
|
+
options.color = (0, _transformRgb["default"])(color, opacity);
|
|
31
|
+
}
|
|
32
|
+
return _callSuper(this, _default, [options]);
|
|
33
|
+
}
|
|
34
|
+
_inherits(_default, _Fill);
|
|
35
|
+
return _createClass(_default);
|
|
36
|
+
}(_style.Fill);
|
|
37
|
+
//# sourceMappingURL=Fill.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Fill.js","names":["_style","require","_transformRgb","_interopRequireDefault","e","__esModule","_defineProperties","r","t","length","o","enumerable","configurable","writable","Object","defineProperty","_toPropertyKey","key","_createClass","prototype","i","_toPrimitive","_typeof","Symbol","toPrimitive","call","TypeError","String","Number","_classCallCheck","a","n","_callSuper","_getPrototypeOf","_possibleConstructorReturn","_isNativeReflectConstruct","Reflect","construct","constructor","apply","_assertThisInitialized","ReferenceError","Boolean","valueOf","setPrototypeOf","getPrototypeOf","bind","__proto__","_inherits","create","value","_setPrototypeOf","_default","exports","_Fill","options","color","_options$opacity","opacity","indexOf","transformRgb","Fill"],"sources":["renderer/Fill.js"],"sourcesContent":["import { Fill } from 'ol/style';\r\nimport transformRgb from './transformRgb';\r\n\r\nexport default class extends Fill {\r\n constructor(options) {\r\n let { color, opacity = 1 } = options;\r\n\r\n if (color && color.indexOf('#') !== -1) {\r\n options.color = transformRgb(color, opacity);\r\n }\r\n\r\n super(options);\r\n }\r\n}\r\n"],"mappings":";;;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AACA,IAAAC,aAAA,GAAAC,sBAAA,CAAAF,OAAA;AAA0C,SAAAE,uBAAAC,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,gBAAAA,CAAA;AAAA,SAAAE,kBAAAF,CAAA,EAAAG,CAAA,aAAAC,CAAA,MAAAA,CAAA,GAAAD,CAAA,CAAAE,MAAA,EAAAD,CAAA,UAAAE,CAAA,GAAAH,CAAA,CAAAC,CAAA,GAAAE,CAAA,CAAAC,UAAA,GAAAD,CAAA,CAAAC,UAAA,QAAAD,CAAA,CAAAE,YAAA,kBAAAF,CAAA,KAAAA,CAAA,CAAAG,QAAA,QAAAC,MAAA,CAAAC,cAAA,CAAAX,CAAA,EAAAY,cAAA,CAAAN,CAAA,CAAAO,GAAA,GAAAP,CAAA;AAAA,SAAAQ,aAAAd,CAAA,EAAAG,CAAA,EAAAC,CAAA,WAAAD,CAAA,IAAAD,iBAAA,CAAAF,CAAA,CAAAe,SAAA,EAAAZ,CAAA,GAAAC,CAAA,IAAAF,iBAAA,CAAAF,CAAA,EAAAI,CAAA,GAAAM,MAAA,CAAAC,cAAA,CAAAX,CAAA,iBAAAS,QAAA,SA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,CAAC,CAAC,EAAE;MACpCJ,OAAO,CAACC,KAAK,GAAG,IAAAI,wBAAY,EAACJ,KAAK,EAAEE,OAAO,CAAC;IAChD;IAAC,OAAA1B,UAAA,OAAAoB,QAAA,GAEKG,OAAO;EACjB;EAACP,SAAA,CAAAI,QAAA,EAAAE,KAAA;EAAA,OAAApC,YAAA,CAAAkC,QAAA;AAAA,EATwBS,WAAI","ignoreList":[]}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
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
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
exports["default"] = void 0;
|
|
8
|
+
var _style = require("ol/style");
|
|
9
|
+
var _transformRgb = _interopRequireDefault(require("./transformRgb"));
|
|
10
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
11
|
+
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); } }
|
|
12
|
+
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
13
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
14
|
+
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); }
|
|
15
|
+
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
16
|
+
function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
17
|
+
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); }
|
|
18
|
+
function _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return e; }
|
|
19
|
+
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
20
|
+
function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); }
|
|
21
|
+
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); }
|
|
22
|
+
function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }
|
|
23
|
+
var _default = exports["default"] = /*#__PURE__*/function (_Stroke) {
|
|
24
|
+
function _default(options) {
|
|
25
|
+
_classCallCheck(this, _default);
|
|
26
|
+
var color = options.color,
|
|
27
|
+
_options$opacity = options.opacity,
|
|
28
|
+
opacity = _options$opacity === void 0 ? 1 : _options$opacity,
|
|
29
|
+
type = options.type;
|
|
30
|
+
options.lineDash = options.lineDash || type === 'dashed' && [2];
|
|
31
|
+
if (color && color.indexOf('#') !== -1) {
|
|
32
|
+
options.color = (0, _transformRgb["default"])(color, opacity);
|
|
33
|
+
}
|
|
34
|
+
return _callSuper(this, _default, [options]);
|
|
35
|
+
}
|
|
36
|
+
_inherits(_default, _Stroke);
|
|
37
|
+
return _createClass(_default);
|
|
38
|
+
}(_style.Stroke);
|
|
39
|
+
//# sourceMappingURL=Stroke.js.map
|