@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,64 @@
|
|
|
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"] = _default;
|
|
8
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
9
|
+
var _ol = require("ol");
|
|
10
|
+
var _geom = require("ol/geom");
|
|
11
|
+
var _ahooks = require("ahooks");
|
|
12
|
+
var _Circle = _interopRequireDefault(require("./Circle"));
|
|
13
|
+
var _events = require("../events");
|
|
14
|
+
var _useProps2 = _interopRequireDefault(require("../use-props"));
|
|
15
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
16
|
+
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); }
|
|
17
|
+
function _default(props) {
|
|
18
|
+
var data = props.data,
|
|
19
|
+
property = props.property,
|
|
20
|
+
style = props.style;
|
|
21
|
+
var _useProps = (0, _useProps2["default"])(),
|
|
22
|
+
featureLayer = _useProps.featureLayer,
|
|
23
|
+
map = _useProps.map;
|
|
24
|
+
var featureRef = (0, _react.useRef)();
|
|
25
|
+
(0, _react.useEffect)(function () {
|
|
26
|
+
var feature = new _ol.Feature();
|
|
27
|
+
if ((data === null || data === void 0 ? void 0 : data.length) == 3) {
|
|
28
|
+
var metersPerUnit = map.getView().getProjection().getMetersPerUnit();
|
|
29
|
+
var geometry = new _geom.Circle([data[0], data[1]], data[2] / metersPerUnit, 'XY');
|
|
30
|
+
feature.setGeometry(geometry);
|
|
31
|
+
}
|
|
32
|
+
if (style) {
|
|
33
|
+
feature.setStyle(new _Circle["default"](style));
|
|
34
|
+
}
|
|
35
|
+
if (property) {
|
|
36
|
+
feature.setProperties(property);
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
// 注册事件;
|
|
40
|
+
(0, _events.registerEventGeometry)(feature, props);
|
|
41
|
+
featureLayer.getSource().addFeature(feature);
|
|
42
|
+
featureRef.current = feature;
|
|
43
|
+
return function () {
|
|
44
|
+
featureLayer.getSource().removeFeature(feature);
|
|
45
|
+
};
|
|
46
|
+
}, []);
|
|
47
|
+
(0, _ahooks.useUpdateEffect)(function () {
|
|
48
|
+
if ((data === null || data === void 0 ? void 0 : data.length) == 3) {
|
|
49
|
+
var metersPerUnit = map.getView().getProjection().getMetersPerUnit();
|
|
50
|
+
var geometry = new _geom.Circle([data[0], data[1]], data[2] / metersPerUnit, 'XY');
|
|
51
|
+
featureRef.current.setGeometry(geometry);
|
|
52
|
+
}
|
|
53
|
+
}, [JSON.stringify(data)]);
|
|
54
|
+
(0, _ahooks.useUpdateEffect)(function () {
|
|
55
|
+
featureRef.current.setProperties(property);
|
|
56
|
+
}, [JSON.stringify(property)]);
|
|
57
|
+
(0, _ahooks.useUpdateEffect)(function () {
|
|
58
|
+
if (style) {
|
|
59
|
+
featureRef.current.setStyle(new _Circle["default"](style));
|
|
60
|
+
}
|
|
61
|
+
}, [JSON.stringify(style)]);
|
|
62
|
+
return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null);
|
|
63
|
+
}
|
|
64
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","names":["_react","_interopRequireWildcard","require","_ol","_geom","_ahooks","_Circle","_interopRequireDefault","_events","_useProps2","e","__esModule","t","WeakMap","r","n","o","i","f","__proto__","_typeof","has","get","set","_t","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","_default","props","data","property","style","_useProps","useProps","featureLayer","map","featureRef","useRef","useEffect","feature","Feature","length","metersPerUnit","getView","getProjection","getMetersPerUnit","geometry","CircleGeo","setGeometry","setStyle","CircleStyle","setProperties","registerEventGeometry","getSource","addFeature","current","removeFeature","useUpdateEffect","JSON","stringify","createElement","Fragment"],"sources":["circle/index.jsx"],"sourcesContent":["import React, { useRef, useEffect } from 'react';\r\nimport { Feature } from 'ol';\r\nimport { Circle as CircleGeo } from 'ol/geom';\r\nimport { useUpdateEffect } from 'ahooks';\r\nimport CircleStyle from './Circle';\r\nimport { registerEventGeometry } from '../events';\r\nimport useProps from '../use-props';\r\n\r\nexport default function(props) {\r\n const { data, property, style } = props;\r\n\r\n const { featureLayer, map } = useProps();\r\n const featureRef = useRef();\r\n\r\n useEffect(() => {\r\n let feature = new Feature();\r\n if (data?.length == 3) {\r\n const metersPerUnit = map\r\n .getView()\r\n .getProjection()\r\n .getMetersPerUnit();\r\n let geometry = new CircleGeo([data[0], data[1]], data[2] / metersPerUnit, 'XY');\r\n\r\n feature.setGeometry(geometry);\r\n }\r\n\r\n if (style) {\r\n feature.setStyle(new CircleStyle(style));\r\n }\r\n\r\n if (property) {\r\n feature.setProperties(property);\r\n }\r\n\r\n // 注册事件;\r\n registerEventGeometry(feature, props);\r\n\r\n featureLayer.getSource().addFeature(feature);\r\n\r\n featureRef.current = feature;\r\n\r\n return () => {\r\n featureLayer.getSource().removeFeature(feature);\r\n };\r\n }, []);\r\n\r\n useUpdateEffect(() => {\r\n if (data?.length == 3) {\r\n const metersPerUnit = map\r\n .getView()\r\n .getProjection()\r\n .getMetersPerUnit();\r\n let geometry = new CircleGeo([data[0], data[1]], data[2] / metersPerUnit, 'XY');\r\n featureRef.current.setGeometry(geometry);\r\n }\r\n }, [JSON.stringify(data)]);\r\n\r\n useUpdateEffect(() => {\r\n featureRef.current.setProperties(property);\r\n }, [JSON.stringify(property)]);\r\n\r\n useUpdateEffect(() => {\r\n if (style) {\r\n featureRef.current.setStyle(new CircleStyle(style));\r\n }\r\n }, [JSON.stringify(style)]);\r\n\r\n return <></>;\r\n}\r\n"],"mappings":";;;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,GAAA,GAAAD,OAAA;AACA,IAAAE,KAAA,GAAAF,OAAA;AACA,IAAAG,OAAA,GAAAH,OAAA;AACA,IAAAI,OAAA,GAAAC,sBAAA,CAAAL,OAAA;AACA,IAAAM,OAAA,GAAAN,OAAA;AACA,IAAAO,UAAA,GAAAF,sBAAA,CAAAL,OAAA;AAAoC,SAAAK,uBAAAG,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,gBAAAA,CAAA;AAAA,SAAAT,wBAAAS,CAAA,EAAAE,CAAA,6BAAAC,OAAA,MAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAZ,uBAAA,YAAAA,wBAAAS,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,CAA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mB,OAAO,CAACJ,aAAa,CAACrB,QAAQ,CAAC;EAC9C,CAAC,EAAE,CAAC4B,IAAI,CAACC,SAAS,CAAC7B,QAAQ,CAAC,CAAC,CAAC;EAE9B,IAAA2B,uBAAe,EAAC,YAAM;IAClB,IAAI1B,KAAK,EAAE;MACPK,UAAU,CAACmB,OAAO,CAACN,QAAQ,CAAC,IAAIC,kBAAW,CAACnB,KAAK,CAAC,CAAC;IACvD;EACJ,CAAC,EAAE,CAAC2B,IAAI,CAACC,SAAS,CAAC5B,KAAK,CAAC,CAAC,CAAC;EAE3B,oBAAOlC,MAAA,YAAA+D,aAAA,CAAA/D,MAAA,YAAAgE,QAAA,MAAI,CAAC;AAChB","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"css.js","names":[],"sources":["circle/style/index.js"],"sourcesContent":[""],"mappings":"","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["circle/style/index.js"],"sourcesContent":[""],"mappings":"","ignoreList":[]}
|
package/lib/config.js
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports["default"] = void 0;
|
|
7
|
+
var globalCfg = window.VtxPublicServiceAddress || {};
|
|
8
|
+
var _default = exports["default"] = {
|
|
9
|
+
// ztree文件地址
|
|
10
|
+
ztreeServer: globalCfg.ztreeServer ? globalCfg.ztreeServer : '//vortexplugin.cloudhw.cn/ztree'
|
|
11
|
+
};
|
|
12
|
+
//# sourceMappingURL=config.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"config.js","names":["globalCfg","window","VtxPublicServiceAddress","_default","exports","ztreeServer"],"sources":["config.js"],"sourcesContent":["const globalCfg = window.VtxPublicServiceAddress || {};\r\n\r\nexport default {\r\n // ztree文件地址\r\n ztreeServer: globalCfg.ztreeServer ? globalCfg.ztreeServer : '//vortexplugin.cloudhw.cn/ztree',\r\n};\r\n"],"mappings":";;;;;;AAAA,IAAMA,SAAS,GAAGC,MAAM,CAACC,uBAAuB,IAAI,CAAC,CAAC;AAAC,IAAAC,QAAA,GAAAC,OAAA,cAExC;EACX;EACAC,WAAW,EAAEL,SAAS,CAACK,WAAW,GAAGL,SAAS,CAACK,WAAW,GAAG;AACjE,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports["default"] = void 0;
|
|
7
|
+
// 将 jsx 的 style 小驼峰的 key 属性,转化为 cssText 的 -
|
|
8
|
+
var convertCamelToCSS = function convertCamelToCSS(style) {
|
|
9
|
+
var cssText = '';
|
|
10
|
+
for (var property in style) {
|
|
11
|
+
if (style.hasOwnProperty(property)) {
|
|
12
|
+
var value = style[property];
|
|
13
|
+
if (value && typeof value === 'number' && !isNaN(value)) {
|
|
14
|
+
value = value + 'px';
|
|
15
|
+
}
|
|
16
|
+
var cssProperty = property.replace(/([A-Z])/g, '-$1').toLowerCase();
|
|
17
|
+
cssText += "".concat(cssProperty, ": ").concat(value, "; ");
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
return cssText;
|
|
21
|
+
};
|
|
22
|
+
var _default = exports["default"] = convertCamelToCSS;
|
|
23
|
+
//# sourceMappingURL=convertCamelToCSS.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"convertCamelToCSS.js","names":["convertCamelToCSS","style","cssText","property","hasOwnProperty","value","isNaN","cssProperty","replace","toLowerCase","concat","_default","exports"],"sources":["convertCamelToCSS.js"],"sourcesContent":["// 将 jsx 的 style 小驼峰的 key 属性,转化为 cssText 的 -\r\nconst convertCamelToCSS = (style) => {\r\n let cssText = '';\r\n for (let property in style) {\r\n if (style.hasOwnProperty(property)) {\r\n let value = style[property];\r\n if (value && typeof value === 'number' && !isNaN(value)) {\r\n value = value + 'px';\r\n }\r\n let cssProperty = property.replace(/([A-Z])/g, '-$1').toLowerCase();\r\n cssText += `${cssProperty}: ${value}; `;\r\n }\r\n }\r\n\r\n return cssText;\r\n}\r\n\r\nexport default convertCamelToCSS;\r\n"],"mappings":";;;;;;AAAA;AACA,IAAMA,iBAAiB,GAAG,SAApBA,iBAAiBA,CAAIC,KAAK,EAAK;EACjC,IAAIC,OAAO,GAAG,EAAE;EAChB,KAAK,IAAIC,QAAQ,IAAIF,KAAK,EAAE;IACxB,IAAIA,KAAK,CAACG,cAAc,CAACD,QAAQ,CAAC,EAAE;MAChC,IAAIE,KAAK,GAAGJ,KAAK,CAACE,QAAQ,CAAC;MAC3B,IAAIE,KAAK,IAAI,OAAOA,KAAK,KAAK,QAAQ,IAAI,CAACC,KAAK,CAACD,KAAK,CAAC,EAAE;QACrDA,KAAK,GAAGA,KAAK,GAAG,IAAI;MACxB;MACA,IAAIE,WAAW,GAAGJ,QAAQ,CAACK,OAAO,CAAC,UAAU,EAAE,KAAK,CAAC,CAACC,WAAW,CAAC,CAAC;MACnEP,OAAO,OAAAQ,MAAA,CAAOH,WAAW,QAAAG,MAAA,CAAKL,KAAK,OAAI;IAC3C;EACJ;EAEA,OAAOH,OAAO;AAClB,CAAC;AAAA,IAAAS,QAAA,GAAAC,OAAA,cAEcZ,iBAAiB","ignoreList":[]}
|
package/lib/dom/Dom.js
ADDED
|
@@ -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 _ol = require("ol");
|
|
9
|
+
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; }
|
|
10
|
+
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; }
|
|
11
|
+
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; }
|
|
12
|
+
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); } }
|
|
13
|
+
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
14
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
15
|
+
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); }
|
|
16
|
+
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
17
|
+
function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
18
|
+
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); }
|
|
19
|
+
function _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return e; }
|
|
20
|
+
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
21
|
+
function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); }
|
|
22
|
+
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); }
|
|
23
|
+
function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }
|
|
24
|
+
var _default = exports["default"] = /*#__PURE__*/function (_Overlay) {
|
|
25
|
+
function _default(options) {
|
|
26
|
+
var _this;
|
|
27
|
+
_classCallCheck(this, _default);
|
|
28
|
+
var _options = _objectSpread({}, options);
|
|
29
|
+
if (options.stopEvent) {
|
|
30
|
+
_options.className = 'ol-overlay_container-stop_event';
|
|
31
|
+
}
|
|
32
|
+
_this = _callSuper(this, _default, [_options]);
|
|
33
|
+
_this.type = 'Dom';
|
|
34
|
+
return _this;
|
|
35
|
+
}
|
|
36
|
+
_inherits(_default, _Overlay);
|
|
37
|
+
return _createClass(_default);
|
|
38
|
+
}(_ol.Overlay);
|
|
39
|
+
//# sourceMappingURL=Dom.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Dom.js","names":["_ol","require","ownKeys","e","r","t","Object","keys","getOwnPropertySymbols","o","filter","getOwnPropertyDescriptor","enumerable","push","apply","_objectSpread","arguments","length","forEach","_defineProperty","getOwnPropertyDescriptors","defineProperties","defineProperty","_toPropertyKey","value","configurable","writable","_defineProperties","key","_createClass","prototype","i","_toPrimitive","_typeof","Symbol","toPrimitive","call","TypeError","String","Number","_classCallCheck","a","n","_callSuper","_getPrototypeOf","_possibleConstructorReturn","_isNativeReflectConstruct","Reflect","construct","constructor","_assertThisInitialized","ReferenceError","Boolean","valueOf","setPrototypeOf","getPrototypeOf","bind","__proto__","_inherits","create","_setPrototypeOf","_default","exports","_Overlay","options","_this","_options","stopEvent","className","type","Overlay"],"sources":["dom/Dom.js"],"sourcesContent":["import { Overlay } from 'ol';\r\n\r\nexport default class extends Overlay {\r\n constructor(options) {\r\n const _options = {...options};\r\n if (options.stopEvent) {\r\n _options.className = 'ol-overlay_container-stop_event';\r\n }\r\n super(_options);\r\n\r\n this.type = 'Dom';\r\n }\r\n}\r\n"],"mappings":";;;;;;;AAAA,IAAAA,GAAA,GAAAC,OAAA;AAA6B,SAAAC,QAAAC,CAAA,EAAAC,CAAA,QAAAC,CAAA,GAAAC,MAAA,CAAAC,IAAA,CAAAJ,CAAA,OAAAG,MAAA,CAAAE,qBAAA,QAAAC,CAAA,GAAAH,MAAA,CAAAE,qBAAA,CAAAL,CAAA,GAAAC,CAAA,KAAAK,CAAA,GAAAA,CAAA,CAAAC,MAAA,WAAAN,CAAA,WAAAE,MAAA,CAAAK,wBAAA,CAAAR,CAAA,EAAAC,CAAA,EAAAQ,UAAA,OAAAP,CAAA,CAAAQ,IAAA,CAAAC,KAAA,CAAAT,CAAA,EAAAI,CAAA,YAAAJ,CAAA;AAAA,SAAA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AAA,qCAAAC,QAAA;EAGzB,SAAAF,SAAYG,OAAO,EAAE;IAAA,IAAAC,KAAA;IAAAzB,eAAA,OAAAqB,QAAA;IACjB,IAAMK,QAAQ,GAAAnD,aAAA,KAAOiD,OAAO,CAAC;IAC7B,IAAIA,OAAO,CAACG,SAAS,EAAE;MACnBD,QAAQ,CAACE,SAAS,GAAG,iCAAiC;IAC1D;IACAH,KAAA,GAAAtB,UAAA,OAAAkB,QAAA,GAAMK,QAAQ;IAEdD,KAAA,CAAKI,IAAI,GAAG,KAAK;IAAC,OAAAJ,KAAA;EACtB;EAACP,SAAA,CAAAG,QAAA,EAAAE,QAAA;EAAA,OAAAlC,YAAA,CAAAgC,QAAA;AAAA,EATwBS,WAAO","ignoreList":[]}
|
package/lib/dom/index.js
ADDED
|
@@ -0,0 +1,61 @@
|
|
|
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"] = _default;
|
|
8
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
9
|
+
var _ahooks = require("ahooks");
|
|
10
|
+
var _useProps2 = _interopRequireDefault(require("../use-props"));
|
|
11
|
+
var _Dom = _interopRequireDefault(require("./Dom"));
|
|
12
|
+
var _excluded = ["data", "style", "className", "show", "children"];
|
|
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 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; }
|
|
16
|
+
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; }
|
|
17
|
+
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; }
|
|
18
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
19
|
+
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); }
|
|
20
|
+
function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
|
|
21
|
+
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
|
|
22
|
+
function _default(props) {
|
|
23
|
+
var data = props.data,
|
|
24
|
+
style = props.style,
|
|
25
|
+
className = props.className,
|
|
26
|
+
_props$show = props.show,
|
|
27
|
+
show = _props$show === void 0 ? true : _props$show,
|
|
28
|
+
children = props.children,
|
|
29
|
+
otherProps = _objectWithoutProperties(props, _excluded);
|
|
30
|
+
var _useProps = (0, _useProps2["default"])(),
|
|
31
|
+
map = _useProps.map;
|
|
32
|
+
var domRef = (0, _react.useRef)();
|
|
33
|
+
var overlay = (0, _react.useRef)();
|
|
34
|
+
(0, _react.useEffect)(function () {
|
|
35
|
+
overlay.current = new _Dom["default"](_objectSpread({
|
|
36
|
+
element: domRef.current,
|
|
37
|
+
position: data,
|
|
38
|
+
positioning: "bottom-center",
|
|
39
|
+
offset: [0, -10]
|
|
40
|
+
}, otherProps));
|
|
41
|
+
|
|
42
|
+
// 将Overlay添加到地图上
|
|
43
|
+
map.addOverlay(overlay.current);
|
|
44
|
+
return function () {
|
|
45
|
+
map.removeOverlay(overlay.current);
|
|
46
|
+
};
|
|
47
|
+
}, []);
|
|
48
|
+
(0, _ahooks.useUpdateEffect)(function () {
|
|
49
|
+
overlay.current.setPosition(data);
|
|
50
|
+
}, [JSON.stringify(data)]);
|
|
51
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
52
|
+
style: {
|
|
53
|
+
display: show ? 'block' : 'none'
|
|
54
|
+
}
|
|
55
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
56
|
+
ref: domRef,
|
|
57
|
+
style: _objectSpread({}, style),
|
|
58
|
+
className: className
|
|
59
|
+
}, children));
|
|
60
|
+
}
|
|
61
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","names":["_react","_interopRequireWildcard","require","_ahooks","_useProps2","_interopRequireDefault","_Dom","_excluded","e","__esModule","t","WeakMap","r","n","o","i","f","__proto__","_typeof","has","get","set","_t","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","ownKeys","keys","getOwnPropertySymbols","filter","enumerable","push","apply","_objectSpread","arguments","length","forEach","_defineProperty","getOwnPropertyDescriptors","defineProperties","_toPropertyKey","value","configurable","writable","_toPrimitive","Symbol","toPrimitive","TypeError","String","Number","_objectWithoutProperties","_objectWithoutPropertiesLoose","indexOf","propertyIsEnumerable","_default","props","data","style","className","_props$show","show","children","otherProps","_useProps","useProps","map","domRef","useRef","overlay","useEffect","current","Dom","element","position","positioning","offset","addOverlay","removeOverlay","useUpdateEffect","setPosition","JSON","stringify","createElement","display","ref"],"sources":["dom/index.jsx"],"sourcesContent":["import React, {useRef, useEffect} from 'react';\r\nimport { useUpdateEffect } from 'ahooks';\r\nimport useProps from '../use-props';\r\nimport Dom from './Dom';\r\n\r\nexport default function (props) {\r\n const { data, style, className, show = true, children, ...otherProps } = props;\r\n const { map } = useProps();\r\n\r\n const domRef = useRef();\r\n const overlay = useRef();\r\n useEffect(() => {\r\n overlay.current = new Dom({\r\n element: domRef.current,\r\n position: data,\r\n positioning: \"bottom-center\",\r\n offset: [0, -10],\r\n ...otherProps\r\n });\r\n\r\n // 将Overlay添加到地图上\r\n map.addOverlay(overlay.current);\r\n\r\n return () => {\r\n map.removeOverlay(overlay.current);\r\n }\r\n }, []);\r\n\r\n useUpdateEffect(() => {\r\n overlay.current.setPosition(data)\r\n }, [JSON.stringify(data)])\r\n\r\n return (\r\n <div style={{display: show ? 'block' : 'none'}}>\r\n <div ref={domRef} style={{...style}} className={className}>\r\n {children}\r\n </div>\r\n </div>\r\n\r\n )\r\n}\r\n"],"mappings":";;;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,OAAA,GAAAD,OAAA;AACA,IA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AE;MAAC0B,OAAO,EAAEvB,IAAI,GAAG,OAAO,GAAG;IAAM;EAAE,gBAC3C9D,MAAA,YAAAoF,aAAA;IAAKE,GAAG,EAAElB,MAAO;IAACT,KAAK,EAAAxB,aAAA,KAAMwB,KAAK,CAAE;IAACC,SAAS,EAAEA;EAAU,GACrDG,QACA,CACJ,CAAC;AAGd","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"css.js","names":[],"sources":["dom/style/index.js"],"sourcesContent":[""],"mappings":"","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["dom/style/index.js"],"sourcesContent":[""],"mappings":"","ignoreList":[]}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.registerEventLayer = exports.registerEventGeometry = void 0;
|
|
7
|
+
var EVENT = ['onClick', 'onDoubleClick', 'onMouseEnter', 'onMouseMove', 'onMouseLeave'];
|
|
8
|
+
|
|
9
|
+
// 注册鼠标事件
|
|
10
|
+
var registerEventGeometry = exports.registerEventGeometry = function registerEventGeometry(layer, props) {
|
|
11
|
+
EVENT.map(function (v) {
|
|
12
|
+
layer[v] = function () {
|
|
13
|
+
var options = layer.getProperties();
|
|
14
|
+
props[v] && props[v](options);
|
|
15
|
+
};
|
|
16
|
+
});
|
|
17
|
+
};
|
|
18
|
+
var registerEventLayer = exports.registerEventLayer = function registerEventLayer(layer, props) {
|
|
19
|
+
EVENT.map(function (v) {
|
|
20
|
+
layer[v] = function (e, a) {
|
|
21
|
+
props[v] && props[v](e, a);
|
|
22
|
+
};
|
|
23
|
+
});
|
|
24
|
+
};
|
|
25
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","names":["EVENT","registerEventGeometry","exports","layer","props","map","v","options","getProperties","registerEventLayer","e","a"],"sources":["events/index.js"],"sourcesContent":["const EVENT = ['onClick', 'onDoubleClick', 'onMouseEnter', 'onMouseMove', 'onMouseLeave'];\r\n\r\n// 注册鼠标事件\r\nexport const registerEventGeometry = (layer, props) => {\r\n EVENT.map(v => {\r\n layer[v] = () => {\r\n let options = layer.getProperties();\r\n props[v] && props[v](options);\r\n };\r\n });\r\n};\r\n\r\nexport const registerEventLayer = (layer, props) => {\r\n EVENT.map(v => {\r\n layer[v] = (e, a) => {\r\n props[v] && props[v](e, a);\r\n };\r\n });\r\n};\r\n"],"mappings":";;;;;;AAAA,IAAMA,KAAK,GAAG,CAAC,SAAS,EAAE,eAAe,EAAE,cAAc,EAAE,aAAa,EAAE,cAAc,CAAC;;AAEzF;AACO,IAAMC,qBAAqB,GAAAC,OAAA,CAAAD,qBAAA,GAAG,SAAxBA,qBAAqBA,CAAIE,KAAK,EAAEC,KAAK,EAAK;EACnDJ,KAAK,CAACK,GAAG,CAAC,UAAAC,CAAC,EAAI;IACXH,KAAK,CAACG,CAAC,CAAC,GAAG,YAAM;MACb,IAAIC,OAAO,GAAGJ,KAAK,CAACK,aAAa,CAAC,CAAC;MACnCJ,KAAK,CAACE,CAAC,CAAC,IAAIF,KAAK,CAACE,CAAC,CAAC,CAACC,OAAO,CAAC;IACjC,CAAC;EACL,CAAC,CAAC;AACN,CAAC;AAEM,IAAME,kBAAkB,GAAAP,OAAA,CAAAO,kBAAA,GAAG,SAArBA,kBAAkBA,CAAIN,KAAK,EAAEC,KAAK,EAAK;EAChDJ,KAAK,CAACK,GAAG,CAAC,UAAAC,CAAC,EAAI;IACXH,KAAK,CAACG,CAAC,CAAC,GAAG,UAACI,CAAC,EAAEC,CAAC,EAAK;MACjBP,KAAK,CAACE,CAAC,CAAC,IAAIF,KAAK,CAACE,CAAC,CAAC,CAACI,CAAC,EAAEC,CAAC,CAAC;IAC9B,CAAC;EACL,CAAC,CAAC;AACN,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,230 @@
|
|
|
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.drawStyle = exports["default"] = void 0;
|
|
8
|
+
var _layer = require("ol/layer");
|
|
9
|
+
var _source = require("ol/source");
|
|
10
|
+
var _interaction = require("ol/interaction");
|
|
11
|
+
var _Draw2 = require("ol/interaction/Draw");
|
|
12
|
+
var _style4 = require("ol/style");
|
|
13
|
+
var _Marker = _interopRequireDefault(require("../marker/Marker"));
|
|
14
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
15
|
+
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; }
|
|
16
|
+
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; }
|
|
17
|
+
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; }
|
|
18
|
+
function _toConsumableArray(r) { return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread(); }
|
|
19
|
+
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."); }
|
|
20
|
+
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; } }
|
|
21
|
+
function _iterableToArray(r) { if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r); }
|
|
22
|
+
function _arrayWithoutHoles(r) { if (Array.isArray(r)) return _arrayLikeToArray(r); }
|
|
23
|
+
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; }
|
|
24
|
+
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
25
|
+
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); } }
|
|
26
|
+
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
27
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
28
|
+
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); }
|
|
29
|
+
function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
30
|
+
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); }
|
|
31
|
+
function _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return e; }
|
|
32
|
+
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
33
|
+
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; }
|
|
34
|
+
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); }
|
|
35
|
+
function _superPropBase(t, o) { for (; !{}.hasOwnProperty.call(t, o) && null !== (t = _getPrototypeOf(t));); return t; }
|
|
36
|
+
function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); }
|
|
37
|
+
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); }
|
|
38
|
+
function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }
|
|
39
|
+
var ModifyConstrain = /*#__PURE__*/function (_Modify) {
|
|
40
|
+
function ModifyConstrain(options) {
|
|
41
|
+
var _this;
|
|
42
|
+
_classCallCheck(this, ModifyConstrain);
|
|
43
|
+
_this = _callSuper(this, ModifyConstrain, [options]);
|
|
44
|
+
_this.constrainGeom_ = options.constrainGeom;
|
|
45
|
+
return _this;
|
|
46
|
+
}
|
|
47
|
+
_inherits(ModifyConstrain, _Modify);
|
|
48
|
+
return _createClass(ModifyConstrain, [{
|
|
49
|
+
key: "handleDragEvent",
|
|
50
|
+
value: function handleDragEvent(evt) {
|
|
51
|
+
if (this.constrainGeom_ && this.constrainGeom_.intersectsCoordinate && !this.constrainGeom_.intersectsCoordinate(evt.coordinate)) {
|
|
52
|
+
evt.coordinate = this.constrainGeom_.getClosestPoint(evt.coordinate);
|
|
53
|
+
}
|
|
54
|
+
_superPropGet(ModifyConstrain, "handleDragEvent", this, 3)([evt]);
|
|
55
|
+
}
|
|
56
|
+
}]);
|
|
57
|
+
}(_interaction.Modify);
|
|
58
|
+
var DrawConstrain = /*#__PURE__*/function (_Draw) {
|
|
59
|
+
function DrawConstrain(options) {
|
|
60
|
+
var _this2;
|
|
61
|
+
_classCallCheck(this, DrawConstrain);
|
|
62
|
+
_this2 = _callSuper(this, DrawConstrain, [options]);
|
|
63
|
+
_this2.constrainGeom_ = options.constrainGeom;
|
|
64
|
+
return _this2;
|
|
65
|
+
}
|
|
66
|
+
_inherits(DrawConstrain, _Draw);
|
|
67
|
+
return _createClass(DrawConstrain, [{
|
|
68
|
+
key: "handlePointerMove_",
|
|
69
|
+
value: function handlePointerMove_(evt) {
|
|
70
|
+
if (this.constrainGeom_ && this.constrainGeom_.intersectsCoordinate && !this.constrainGeom_.intersectsCoordinate(evt.coordinate)) {
|
|
71
|
+
evt.coordinate = this.constrainGeom_.getClosestPoint(evt.coordinate);
|
|
72
|
+
}
|
|
73
|
+
_superPropGet(DrawConstrain, "handlePointerMove_", this, 3)([evt]);
|
|
74
|
+
}
|
|
75
|
+
}]);
|
|
76
|
+
}(_interaction.Draw);
|
|
77
|
+
var drawStyle = exports.drawStyle = function drawStyle(feature, style) {
|
|
78
|
+
var _style = [];
|
|
79
|
+
var styles = [new _style4.Style({
|
|
80
|
+
fill: new _style4.Fill({
|
|
81
|
+
color: 'rgba(255, 255, 255, 0.6)'
|
|
82
|
+
}),
|
|
83
|
+
stroke: new _style4.Stroke({
|
|
84
|
+
color: '#009BFF',
|
|
85
|
+
width: 2
|
|
86
|
+
}),
|
|
87
|
+
image: new _style4.Circle({
|
|
88
|
+
radius: 4,
|
|
89
|
+
fill: new _style4.Fill({
|
|
90
|
+
color: 'rgba(0,155,255, 0.8)'
|
|
91
|
+
})
|
|
92
|
+
})
|
|
93
|
+
})];
|
|
94
|
+
if (style) {
|
|
95
|
+
var _style2;
|
|
96
|
+
if (typeof style === 'function') {
|
|
97
|
+
_style = style(feature);
|
|
98
|
+
}
|
|
99
|
+
if (Array.isArray(_style) && (_style2 = _style) !== null && _style2 !== void 0 && _style2.length) styles.push.apply(styles, _toConsumableArray(_style));
|
|
100
|
+
}
|
|
101
|
+
return styles;
|
|
102
|
+
};
|
|
103
|
+
var _default = exports["default"] = /*#__PURE__*/function () {
|
|
104
|
+
function _default(props, callback) {
|
|
105
|
+
var _this3 = this;
|
|
106
|
+
_classCallCheck(this, _default);
|
|
107
|
+
_defineProperty(this, "initModify", function () {
|
|
108
|
+
var t = _this3;
|
|
109
|
+
var modify = new ModifyConstrain({
|
|
110
|
+
source: _this3.source,
|
|
111
|
+
constrainGeom: _this3.constrainGeom
|
|
112
|
+
});
|
|
113
|
+
_this3.map.addInteraction(modify);
|
|
114
|
+
modify.on('modifyend', function (event) {
|
|
115
|
+
var features = event.features;
|
|
116
|
+
var feature = features.item(features.getLength() - 1);
|
|
117
|
+
_this3.drawFeature = feature;
|
|
118
|
+
var _feature = feature.clone();
|
|
119
|
+
t.callback && t.callback(_feature);
|
|
120
|
+
});
|
|
121
|
+
});
|
|
122
|
+
var _props$continuousDraw = props.continuousDraw,
|
|
123
|
+
continuousDraw = _props$continuousDraw === void 0 ? true : _props$continuousDraw,
|
|
124
|
+
_style3 = props.style,
|
|
125
|
+
markerStyle = props.markerStyle,
|
|
126
|
+
constrainGeom = props.constrainGeom;
|
|
127
|
+
this.map = props.map;
|
|
128
|
+
this.drawTool = null;
|
|
129
|
+
this.drawFeature = null;
|
|
130
|
+
this.maxPoints = props.maxPoints;
|
|
131
|
+
this.drawType = props.drawType;
|
|
132
|
+
this.callback = callback;
|
|
133
|
+
this.continuousDraw = continuousDraw; // 连续绘制
|
|
134
|
+
this.constrainGeom = constrainGeom; // 绘制限制范围:geometry
|
|
135
|
+
this.style = _style3;
|
|
136
|
+
this.source = new _source.Vector();
|
|
137
|
+
this.layer = new _layer.Vector({
|
|
138
|
+
source: this.source,
|
|
139
|
+
zIndex: props.zIndex || 20,
|
|
140
|
+
style: function style(feature) {
|
|
141
|
+
return drawStyle(feature, _style3);
|
|
142
|
+
}
|
|
143
|
+
});
|
|
144
|
+
this.map.addLayer(this.layer);
|
|
145
|
+
if (!props.onlyDraw) {
|
|
146
|
+
this.initModify();
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
/**
|
|
151
|
+
* @description:
|
|
152
|
+
* @param {*} drawType DragBox-框选 Circle-圈选 Polygon-多边形选择
|
|
153
|
+
* @return {*}
|
|
154
|
+
*/
|
|
155
|
+
return _createClass(_default, [{
|
|
156
|
+
key: "init",
|
|
157
|
+
value: function init(drawType) {
|
|
158
|
+
var _this4 = this;
|
|
159
|
+
var callback = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : this.callback;
|
|
160
|
+
var markerStyle = arguments.length > 2 ? arguments[2] : undefined;
|
|
161
|
+
var t = this;
|
|
162
|
+
if (drawType) {
|
|
163
|
+
var drawTool = new DrawConstrain(_objectSpread(_objectSpread({
|
|
164
|
+
type: drawType,
|
|
165
|
+
maxPoints: this.maxPoints,
|
|
166
|
+
constrainGeom: this.constrainGeom,
|
|
167
|
+
style: function style(feature) {
|
|
168
|
+
return drawStyle(feature, t.style);
|
|
169
|
+
}
|
|
170
|
+
}, drawType === 'DragBox' ? {
|
|
171
|
+
type: 'Circle',
|
|
172
|
+
geometryFunction: (0, _Draw2.createBox)()
|
|
173
|
+
} : {}), drawType === 'Marker' ? {
|
|
174
|
+
type: 'Point'
|
|
175
|
+
} : {}));
|
|
176
|
+
drawTool.on('drawstart', function () {
|
|
177
|
+
_this4.drawTool.setActive(true);
|
|
178
|
+
_this4.map.showTip('再次点击确定结束点');
|
|
179
|
+
_this4.clearFeatures();
|
|
180
|
+
_this4.callbackFn && _this4.callbackFn();
|
|
181
|
+
});
|
|
182
|
+
drawTool.on('drawend', function (event) {
|
|
183
|
+
_this4.map.showTip('鼠标左键确定起始点');
|
|
184
|
+
var drawSource = _this4.layer.getSource();
|
|
185
|
+
_this4.drawFeature = event.feature;
|
|
186
|
+
var _feature = event.feature.clone();
|
|
187
|
+
if (drawType == 'Marker') {
|
|
188
|
+
event.feature.setStyle(new _Marker["default"](markerStyle));
|
|
189
|
+
}
|
|
190
|
+
drawSource.addFeature(event.feature);
|
|
191
|
+
callback && callback(_feature);
|
|
192
|
+
_this4.drawTool.setActive(t.continuousDraw);
|
|
193
|
+
});
|
|
194
|
+
this.drawTool = drawTool;
|
|
195
|
+
this.map.showTip('鼠标左键确定起始点');
|
|
196
|
+
this.map.addInteraction(drawTool);
|
|
197
|
+
}
|
|
198
|
+
}
|
|
199
|
+
}, {
|
|
200
|
+
key: "clearFeatures",
|
|
201
|
+
value: function clearFeatures() {
|
|
202
|
+
this.source && this.source.clear();
|
|
203
|
+
this.map.hideTip();
|
|
204
|
+
}
|
|
205
|
+
}, {
|
|
206
|
+
key: "loadFeatures",
|
|
207
|
+
value: function loadFeatures(feature) {
|
|
208
|
+
if (this.style) {
|
|
209
|
+
feature.setStyle(drawStyle(feature, this.style));
|
|
210
|
+
}
|
|
211
|
+
// feature.setStyle(drawStyle(feature, this.style));
|
|
212
|
+
this.source && this.source.addFeatures([feature]);
|
|
213
|
+
this.drawFeature = feature;
|
|
214
|
+
}
|
|
215
|
+
}, {
|
|
216
|
+
key: "removeDrawTool",
|
|
217
|
+
value: function removeDrawTool() {
|
|
218
|
+
this.map.removeInteraction(this.drawTool);
|
|
219
|
+
}
|
|
220
|
+
}, {
|
|
221
|
+
key: "destroy",
|
|
222
|
+
value: function destroy() {
|
|
223
|
+
this.map.removeLayer(this.layer);
|
|
224
|
+
this.removeDrawTool();
|
|
225
|
+
this.drawTool && this.drawTool.setActive(false);
|
|
226
|
+
this.map.hideTip();
|
|
227
|
+
}
|
|
228
|
+
}]);
|
|
229
|
+
}();
|
|
230
|
+
//# sourceMappingURL=FeatureDraw.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FeatureDraw.js","names":["_layer","require","_source","_interaction","_Draw2","_style4","_Marker","_interopRequireDefault","e","__esModule","ownKeys","r","t","Object","keys","getOwnPropertySymbols","o","filter","getOwnPropertyDescriptor","enumerable","push","apply","_objectSpread","arguments","length","forEach","_defineProperty","getOwnPropertyDescriptors","defineProperties","defineProperty","_toPropertyKey","value","configurable","writable","_toConsumableArray","_arrayWithoutHoles","_iterableToArray","_unsupportedIterableToArray","_nonIterableSpread","TypeError","a","_arrayLikeToArray","toString","call","slice","constructor","name","Array","from","test","Symbol","iterator","isArray","n","_classCallCheck","_defineProperties","key","_createClass","prototype","i","_toPrimitive","_typeof","toPrimitive","String","Number","_callSuper","_getPrototypeOf","_possibleConstructorReturn","_isNativeReflectConstruct","Reflect","construct","_assertThisInitialized","ReferenceError","Boolean","valueOf","_superPropGet","p","_get","get","bind","_superPropBase","hasOwnProperty","setPrototypeOf","getPrototypeOf","__proto__","_inherits","create","_setPrototypeOf","ModifyConstrain","_Modify","options","_this","constrainGeom_","constrainGeom","handleDragEvent","evt","intersectsCoordinate","coordinate","getClosestPoint","Modify","DrawConstrain","_Draw","_this2","handlePointerMove_","Draw","drawStyle","exports","feature","style","_style","styles","Style","fill","Fill","color","stroke","Stroke","width","image","CircleStyle","radius","_style2","_default","props","callback","_this3","modify","source","map","addInteraction","on","event","features","item","getLength","drawFeature","_feature","clone","_props$continuousDraw","continuousDraw","markerStyle","drawTool","maxPoints","drawType","VectorSource","layer","VectorLayer","zIndex","addLayer","onlyDraw","initModify","init","_this4","undefined","type","geometryFunction","createBox","setActive","showTip","clearFeatures","callbackFn","drawSource","getSource","setStyle","Marker","addFeature","clear","hideTip","loadFeatures","addFeatures","removeDrawTool","removeInteraction","destroy","removeLayer"],"sources":["feature-draw/FeatureDraw.js"],"sourcesContent":["import { Vector as VectorLayer } from 'ol/layer';\r\nimport { Vector as VectorSource } from 'ol/source';\r\nimport { Draw, Modify } from 'ol/interaction';\r\nimport { createBox } from 'ol/interaction/Draw';\r\nimport { Stroke, Style, Circle as CircleStyle, Fill, Icon } from 'ol/style';\r\nimport Marker from '../marker/Marker';\r\n\r\nclass ModifyConstrain extends Modify {\r\n constructor(options) {\r\n super(options);\r\n this.constrainGeom_ = options.constrainGeom;\r\n }\r\n\r\n handleDragEvent(evt) {\r\n if (\r\n this.constrainGeom_ &&\r\n this.constrainGeom_.intersectsCoordinate &&\r\n !this.constrainGeom_.intersectsCoordinate(evt.coordinate)\r\n ) {\r\n evt.coordinate = this.constrainGeom_.getClosestPoint(evt.coordinate);\r\n }\r\n super.handleDragEvent(evt);\r\n }\r\n}\r\nclass DrawConstrain extends Draw {\r\n constructor(options) {\r\n super(options);\r\n this.constrainGeom_ = options.constrainGeom;\r\n }\r\n\r\n handlePointerMove_(evt) {\r\n if (\r\n this.constrainGeom_ &&\r\n this.constrainGeom_.intersectsCoordinate &&\r\n !this.constrainGeom_.intersectsCoordinate(evt.coordinate)\r\n ) {\r\n evt.coordinate = this.constrainGeom_.getClosestPoint(evt.coordinate);\r\n }\r\n super.handlePointerMove_(evt);\r\n }\r\n}\r\n\r\nexport const drawStyle = (feature, style) => {\r\n let _style = [];\r\n\r\n let styles = [\r\n new Style({\r\n fill: new Fill({\r\n color: 'rgba(255, 255, 255, 0.6)',\r\n }),\r\n stroke: new Stroke({\r\n color: '#009BFF',\r\n width: 2,\r\n }),\r\n image: new CircleStyle({\r\n radius: 4,\r\n fill: new Fill({\r\n color: 'rgba(0,155,255, 0.8)',\r\n }),\r\n }),\r\n }),\r\n ];\r\n\r\n if (style) {\r\n if (typeof style === 'function') {\r\n _style = style(feature);\r\n }\r\n if (Array.isArray(_style) && _style?.length) styles.push(..._style);\r\n }\r\n return styles;\r\n};\r\nexport default class {\r\n constructor(props, callback) {\r\n const { continuousDraw = true, style, markerStyle, constrainGeom } = props;\r\n\r\n this.map = props.map;\r\n this.drawTool = null;\r\n this.drawFeature = null;\r\n this.maxPoints = props.maxPoints;\r\n this.drawType = props.drawType;\r\n this.callback = callback;\r\n this.continuousDraw = continuousDraw; // 连续绘制\r\n this.constrainGeom = constrainGeom; // 绘制限制范围:geometry\r\n this.style = style;\r\n this.source = new VectorSource();\r\n\r\n this.layer = new VectorLayer({\r\n source: this.source,\r\n zIndex: props.zIndex || 20,\r\n style: function(feature) {\r\n return drawStyle(feature, style);\r\n },\r\n });\r\n\r\n this.map.addLayer(this.layer);\r\n if (!props.onlyDraw) {\r\n this.initModify();\r\n }\r\n }\r\n\r\n /**\r\n * @description:\r\n * @param {*} drawType DragBox-框选 Circle-圈选 Polygon-多边形选择\r\n * @return {*}\r\n */\r\n init(drawType, callback = this.callback, markerStyle) {\r\n const t = this;\r\n if (drawType) {\r\n const drawTool = new DrawConstrain({\r\n type: drawType,\r\n maxPoints: this.maxPoints,\r\n constrainGeom: this.constrainGeom,\r\n style: function(feature) {\r\n return drawStyle(feature, t.style);\r\n },\r\n ...(drawType === 'DragBox'\r\n ? {\r\n type: 'Circle',\r\n geometryFunction: createBox(),\r\n }\r\n : {}),\r\n ...(drawType === 'Marker'\r\n ? {\r\n type: 'Point',\r\n }\r\n : {}),\r\n });\r\n drawTool.on('drawstart', () => {\r\n this.drawTool.setActive(true);\r\n this.map.showTip('再次点击确定结束点');\r\n this.clearFeatures();\r\n this.callbackFn && this.callbackFn();\r\n });\r\n drawTool.on('drawend', event => {\r\n this.map.showTip('鼠标左键确定起始点');\r\n let drawSource = this.layer.getSource();\r\n this.drawFeature = event.feature;\r\n let _feature = event.feature.clone();\r\n if (drawType == 'Marker') {\r\n event.feature.setStyle(new Marker(markerStyle));\r\n }\r\n drawSource.addFeature(event.feature);\r\n callback && callback(_feature);\r\n this.drawTool.setActive(t.continuousDraw);\r\n });\r\n this.drawTool = drawTool;\r\n\r\n this.map.showTip('鼠标左键确定起始点');\r\n\r\n this.map.addInteraction(drawTool);\r\n }\r\n }\r\n\r\n initModify = () => {\r\n const t = this;\r\n const modify = new ModifyConstrain({\r\n source: this.source,\r\n constrainGeom: this.constrainGeom,\r\n });\r\n this.map.addInteraction(modify);\r\n modify.on('modifyend', event => {\r\n let features = event.features;\r\n let feature = features.item(features.getLength() - 1);\r\n this.drawFeature = feature;\r\n let _feature = feature.clone();\r\n t.callback && t.callback(_feature);\r\n });\r\n };\r\n\r\n clearFeatures() {\r\n this.source && this.source.clear();\r\n this.map.hideTip();\r\n }\r\n loadFeatures(feature) {\r\n if (this.style) {\r\n feature.setStyle(drawStyle(feature, this.style));\r\n }\r\n // feature.setStyle(drawStyle(feature, this.style));\r\n this.source && this.source.addFeatures([feature]);\r\n this.drawFeature = feature;\r\n }\r\n\r\n removeDrawTool() {\r\n this.map.removeInteraction(this.drawTool);\r\n }\r\n destroy() {\r\n this.map.removeLayer(this.layer);\r\n this.removeDrawTool();\r\n this.drawTool && this.drawTool.setActive(false);\r\n this.map.hideTip();\r\n }\r\n}\r\n"],"mappings":";;;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AACA,IAAAC,OAAA,GAAAD,OAAA;AACA,IAAAE,YAAA,GAAAF,OAAA;AACA,IAAAG,MAAA,GAAAH,OAAA;AACA,IAAAI,OAA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