@vtx/ol-map 1.0.144 → 1.0.146
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +205 -205
- package/lib/_util/EventEmitter.js +80 -0
- package/lib/_util/EventEmitter.js.map +1 -0
- package/lib/_util/StyleCache.js +48 -0
- package/lib/_util/StyleCache.js.map +1 -0
- package/lib/_util/encryptParams.js +65 -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 +25 -0
- package/lib/_util/getCookie.js.map +1 -0
- package/lib/_util/getDefaultMapInfo.js +51 -0
- package/lib/_util/getDefaultMapInfo.js.map +1 -0
- package/lib/_util/getSystemInfo.js +27 -0
- package/lib/_util/getSystemInfo.js.map +1 -0
- package/lib/_util/getToken.js +29 -0
- package/lib/_util/getToken.js.map +1 -0
- package/lib/_util/getUrlParam.js +16 -0
- package/lib/_util/getUrlParam.js.map +1 -0
- package/lib/_util/http.js +178 -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 +156 -0
- package/lib/_util/layer.js.map +1 -0
- package/lib/_util/mapTool.js +189 -0
- package/lib/_util/mapTool.js.map +1 -0
- package/lib/_util/projzh/datum/bd-09.js +45 -0
- package/lib/_util/projzh/datum/bd-09.js.map +1 -0
- package/lib/_util/projzh/datum/gcj-02.js +73 -0
- package/lib/_util/projzh/datum/gcj-02.js.map +1 -0
- package/lib/_util/projzh/datum/index.js +15 -0
- package/lib/_util/projzh/datum/index.js.map +1 -0
- package/lib/_util/projzh/index.js +41 -0
- package/lib/_util/projzh/index.js.map +1 -0
- package/lib/_util/projzh/projection/baidu-mercator.js +75 -0
- package/lib/_util/projzh/projection/baidu-mercator.js.map +1 -0
- package/lib/_util/projzh/projection/index.js +15 -0
- package/lib/_util/projzh/projection/index.js.map +1 -0
- package/lib/_util/projzh/projection/spherical-mercator.js +26 -0
- package/lib/_util/projzh/projection/spherical-mercator.js.map +1 -0
- package/lib/_util/projzh/util.js +28 -0
- package/lib/_util/projzh/util.js.map +1 -0
- package/lib/_util/search.js +133 -0
- package/lib/_util/search.js.map +1 -0
- package/lib/_util/setCookie.js +16 -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 +170 -0
- package/lib/_util/transform.js.map +1 -0
- package/lib/_util/useColSize.js +29 -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 +45 -0
- package/lib/_util/useSet.js.map +1 -0
- package/lib/analysis-layer/index.js +455 -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 +400 -0
- package/lib/buffer-draw/BufferDraw.js.map +1 -0
- package/lib/buffer-draw/index.js +57 -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 +53 -0
- package/lib/circle/Circle.js.map +1 -0
- package/lib/circle/index.js +65 -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 +13 -0
- package/lib/config.js.map +1 -0
- package/lib/convertCamelToCSS.js +24 -0
- package/lib/convertCamelToCSS.js.map +1 -0
- package/lib/dom/Dom.js +41 -0
- package/lib/dom/Dom.js.map +1 -0
- package/lib/dom/index.js +62 -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 +27 -0
- package/lib/events/index.js.map +1 -0
- package/lib/feature-draw/FeatureDraw.js +236 -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 +1040 -0
- package/lib/feature-layer/FeatureLayer.js.map +1 -0
- package/lib/feature-layer/MyCluster.js +153 -0
- package/lib/feature-layer/MyCluster.js.map +1 -0
- package/lib/feature-layer/createFeatureCollection.js +175 -0
- package/lib/feature-layer/createFeatureCollection.js.map +1 -0
- package/lib/feature-layer/index.js +155 -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 +200 -0
- package/lib/flow-line-layer/FlowLineLayer.js.map +1 -0
- package/lib/flow-line-layer/index.js +127 -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 +220 -0
- package/lib/fly-line-layer/FlyLineLayer.js.map +1 -0
- package/lib/fly-line-layer/index.js +110 -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 +134 -0
- package/lib/group-layer/GroupLayer.js.map +1 -0
- package/lib/group-layer/index.js +74 -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 +192 -0
- package/lib/heatmap-layer/HeatmapLayer.js.map +1 -0
- package/lib/heatmap-layer/index.js +94 -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 +201 -0
- package/lib/high-layer/HighLayer.js.map +1 -0
- package/lib/high-layer/index.js +46 -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 +332 -0
- package/lib/image-layer/ImageLayer.js.map +1 -0
- package/lib/image-layer/ImageTileLayer.js +334 -0
- package/lib/image-layer/ImageTileLayer.js.map +1 -0
- package/lib/image-layer/index.js +101 -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 +255 -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 +109 -0
- package/lib/legend/style/index.js +8 -0
- package/lib/legend/style/index.js.map +1 -0
- package/lib/legend/style/index.less +100 -0
- package/lib/map/Analysis.js +151 -0
- package/lib/map/Analysis.js.map +1 -0
- package/lib/map/Layers.js +341 -0
- package/lib/map/Layers.js.map +1 -0
- package/lib/map/Popup.js +372 -0
- package/lib/map/Popup.js.map +1 -0
- package/lib/map/ScaleDenominator.js +70 -0
- package/lib/map/ScaleDenominator.js.map +1 -0
- package/lib/map/Test.js +146 -0
- package/lib/map/Test.js.map +1 -0
- package/lib/map/getBaseLayers/imagery/amap/AmapImageryProvider.js +164 -0
- package/lib/map/getBaseLayers/imagery/amap/AmapImageryProvider.js.map +1 -0
- package/lib/map/getBaseLayers/imagery/baidu/BaiduImageryProvider.js +85 -0
- package/lib/map/getBaseLayers/imagery/baidu/BaiduImageryProvider.js.map +1 -0
- package/lib/map/getBaseLayers/imagery/geoq/GeoQImageryProvider.js +67 -0
- package/lib/map/getBaseLayers/imagery/geoq/GeoQImageryProvider.js.map +1 -0
- package/lib/map/getBaseLayers/imagery/tdt/TdtImageryProvider.js +86 -0
- package/lib/map/getBaseLayers/imagery/tdt/TdtImageryProvider.js.map +1 -0
- package/lib/map/getBaseLayers/index.js +48 -0
- package/lib/map/getBaseLayers/index.js.map +1 -0
- package/lib/map/index.js +823 -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 +82 -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 +108 -0
- package/lib/marker/Marker.js.map +1 -0
- package/lib/marker/index.js +62 -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 +47 -0
- package/lib/path-line-layer/PathLineLayer.js.map +1 -0
- package/lib/path-line-layer/getPathLineStyles.js +72 -0
- package/lib/path-line-layer/getPathLineStyles.js.map +1 -0
- package/lib/path-line-layer/index.js +152 -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 +677 -0
- package/lib/path-play-back/PathPlayBack.js.map +1 -0
- package/lib/path-play-back/index.js +76 -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 +63 -0
- package/lib/poi-search/Location.js.map +1 -0
- package/lib/poi-search/PoiList.js +116 -0
- package/lib/poi-search/PoiList.js.map +1 -0
- package/lib/poi-search/Search.js +208 -0
- package/lib/poi-search/Search.js.map +1 -0
- package/lib/poi-search/index.js +174 -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 +59 -0
- package/lib/point/Point.js.map +1 -0
- package/lib/point/index.js +62 -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 +53 -0
- package/lib/polygon/Polygon.js.map +1 -0
- package/lib/polygon/index.js +62 -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 +53 -0
- package/lib/polyline/Polyline.js.map +1 -0
- package/lib/polyline/index.js +62 -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 +204 -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 +14 -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 +39 -0
- package/lib/renderer/Fill.js.map +1 -0
- package/lib/renderer/Stroke.js +41 -0
- package/lib/renderer/Stroke.js.map +1 -0
- package/lib/renderer/index.js +140 -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 +34 -0
- package/lib/renderer/transformRgb.js.map +1 -0
- package/lib/search-map/VtxModal.js +205 -0
- package/lib/search-map/VtxModal.js.map +1 -0
- package/lib/search-map/index.js +418 -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 +88 -0
- package/lib/tile-layer/TileLayer.js.map +1 -0
- package/lib/tile-layer/index.js +53 -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 +183 -0
- package/lib/tools/Layer/LayerService.js.map +1 -0
- package/lib/tools/Layer/LayersCheckService.js +195 -0
- package/lib/tools/Layer/LayersCheckService.js.map +1 -0
- package/lib/tools/Layer/index.css +50 -0
- package/lib/tools/Layer/index.js +226 -0
- package/lib/tools/Layer/index.js.map +1 -0
- package/lib/tools/Layer/index.less +43 -0
- package/lib/tools/Search/index.js +298 -0
- package/lib/tools/Search/index.js.map +1 -0
- package/lib/tools/Toolbox/BoxSelect/index.js +20 -0
- package/lib/tools/Toolbox/BoxSelect/index.js.map +1 -0
- package/lib/tools/Toolbox/CircleSelect/index.js +20 -0
- package/lib/tools/Toolbox/CircleSelect/index.js.map +1 -0
- package/lib/tools/Toolbox/EagleEye/index.js +57 -0
- package/lib/tools/Toolbox/EagleEye/index.js.map +1 -0
- package/lib/tools/Toolbox/MapBookmark/Bookmark.js +153 -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 +430 -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 +234 -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 +17 -0
- package/lib/tools/Toolbox/Measure/Area/index.js.map +1 -0
- package/lib/tools/Toolbox/Measure/Distance/index.js +17 -0
- package/lib/tools/Toolbox/Measure/Distance/index.js.map +1 -0
- package/lib/tools/Toolbox/Measure/Measure.js +229 -0
- package/lib/tools/Toolbox/Measure/Measure.js.map +1 -0
- package/lib/tools/Toolbox/Measure/index.js +77 -0
- package/lib/tools/Toolbox/Measure/index.js.map +1 -0
- package/lib/tools/Toolbox/PolygonSelect/index.js +20 -0
- package/lib/tools/Toolbox/PolygonSelect/index.js.map +1 -0
- package/lib/tools/Toolbox/ScaleLine/index.js +59 -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 +779 -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 +593 -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 +50 -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 +172 -0
- package/lib/tools/Toolbox/index.js.map +1 -0
- package/lib/tools/Toolbox/index.less +2 -0
- package/lib/tools/Utils/CreateOverlay.js +47 -0
- package/lib/tools/Utils/CreateOverlay.js.map +1 -0
- package/lib/tools/Utils/Draw.js +130 -0
- package/lib/tools/Utils/Draw.js.map +1 -0
- package/lib/tools/Utils/HighLayer.js +213 -0
- package/lib/tools/Utils/HighLayer.js.map +1 -0
- package/lib/tools/Utils/measure.js +247 -0
- package/lib/tools/Utils/measure.js.map +1 -0
- package/lib/tools/Utils/utils.js +272 -0
- package/lib/tools/Utils/utils.js.map +1 -0
- package/lib/tools/View/index.css +35 -0
- package/lib/tools/View/index.js +166 -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 +113 -0
- package/lib/tools/analysis-tool/index.js.map +1 -0
- package/lib/tools/base-map-switch/index.js +150 -0
- package/lib/tools/base-map-switch/index.js.map +1 -0
- package/lib/tools/components/Chart/index.js +828 -0
- package/lib/tools/components/Chart/index.js.map +1 -0
- package/lib/tools/components/Icon/index.js +32 -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 +35 -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 +48 -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 +46 -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 +33 -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 +91 -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 +29 -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 +45 -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 +47 -0
- package/lib/tools/full-screen/index.js.map +1 -0
- package/lib/tools/index.js +151 -0
- package/lib/tools/index.js.map +1 -0
- package/lib/tools/layer-control/index.js +173 -0
- package/lib/tools/layer-control/index.js.map +1 -0
- package/lib/tools/refresh/index.js +41 -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 +67 -0
- package/lib/tools-item/index.js.map +1 -0
- package/lib/use-props/index.js +15 -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 +315 -0
- package/lib/wms-layer/WmsLayer.js.map +1 -0
- package/lib/wms-layer/index.js +98 -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,236 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
4
|
+
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(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
15
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
16
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
17
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
18
|
+
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _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(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
21
|
+
function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
|
|
22
|
+
function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
|
|
23
|
+
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
24
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
25
|
+
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
|
|
26
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
27
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
28
|
+
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
29
|
+
function _get() { if (typeof Reflect !== "undefined" && Reflect.get) { _get = Reflect.get.bind(); } else { _get = function _get(target, property, receiver) { var base = _superPropBase(target, property); if (!base) return; var desc = Object.getOwnPropertyDescriptor(base, property); if (desc.get) { return desc.get.call(arguments.length < 3 ? target : receiver); } return desc.value; }; } return _get.apply(this, arguments); }
|
|
30
|
+
function _superPropBase(object, property) { while (!Object.prototype.hasOwnProperty.call(object, property)) { object = _getPrototypeOf(object); if (object === null) break; } return object; }
|
|
31
|
+
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
32
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
33
|
+
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
34
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
|
|
35
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
36
|
+
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
37
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
38
|
+
var ModifyConstrain = /*#__PURE__*/function (_Modify) {
|
|
39
|
+
_inherits(ModifyConstrain, _Modify);
|
|
40
|
+
var _super = _createSuper(ModifyConstrain);
|
|
41
|
+
function ModifyConstrain(options) {
|
|
42
|
+
var _this;
|
|
43
|
+
_classCallCheck(this, ModifyConstrain);
|
|
44
|
+
_this = _super.call(this, options);
|
|
45
|
+
_this.constrainGeom_ = options.constrainGeom;
|
|
46
|
+
return _this;
|
|
47
|
+
}
|
|
48
|
+
_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
|
+
_get(_getPrototypeOf(ModifyConstrain.prototype), "handleDragEvent", this).call(this, evt);
|
|
55
|
+
}
|
|
56
|
+
}]);
|
|
57
|
+
return ModifyConstrain;
|
|
58
|
+
}(_interaction.Modify);
|
|
59
|
+
var DrawConstrain = /*#__PURE__*/function (_Draw) {
|
|
60
|
+
_inherits(DrawConstrain, _Draw);
|
|
61
|
+
var _super2 = _createSuper(DrawConstrain);
|
|
62
|
+
function DrawConstrain(options) {
|
|
63
|
+
var _this2;
|
|
64
|
+
_classCallCheck(this, DrawConstrain);
|
|
65
|
+
_this2 = _super2.call(this, options);
|
|
66
|
+
_this2.constrainGeom_ = options.constrainGeom;
|
|
67
|
+
return _this2;
|
|
68
|
+
}
|
|
69
|
+
_createClass(DrawConstrain, [{
|
|
70
|
+
key: "handlePointerMove_",
|
|
71
|
+
value: function handlePointerMove_(evt) {
|
|
72
|
+
if (this.constrainGeom_ && this.constrainGeom_.intersectsCoordinate && !this.constrainGeom_.intersectsCoordinate(evt.coordinate)) {
|
|
73
|
+
evt.coordinate = this.constrainGeom_.getClosestPoint(evt.coordinate);
|
|
74
|
+
}
|
|
75
|
+
_get(_getPrototypeOf(DrawConstrain.prototype), "handlePointerMove_", this).call(this, evt);
|
|
76
|
+
}
|
|
77
|
+
}]);
|
|
78
|
+
return DrawConstrain;
|
|
79
|
+
}(_interaction.Draw);
|
|
80
|
+
var drawStyle = function drawStyle(feature, style) {
|
|
81
|
+
var _style = [];
|
|
82
|
+
var styles = [new _style4.Style({
|
|
83
|
+
fill: new _style4.Fill({
|
|
84
|
+
color: 'rgba(255, 255, 255, 0.6)'
|
|
85
|
+
}),
|
|
86
|
+
stroke: new _style4.Stroke({
|
|
87
|
+
color: '#009BFF',
|
|
88
|
+
width: 2
|
|
89
|
+
}),
|
|
90
|
+
image: new _style4.Circle({
|
|
91
|
+
radius: 4,
|
|
92
|
+
fill: new _style4.Fill({
|
|
93
|
+
color: 'rgba(0,155,255, 0.8)'
|
|
94
|
+
})
|
|
95
|
+
})
|
|
96
|
+
})];
|
|
97
|
+
if (style) {
|
|
98
|
+
var _style2;
|
|
99
|
+
if (typeof style === 'function') {
|
|
100
|
+
_style = style(feature);
|
|
101
|
+
}
|
|
102
|
+
if (Array.isArray(_style) && (_style2 = _style) !== null && _style2 !== void 0 && _style2.length) styles.push.apply(styles, _toConsumableArray(_style));
|
|
103
|
+
}
|
|
104
|
+
return styles;
|
|
105
|
+
};
|
|
106
|
+
exports.drawStyle = drawStyle;
|
|
107
|
+
var _default = /*#__PURE__*/function () {
|
|
108
|
+
function _default(props, callback) {
|
|
109
|
+
var _this3 = this;
|
|
110
|
+
_classCallCheck(this, _default);
|
|
111
|
+
_defineProperty(this, "initModify", function () {
|
|
112
|
+
var t = _this3;
|
|
113
|
+
var modify = new ModifyConstrain({
|
|
114
|
+
source: _this3.source,
|
|
115
|
+
constrainGeom: _this3.constrainGeom
|
|
116
|
+
});
|
|
117
|
+
_this3.map.addInteraction(modify);
|
|
118
|
+
modify.on('modifyend', function (event) {
|
|
119
|
+
var features = event.features;
|
|
120
|
+
var feature = features.item(features.getLength() - 1);
|
|
121
|
+
_this3.drawFeature = feature;
|
|
122
|
+
var _feature = feature.clone();
|
|
123
|
+
t.callback && t.callback(_feature);
|
|
124
|
+
});
|
|
125
|
+
});
|
|
126
|
+
var _props$continuousDraw = props.continuousDraw,
|
|
127
|
+
continuousDraw = _props$continuousDraw === void 0 ? true : _props$continuousDraw,
|
|
128
|
+
_style3 = props.style,
|
|
129
|
+
markerStyle = props.markerStyle,
|
|
130
|
+
constrainGeom = props.constrainGeom;
|
|
131
|
+
this.map = props.map;
|
|
132
|
+
this.drawTool = null;
|
|
133
|
+
this.drawFeature = null;
|
|
134
|
+
this.maxPoints = props.maxPoints;
|
|
135
|
+
this.drawType = props.drawType;
|
|
136
|
+
this.callback = callback;
|
|
137
|
+
this.continuousDraw = continuousDraw; // 连续绘制
|
|
138
|
+
this.constrainGeom = constrainGeom; // 绘制限制范围:geometry
|
|
139
|
+
this.style = _style3;
|
|
140
|
+
this.source = new _source.Vector();
|
|
141
|
+
this.layer = new _layer.Vector({
|
|
142
|
+
source: this.source,
|
|
143
|
+
zIndex: props.zIndex || 20,
|
|
144
|
+
style: function style(feature) {
|
|
145
|
+
return drawStyle(feature, _style3);
|
|
146
|
+
}
|
|
147
|
+
});
|
|
148
|
+
this.map.addLayer(this.layer);
|
|
149
|
+
if (!props.onlyDraw) {
|
|
150
|
+
this.initModify();
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
/**
|
|
155
|
+
* @description:
|
|
156
|
+
* @param {*} drawType DragBox-框选 Circle-圈选 Polygon-多边形选择
|
|
157
|
+
* @return {*}
|
|
158
|
+
*/
|
|
159
|
+
_createClass(_default, [{
|
|
160
|
+
key: "init",
|
|
161
|
+
value: function init(drawType) {
|
|
162
|
+
var _this4 = this;
|
|
163
|
+
var callback = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : this.callback;
|
|
164
|
+
var markerStyle = arguments.length > 2 ? arguments[2] : undefined;
|
|
165
|
+
var t = this;
|
|
166
|
+
if (drawType) {
|
|
167
|
+
var drawTool = new DrawConstrain(_objectSpread(_objectSpread({
|
|
168
|
+
type: drawType,
|
|
169
|
+
maxPoints: this.maxPoints,
|
|
170
|
+
constrainGeom: this.constrainGeom,
|
|
171
|
+
style: function style(feature) {
|
|
172
|
+
return drawStyle(feature, t.style);
|
|
173
|
+
}
|
|
174
|
+
}, drawType === 'DragBox' ? {
|
|
175
|
+
type: 'Circle',
|
|
176
|
+
geometryFunction: (0, _Draw2.createBox)()
|
|
177
|
+
} : {}), drawType === 'Marker' ? {
|
|
178
|
+
type: 'Point'
|
|
179
|
+
} : {}));
|
|
180
|
+
drawTool.on('drawstart', function () {
|
|
181
|
+
_this4.drawTool.setActive(true);
|
|
182
|
+
_this4.map.showTip('再次点击确定结束点');
|
|
183
|
+
_this4.clearFeatures();
|
|
184
|
+
_this4.callbackFn && _this4.callbackFn();
|
|
185
|
+
});
|
|
186
|
+
drawTool.on('drawend', function (event) {
|
|
187
|
+
_this4.map.showTip('鼠标左键确定起始点');
|
|
188
|
+
var drawSource = _this4.layer.getSource();
|
|
189
|
+
_this4.drawFeature = event.feature;
|
|
190
|
+
var _feature = event.feature.clone();
|
|
191
|
+
if (drawType == 'Marker') {
|
|
192
|
+
event.feature.setStyle(new _Marker["default"](markerStyle));
|
|
193
|
+
}
|
|
194
|
+
drawSource.addFeature(event.feature);
|
|
195
|
+
callback && callback(_feature);
|
|
196
|
+
_this4.drawTool.setActive(t.continuousDraw);
|
|
197
|
+
});
|
|
198
|
+
this.drawTool = drawTool;
|
|
199
|
+
this.map.showTip('鼠标左键确定起始点');
|
|
200
|
+
this.map.addInteraction(drawTool);
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
}, {
|
|
204
|
+
key: "clearFeatures",
|
|
205
|
+
value: function clearFeatures() {
|
|
206
|
+
this.source && this.source.clear();
|
|
207
|
+
this.map.hideTip();
|
|
208
|
+
}
|
|
209
|
+
}, {
|
|
210
|
+
key: "loadFeatures",
|
|
211
|
+
value: function loadFeatures(feature) {
|
|
212
|
+
if (this.style) {
|
|
213
|
+
feature.setStyle(drawStyle(feature, this.style));
|
|
214
|
+
}
|
|
215
|
+
// feature.setStyle(drawStyle(feature, this.style));
|
|
216
|
+
this.source && this.source.addFeatures([feature]);
|
|
217
|
+
this.drawFeature = feature;
|
|
218
|
+
}
|
|
219
|
+
}, {
|
|
220
|
+
key: "removeDrawTool",
|
|
221
|
+
value: function removeDrawTool() {
|
|
222
|
+
this.map.removeInteraction(this.drawTool);
|
|
223
|
+
}
|
|
224
|
+
}, {
|
|
225
|
+
key: "destroy",
|
|
226
|
+
value: function destroy() {
|
|
227
|
+
this.map.removeLayer(this.layer);
|
|
228
|
+
this.removeDrawTool();
|
|
229
|
+
this.drawTool && this.drawTool.setActive(false);
|
|
230
|
+
this.map.hideTip();
|
|
231
|
+
}
|
|
232
|
+
}]);
|
|
233
|
+
return _default;
|
|
234
|
+
}();
|
|
235
|
+
exports["default"] = _default;
|
|
236
|
+
//# sourceMappingURL=FeatureDraw.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FeatureDraw.js","names":["_layer","require","_source","_interaction","_Draw2","_style4","_Marker","_interopRequireDefault","obj","__esModule","ownKeys","object","enumerableOnly","keys","Object","getOwnPropertySymbols","symbols","filter","sym","getOwnPropertyDescriptor","enumerable","push","apply","_objectSpread","target","i","arguments","length","source","forEach","key","_defineProperty","getOwnPropertyDescriptors","defineProperties","defineProperty","value","_toPropertyKey","configurable","writable","_toConsumableArray","arr","_arrayWithoutHoles","_iterableToArray","_unsupportedIterableToArray","_nonIterableSpread","TypeError","o","minLen","_arrayLikeToArray","n","prototype","toString","call","slice","constructor","name","Array","from","test","iter","Symbol","iterator","isArray","len","arr2","_classCallCheck","instance","Constructor","_defineProperties","props","descriptor","_createClass","protoProps","staticProps","arg","_toPrimitive","_typeof","String","input","hint","prim","toPrimitive","undefined","res","Number","_get","Reflect","get","bind","property","receiver","base","_superPropBase","desc","hasOwnProperty","_getPrototypeOf","_inherits","subClass","superClass","create","_setPrototypeOf","p","setPrototypeOf","__proto__","_createSuper","Derived","hasNativeReflectConstruct","_isNativeReflectConstruct","_createSuperInternal","Super","result","NewTarget","construct","_possibleConstructorReturn","self","_assertThisInitialized","ReferenceError","sham","Proxy","Boolean","valueOf","e","getPrototypeOf","ModifyConstrain","_Modify","_super","options","_this","constrainGeom_","constrainGeom","handleDragEvent","evt","intersectsCoordinate","coordinate","getClosestPoint","Modify","DrawConstrain","_Draw","_super2","_this2","handlePointerMove_","Draw","drawStyle","feature","style","_style","styles","Style","fill","Fill","color","stroke","Stroke","width","image","CircleStyle","radius","_style2","exports","_default","callback","_this3","t","modify","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","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';\nimport { Vector as VectorSource } from 'ol/source';\nimport { Draw, Modify } from 'ol/interaction';\nimport { createBox } from 'ol/interaction/Draw';\nimport { Stroke, Style, Circle as CircleStyle, Fill, Icon } from 'ol/style';\nimport Marker from '../marker/Marker';\n\nclass ModifyConstrain extends Modify {\n constructor(options) {\n super(options);\n this.constrainGeom_ = options.constrainGeom;\n }\n\n handleDragEvent(evt) {\n if (\n this.constrainGeom_ &&\n this.constrainGeom_.intersectsCoordinate &&\n !this.constrainGeom_.intersectsCoordinate(evt.coordinate)\n ) {\n evt.coordinate = this.constrainGeom_.getClosestPoint(evt.coordinate);\n }\n super.handleDragEvent(evt);\n }\n}\nclass DrawConstrain extends Draw {\n constructor(options) {\n super(options);\n this.constrainGeom_ = options.constrainGeom;\n }\n\n handlePointerMove_(evt) {\n if (\n this.constrainGeom_ &&\n this.constrainGeom_.intersectsCoordinate &&\n !this.constrainGeom_.intersectsCoordinate(evt.coordinate)\n ) {\n evt.coordinate = this.constrainGeom_.getClosestPoint(evt.coordinate);\n }\n super.handlePointerMove_(evt);\n }\n}\n\nexport const drawStyle = (feature, style) => {\n let _style = [];\n\n let styles = [\n new Style({\n fill: new Fill({\n color: 'rgba(255, 255, 255, 0.6)',\n }),\n stroke: new Stroke({\n color: '#009BFF',\n width: 2,\n }),\n image: new CircleStyle({\n radius: 4,\n fill: new Fill({\n color: 'rgba(0,155,255, 0.8)',\n }),\n }),\n }),\n ];\n\n if (style) {\n if (typeof style === 'function') {\n _style = style(feature);\n }\n if (Array.isArray(_style) && _style?.length) styles.push(..._style);\n }\n return styles;\n};\nexport default class {\n constructor(props, callback) {\n const { continuousDraw = true, style, markerStyle, constrainGeom } = props;\n\n this.map = props.map;\n this.drawTool = null;\n this.drawFeature = null;\n this.maxPoints = props.maxPoints;\n this.drawType = props.drawType;\n this.callback = callback;\n this.continuousDraw = continuousDraw; // 连续绘制\n this.constrainGeom = constrainGeom; // 绘制限制范围:geometry\n this.style = style;\n this.source = new VectorSource();\n\n this.layer = new VectorLayer({\n source: this.source,\n zIndex: props.zIndex || 20,\n style: function(feature) {\n return drawStyle(feature, style);\n },\n });\n\n this.map.addLayer(this.layer);\n if (!props.onlyDraw) {\n this.initModify();\n }\n }\n\n /**\n * @description:\n * @param {*} drawType DragBox-框选 Circle-圈选 Polygon-多边形选择\n * @return {*}\n */\n init(drawType, callback = this.callback, markerStyle) {\n const t = this;\n if (drawType) {\n const drawTool = new DrawConstrain({\n type: drawType,\n maxPoints: this.maxPoints,\n constrainGeom: this.constrainGeom,\n style: function(feature) {\n return drawStyle(feature, t.style);\n },\n ...(drawType === 'DragBox'\n ? {\n type: 'Circle',\n geometryFunction: createBox(),\n }\n : {}),\n ...(drawType === 'Marker'\n ? {\n type: 'Point',\n }\n : {}),\n });\n drawTool.on('drawstart', () => {\n this.drawTool.setActive(true);\n this.map.showTip('再次点击确定结束点');\n this.clearFeatures();\n this.callbackFn && this.callbackFn();\n });\n drawTool.on('drawend', event => {\n this.map.showTip('鼠标左键确定起始点');\n let drawSource = this.layer.getSource();\n this.drawFeature = event.feature;\n let _feature = event.feature.clone();\n if (drawType == 'Marker') {\n event.feature.setStyle(new Marker(markerStyle));\n }\n drawSource.addFeature(event.feature);\n callback && callback(_feature);\n this.drawTool.setActive(t.continuousDraw);\n });\n this.drawTool = drawTool;\n\n this.map.showTip('鼠标左键确定起始点');\n\n this.map.addInteraction(drawTool);\n }\n }\n\n initModify = () => {\n const t = this;\n const modify = new ModifyConstrain({\n source: this.source,\n constrainGeom: this.constrainGeom,\n });\n this.map.addInteraction(modify);\n modify.on('modifyend', event => {\n let features = event.features;\n let feature = features.item(features.getLength() - 1);\n this.drawFeature = feature;\n let _feature = feature.clone();\n t.callback && t.callback(_feature);\n });\n };\n\n clearFeatures() {\n this.source && this.source.clear();\n this.map.hideTip();\n }\n loadFeatures(feature) {\n if (this.style) {\n feature.setStyle(drawStyle(feature, this.style));\n }\n // feature.setStyle(drawStyle(feature, this.style));\n this.source && this.source.addFeatures([feature]);\n this.drawFeature = feature;\n }\n\n removeDrawTool() {\n this.map.removeInteraction(this.drawTool);\n }\n destroy() {\n this.map.removeLayer(this.layer);\n this.removeDrawTool();\n this.drawTool && this.drawTool.setActive(false);\n this.map.hideTip();\n }\n}\n"],"mappings":";;;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AACA,IAAAC,OAAA,GAAAD,OAAA;AACA,IAAAE,YAAA,GAAAF,OAAA;AACA,IAAAG,MAAA,GAAAH,OAAA;AACA,IAAAI,OAAA,GAAAJ,OAAA;AACA,IAAAK,OAAA,GAAAC,sBAAA,CAAAN,OAAA;AAAsC,SAAAM,uBAAAC,GAAA,WAAAA,GAAA,IAAAA,GAAA,CAAAC,UAAA,GAAAD,GAAA,gBAAAA,GAAA;AAAA,SAAAE,QAAAC,MAAA,EAAAC,cAAA,QAAAC,IAAA,GAAAC,MAAA,CAAAD,IAAA,CAAAF,MAAA,OAAAG,MAAA,CAAAC,qBAAA,QAAAC,OAAA,GAAAF,MAAA,CAAAC,qBAAA,CAAAJ,MAAA,GAAAC,cAAA,KAAAI,OAAA,GAAAA,OAAA,CAAAC,MAAA,WAAAC,GAAA,WAAAJ,MAAA,CAAAK,wBAAA,CAAAR,MAAA,EAAAO,GAAA,EAAAE,UAAA,OAAAP,IAAA,CAAAQ,IAAA,CAAAC,KAAA,CAAAT,IAAA,EAAAG,OAAA,YAAAH,IAAA;AAAA,SAAAU,cAAAC,MAAA,aAAAC,CAAA,MAAAA,CAAA,GAAAC,SAAA,CAAAC,MAAA,EAAAF,CAAA,UAAAG,MAAA,WAAAF,SAAA,CAAAD,CAAA,IAAAC,SAAA,CAAAD,CAAA,QAAAA,CAAA,OAAAf,OAAA,CAAAI,MAAA,CAAAc,MAAA,OAAAC,OAAA,WAAAC,GAAA,IAAAC,eAAA,CAAAP,MAAA,EAAAM,GAAA,EAAAF,MAAA,CAAAE,GAAA,SAAAhB,MAAA,CAAAkB,yBAAA,GAAAlB,MAAA,CAAAmB,gBAAA,CAAAT,MAAA,EA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,CAAC4B,WAAW,GAAG5B,OAAO;IAC9B;EAAC;IAAAjH,GAAA;IAAAK,KAAA,EAED,SAAA0K,eAAA,EAAiB;MACb,IAAI,CAACzC,GAAG,CAAC0C,iBAAiB,CAAC,IAAI,CAAC7B,QAAQ,CAAC;IAC7C;EAAC;IAAAnJ,GAAA;IAAAK,KAAA,EACD,SAAA4K,QAAA,EAAU;MACN,IAAI,CAAC3C,GAAG,CAAC4C,WAAW,CAAC,IAAI,CAAC3B,KAAK,CAAC;MAChC,IAAI,CAACwB,cAAc,CAAC,CAAC;MACrB,IAAI,CAAC5B,QAAQ,IAAI,IAAI,CAACA,QAAQ,CAACe,SAAS,CAAC,KAAK,CAAC;MAC/C,IAAI,CAAC5B,GAAG,CAACsC,OAAO,CAAC,CAAC;IACtB;EAAC;EAAA,OAAA3C,QAAA;AAAA;AAAAD,OAAA,cAAAC,QAAA"}
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports["default"] = FeatureDraw;
|
|
7
|
+
var _react = require("react");
|
|
8
|
+
var _useProps2 = _interopRequireDefault(require("../use-props"));
|
|
9
|
+
var _FeatureDraw = _interopRequireDefault(require("./FeatureDraw"));
|
|
10
|
+
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
11
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
12
|
+
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
13
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
14
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
15
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
16
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
17
|
+
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
18
|
+
function FeatureDraw(props) {
|
|
19
|
+
var _useProps = (0, _useProps2["default"])(),
|
|
20
|
+
map = _useProps.map;
|
|
21
|
+
var drawRef = (0, _react.useRef)();
|
|
22
|
+
var _props$drawType = props.drawType,
|
|
23
|
+
drawType = _props$drawType === void 0 ? '' : _props$drawType,
|
|
24
|
+
_props$onDrawEnd = props.onDrawEnd,
|
|
25
|
+
onDrawEnd = _props$onDrawEnd === void 0 ? function () {} : _props$onDrawEnd,
|
|
26
|
+
_props$feature = props.feature,
|
|
27
|
+
feature = _props$feature === void 0 ? null : _props$feature,
|
|
28
|
+
_props$style = props.style,
|
|
29
|
+
style = _props$style === void 0 ? null : _props$style,
|
|
30
|
+
_props$markerStyle = props.markerStyle,
|
|
31
|
+
markerStyle = _props$markerStyle === void 0 ? {
|
|
32
|
+
icon: 'YWZ',
|
|
33
|
+
color: '#119FFB'
|
|
34
|
+
} : _props$markerStyle;
|
|
35
|
+
(0, _react.useEffect)(function () {
|
|
36
|
+
drawRef.current = new _FeatureDraw["default"](_objectSpread(_objectSpread({}, props), {}, {
|
|
37
|
+
map: map,
|
|
38
|
+
style: style
|
|
39
|
+
}), function (feature, distance) {
|
|
40
|
+
onDrawEnd(feature, distance);
|
|
41
|
+
});
|
|
42
|
+
return function () {
|
|
43
|
+
drawRef.current.destroy();
|
|
44
|
+
};
|
|
45
|
+
}, []);
|
|
46
|
+
(0, _react.useEffect)(function () {
|
|
47
|
+
if (drawRef.current) {
|
|
48
|
+
var _drawRef$current, _drawRef$current2;
|
|
49
|
+
(_drawRef$current = drawRef.current) === null || _drawRef$current === void 0 ? void 0 : _drawRef$current.clearFeatures();
|
|
50
|
+
(_drawRef$current2 = drawRef.current) === null || _drawRef$current2 === void 0 ? void 0 : _drawRef$current2.removeDrawTool();
|
|
51
|
+
// 如果有features的话 加载features
|
|
52
|
+
if (feature) {
|
|
53
|
+
var _drawRef$current3;
|
|
54
|
+
(_drawRef$current3 = drawRef.current) === null || _drawRef$current3 === void 0 ? void 0 : _drawRef$current3.loadFeatures(feature);
|
|
55
|
+
} else {
|
|
56
|
+
var _drawRef$current4;
|
|
57
|
+
(_drawRef$current4 = drawRef.current) === null || _drawRef$current4 === void 0 ? void 0 : _drawRef$current4.init(drawType, function (feature, distance) {
|
|
58
|
+
onDrawEnd(feature, distance);
|
|
59
|
+
}, markerStyle);
|
|
60
|
+
}
|
|
61
|
+
drawRef.current.drawType = drawType;
|
|
62
|
+
}
|
|
63
|
+
}, [drawType, feature]);
|
|
64
|
+
return null;
|
|
65
|
+
}
|
|
66
|
+
FeatureDraw.propTypes = {
|
|
67
|
+
drawType: _propTypes["default"].string,
|
|
68
|
+
onDrawEnd: _propTypes["default"].func,
|
|
69
|
+
feature: _propTypes["default"].object,
|
|
70
|
+
style: _propTypes["default"].object,
|
|
71
|
+
markerStyle: _propTypes["default"].object
|
|
72
|
+
};
|
|
73
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","names":["_react","require","_useProps2","_interopRequireDefault","_FeatureDraw","_propTypes","obj","__esModule","_typeof","Symbol","iterator","constructor","prototype","ownKeys","object","enumerableOnly","keys","Object","getOwnPropertySymbols","symbols","filter","sym","getOwnPropertyDescriptor","enumerable","push","apply","_objectSpread","target","i","arguments","length","source","forEach","key","_defineProperty","getOwnPropertyDescriptors","defineProperties","defineProperty","value","_toPropertyKey","configurable","writable","arg","_toPrimitive","String","input","hint","prim","toPrimitive","undefined","res","call","TypeError","Number","FeatureDraw","props","_useProps","useProps","map","drawRef","useRef","_props$drawType","drawType","_props$onDrawEnd","onDrawEnd","_props$feature","feature","_props$style","style","_props$markerStyle","markerStyle","icon","color","useEffect","current","FeatureDrawFun","distance","destroy","_drawRef$current","_drawRef$current2","clearFeatures","removeDrawTool","_drawRef$current3","loadFeatures","_drawRef$current4","init","propTypes","PropTypes","string","func"],"sources":["feature-draw/index.js"],"sourcesContent":["import { useRef, useEffect } from 'react';\nimport useProps from '../use-props';\nimport FeatureDrawFun from './FeatureDraw';\nimport PropTypes from 'prop-types';\n\nexport default function FeatureDraw(props) {\n const { map } = useProps();\n const drawRef = useRef();\n const {\n drawType = '',\n onDrawEnd = () => {},\n feature = null,\n style = null,\n markerStyle = { icon: 'YWZ', color: '#119FFB' },\n } = props;\n useEffect(() => {\n drawRef.current = new FeatureDrawFun({ ...props, map, style }, (feature, distance) => {\n onDrawEnd(feature, distance);\n });\n return () => {\n drawRef.current.destroy();\n };\n }, []);\n\n useEffect(() => {\n if (drawRef.current) {\n drawRef.current?.clearFeatures();\n drawRef.current?.removeDrawTool();\n // 如果有features的话 加载features\n if (feature) {\n drawRef.current?.loadFeatures(feature);\n } else {\n drawRef.current?.init(\n drawType,\n (feature, distance) => {\n onDrawEnd(feature, distance);\n },\n markerStyle,\n );\n }\n\n drawRef.current.drawType = drawType;\n }\n }, [drawType, feature]);\n\n return null;\n}\nFeatureDraw.propTypes = {\n drawType: PropTypes.string,\n onDrawEnd: PropTypes.func,\n feature: PropTypes.object,\n style: PropTypes.object,\n markerStyle: PropTypes.object,\n};\n"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AACA,IAAAC,UAAA,GAAAC,sBAAA,CAAAF,OAAA;AACA,IAAAG,YAAA,GAAAD,sBAAA,CAAAF,OAAA;AACA,IAAAI,UAAA,GAAAF,sBAAA,CAAAF,OAAA;AAAmC,SAAAE,uBAAAG,GAAA,WAAAA,GAAA,IAAAA,GAAA,CAAAC,UAAA,GAAAD,GAAA,gBAAAA,GAAA;AAAA,SAAAE,QAAAF,GAAA,sCAAAE,OAAA,wBAAAC,MAAA,uBAAAA,MAAA,CAAAC,QAAA,aAAAJ,GAAA,kBAAAA,GAAA,gBAAAA,GAAA,WAAAA,GAAA,yBAAAG,MAAA,IAAAH,GAAA,CAAAK,WAAA,KAAAF,MAAA,IAAAH,GAAA,KAAAG,MAAA,CAAAG,SAAA,qBAAAN,GAAA,KAAAE,OAAA,CAAAF,GAAA;AAAA,SAAAO,QAAAC,MAAA,EAAAC,cAAA,QAAAC,IAAA,GAAAC,MAAA,CAAAD,IAAA,CAAAF,MAAA,OAAAG,MAAA,CAAAC,qBAAA,QAAAC,OAAA,GAAAF,MAAA,CAAAC,qBAAA,CAAAJ,MAAA,GAAAC,cAAA,KAAAI,OAAA,GAAAA,OAAA,CAAAC,MAAA,WAAAC,GAAA,WAAAJ,MAAA,CAAAK,wBAAA,CAAAR,MAAA,EAAAO,GAAA,EAAAE,UAAA,OAAAP,IAAA,CAAAQ,IAAA,CAAAC,KAAA,CAAAT,IAAA,EAAAG,OAAA,YAAAH,IAAA;AAAA,SAAAU,cAAAC,MAAA,aAAAC,CAAA,MAAAA,CAAA,GAAAC,SAAA,CAAAC,MAAA,EAAAF,CAA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
+
{"version":3,"file":"index.js","names":[],"sources":["feature-draw/style/index.js"],"sourcesContent":[""],"mappings":""}
|