@vtx/ol-map 1.0.103 → 1.0.105
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 +8 -10
- package/lib/_util/EventEmitter.js.map +1 -1
- package/lib/_util/StyleCache.js +8 -10
- package/lib/_util/StyleCache.js.map +1 -1
- package/lib/_util/encryptParams.js +3 -4
- package/lib/_util/encryptParams.js.map +1 -1
- package/lib/_util/filterSpecialCharacters.js +12 -12
- package/lib/_util/filterSpecialCharacters.js.map +1 -1
- package/lib/_util/getComponentProps.js +1 -1
- package/lib/_util/getComponentProps.js.map +1 -1
- package/lib/_util/getCookie.js +5 -6
- package/lib/_util/getCookie.js.map +1 -1
- package/lib/_util/getDefaultMapInfo.js +7 -8
- package/lib/_util/getDefaultMapInfo.js.map +1 -1
- package/lib/_util/getSystemInfo.js +7 -8
- package/lib/_util/getSystemInfo.js.map +1 -1
- package/lib/_util/getToken.js +2 -4
- package/lib/_util/getToken.js.map +1 -1
- package/lib/_util/getUrlParam.js +2 -3
- package/lib/_util/getUrlParam.js.map +1 -1
- package/lib/_util/http.js +30 -32
- package/lib/_util/http.js.map +1 -1
- package/lib/_util/isFunction.js.map +1 -1
- package/lib/_util/isObject.js.map +1 -1
- package/lib/_util/layer.js +33 -37
- package/lib/_util/layer.js.map +1 -1
- package/lib/_util/mapTool.js +36 -37
- package/lib/_util/mapTool.js.map +1 -1
- package/lib/_util/projzh/datum/bd-09.js +2 -3
- package/lib/_util/projzh/datum/bd-09.js.map +1 -1
- package/lib/_util/projzh/datum/gcj-02.js +1 -2
- package/lib/_util/projzh/datum/gcj-02.js.map +1 -1
- package/lib/_util/projzh/datum/index.js +2 -3
- package/lib/_util/projzh/datum/index.js.map +1 -1
- package/lib/_util/projzh/index.js +2 -3
- package/lib/_util/projzh/index.js.map +1 -1
- package/lib/_util/projzh/projection/baidu-mercator.js +1 -2
- package/lib/_util/projzh/projection/baidu-mercator.js.map +1 -1
- package/lib/_util/projzh/projection/index.js +2 -3
- package/lib/_util/projzh/projection/index.js.map +1 -1
- package/lib/_util/projzh/projection/spherical-mercator.js +1 -2
- package/lib/_util/projzh/projection/spherical-mercator.js.map +1 -1
- package/lib/_util/projzh/util.js +1 -2
- package/lib/_util/projzh/util.js.map +1 -1
- package/lib/_util/search.js +13 -16
- package/lib/_util/search.js.map +1 -1
- package/lib/_util/setCookie.js +5 -6
- package/lib/_util/setCookie.js.map +1 -1
- package/lib/_util/stringToFun.js +25 -0
- package/lib/_util/stringToFun.js.map +1 -0
- package/lib/_util/transform.js +9 -10
- package/lib/_util/transform.js.map +1 -1
- package/lib/_util/useColSize.js +2 -3
- package/lib/_util/useColSize.js.map +1 -1
- package/lib/_util/useInterval.js.map +1 -1
- package/lib/_util/useSet.js +12 -13
- package/lib/_util/useSet.js.map +1 -1
- package/lib/analysis-layer/index.js +44 -50
- package/lib/analysis-layer/index.js.map +1 -1
- package/lib/analysis-layer/style/css.js.map +1 -1
- package/lib/analysis-layer/style/index.js.map +1 -1
- package/lib/buffer-draw/BufferDraw.js +11 -13
- package/lib/buffer-draw/BufferDraw.js.map +1 -1
- package/lib/buffer-draw/index.js +9 -9
- package/lib/buffer-draw/index.js.map +1 -1
- package/lib/buffer-draw/style/css.js.map +1 -1
- package/lib/buffer-draw/style/index.js.map +1 -1
- package/lib/circle/Circle.js +22 -24
- package/lib/circle/Circle.js.map +1 -1
- package/lib/circle/index.js +4 -4
- package/lib/circle/index.js.map +1 -1
- package/lib/circle/style/css.js.map +1 -1
- package/lib/circle/style/index.js.map +1 -1
- package/lib/config.js +1 -2
- package/lib/config.js.map +1 -1
- package/lib/convertCamelToCSS.js +23 -0
- package/lib/convertCamelToCSS.js.map +1 -0
- package/lib/dom/Dom.js +16 -18
- package/lib/dom/Dom.js.map +1 -1
- package/lib/dom/index.js +11 -11
- package/lib/dom/index.js.map +1 -1
- package/lib/dom/style/css.js.map +1 -1
- package/lib/dom/style/index.js.map +1 -1
- package/lib/events/index.js +2 -4
- package/lib/events/index.js.map +1 -1
- package/lib/feature-draw/FeatureDraw.js +37 -44
- package/lib/feature-draw/FeatureDraw.js.map +1 -1
- package/lib/feature-draw/index.js +11 -11
- package/lib/feature-draw/index.js.map +1 -1
- package/lib/feature-draw/style/css.js.map +1 -1
- package/lib/feature-draw/style/index.js.map +1 -1
- package/lib/feature-layer/FeatureLayer.js +123 -99
- package/lib/feature-layer/FeatureLayer.js.map +1 -1
- package/lib/feature-layer/MyCluster.js +28 -31
- package/lib/feature-layer/MyCluster.js.map +1 -1
- package/lib/feature-layer/createFeatureCollection.js +27 -35
- package/lib/feature-layer/createFeatureCollection.js.map +1 -1
- package/lib/feature-layer/index.js +24 -18
- package/lib/feature-layer/index.js.map +1 -1
- package/lib/feature-layer/style/css.js.map +1 -1
- package/lib/feature-layer/style/index.js.map +1 -1
- package/lib/flow-line-layer/FlowLineLayer.js +22 -25
- package/lib/flow-line-layer/FlowLineLayer.js.map +1 -1
- package/lib/flow-line-layer/index.js +16 -16
- package/lib/flow-line-layer/index.js.map +1 -1
- package/lib/flow-line-layer/style/css.js.map +1 -1
- package/lib/flow-line-layer/style/index.js.map +1 -1
- package/lib/fly-line-layer/FlyLineLayer.js +15 -17
- package/lib/fly-line-layer/FlyLineLayer.js.map +1 -1
- package/lib/fly-line-layer/index.js +9 -9
- package/lib/fly-line-layer/index.js.map +1 -1
- package/lib/fly-line-layer/style/css.js.map +1 -1
- package/lib/fly-line-layer/style/index.js.map +1 -1
- package/lib/group-layer/GroupLayer.js +10 -12
- package/lib/group-layer/GroupLayer.js.map +1 -1
- package/lib/group-layer/index.js +9 -9
- package/lib/group-layer/index.js.map +1 -1
- package/lib/group-layer/style/css.js.map +1 -1
- package/lib/group-layer/style/index.js.map +1 -1
- package/lib/heatmap-layer/HeatmapLayer.js +26 -29
- package/lib/heatmap-layer/HeatmapLayer.js.map +1 -1
- package/lib/heatmap-layer/index.js +9 -9
- package/lib/heatmap-layer/index.js.map +1 -1
- package/lib/heatmap-layer/style/css.js.map +1 -1
- package/lib/heatmap-layer/style/index.js.map +1 -1
- package/lib/high-layer/HighLayer.js +13 -15
- package/lib/high-layer/HighLayer.js.map +1 -1
- package/lib/high-layer/index.js +12 -13
- package/lib/high-layer/index.js.map +1 -1
- package/lib/high-layer/style/css.js.map +1 -1
- package/lib/high-layer/style/index.js.map +1 -1
- package/lib/image-layer/ImageLayer.js +28 -32
- package/lib/image-layer/ImageLayer.js.map +1 -1
- package/lib/image-layer/index.js +11 -11
- package/lib/image-layer/index.js.map +1 -1
- package/lib/image-layer/style/css.js.map +1 -1
- package/lib/image-layer/style/index.js.map +1 -1
- package/lib/index.js +1 -1
- package/lib/index.js.map +1 -1
- package/lib/legend/index.js +51 -62
- package/lib/legend/index.js.map +1 -1
- package/lib/legend/style/css.js.map +1 -1
- package/lib/legend/style/index.css +5 -1
- package/lib/legend/style/index.js.map +1 -1
- package/lib/legend/style/index.less +73 -66
- package/lib/map/Analysis.js +18 -21
- package/lib/map/Analysis.js.map +1 -1
- package/lib/map/Layers.js +24 -28
- package/lib/map/Layers.js.map +1 -1
- package/lib/map/Popup.js +20 -21
- package/lib/map/Popup.js.map +1 -1
- package/lib/map/getBaseLayers/imagery/amap/AmapImageryProvider.js +1 -2
- package/lib/map/getBaseLayers/imagery/amap/AmapImageryProvider.js.map +1 -1
- package/lib/map/getBaseLayers/imagery/baidu/BaiduImageryProvider.js +2 -3
- package/lib/map/getBaseLayers/imagery/baidu/BaiduImageryProvider.js.map +1 -1
- package/lib/map/getBaseLayers/imagery/geoq/GeoQImageryProvider.js +8 -10
- package/lib/map/getBaseLayers/imagery/geoq/GeoQImageryProvider.js.map +1 -1
- package/lib/map/getBaseLayers/imagery/tdt/TdtImageryProvider.js +7 -9
- package/lib/map/getBaseLayers/imagery/tdt/TdtImageryProvider.js.map +1 -1
- package/lib/map/getBaseLayers/index.js +9 -11
- package/lib/map/getBaseLayers/index.js.map +1 -1
- package/lib/map/index.js +33 -34
- package/lib/map/index.js.map +1 -1
- package/lib/map/style/css.js.map +1 -1
- package/lib/map/style/index.css +58 -13
- package/lib/map/style/index.js.map +1 -1
- package/lib/map/style/index.less +152 -116
- package/lib/map-icon/svg/index.js +2 -3
- package/lib/map-icon/svg/index.js.map +1 -1
- package/lib/map-icon/svg/tuceng.svg.js.map +1 -1
- package/lib/marker/Marker.js +21 -24
- package/lib/marker/Marker.js.map +1 -1
- package/lib/marker/index.js +4 -4
- package/lib/marker/index.js.map +1 -1
- package/lib/marker/style/css.js.map +1 -1
- package/lib/marker/style/index.js.map +1 -1
- package/lib/path-line-layer/PathLineLayer.js +21 -23
- package/lib/path-line-layer/PathLineLayer.js.map +1 -1
- package/lib/path-line-layer/getPathLineStyles.js +8 -9
- package/lib/path-line-layer/getPathLineStyles.js.map +1 -1
- package/lib/path-line-layer/index.js +16 -16
- package/lib/path-line-layer/index.js.map +1 -1
- package/lib/path-line-layer/style/css.js.map +1 -1
- package/lib/path-line-layer/style/index.js.map +1 -1
- package/lib/path-play-back/PathPlayBack.js +19 -21
- package/lib/path-play-back/PathPlayBack.js.map +1 -1
- package/lib/path-play-back/index.js +8 -9
- package/lib/path-play-back/index.js.map +1 -1
- package/lib/path-play-back/style/css.js.map +1 -1
- package/lib/path-play-back/style/index.js.map +1 -1
- package/lib/poi-search/Location.js +8 -8
- package/lib/poi-search/Location.js.map +1 -1
- package/lib/poi-search/PoiList.js +13 -10
- package/lib/poi-search/PoiList.js.map +1 -1
- package/lib/poi-search/Search.js +25 -22
- package/lib/poi-search/Search.js.map +1 -1
- package/lib/poi-search/index.js +10 -11
- package/lib/poi-search/index.js.map +1 -1
- package/lib/poi-search/style/css.js.map +1 -1
- package/lib/poi-search/style/index.js.map +1 -1
- package/lib/poi-search/style/index.less +97 -97
- package/lib/point/Point.js +22 -24
- package/lib/point/Point.js.map +1 -1
- package/lib/point/index.js +4 -4
- package/lib/point/index.js.map +1 -1
- package/lib/point/style/css.js.map +1 -1
- package/lib/point/style/index.js.map +1 -1
- package/lib/polygon/Polygon.js +22 -24
- package/lib/polygon/Polygon.js.map +1 -1
- package/lib/polygon/index.js +4 -4
- package/lib/polygon/index.js.map +1 -1
- package/lib/polygon/style/css.js.map +1 -1
- package/lib/polygon/style/index.js.map +1 -1
- package/lib/polyline/Polyline.js +22 -24
- package/lib/polyline/Polyline.js.map +1 -1
- package/lib/polyline/index.js +4 -4
- package/lib/polyline/index.js.map +1 -1
- package/lib/polyline/style/css.js.map +1 -1
- package/lib/polyline/style/index.js.map +1 -1
- package/lib/popup/index.js +15 -16
- package/lib/popup/index.js.map +1 -1
- package/lib/popup/style/css.js.map +1 -1
- package/lib/popup/style/index.js.map +1 -1
- package/lib/popup/style/index.less +128 -128
- package/lib/provider/index.js +3 -5
- package/lib/provider/index.js.map +1 -1
- package/lib/provider/style/css.js.map +1 -1
- package/lib/provider/style/index.js.map +1 -1
- package/lib/renderer/Fill.js +17 -19
- package/lib/renderer/Fill.js.map +1 -1
- package/lib/renderer/Stroke.js +17 -19
- package/lib/renderer/Stroke.js.map +1 -1
- package/lib/renderer/index.js +13 -15
- package/lib/renderer/index.js.map +1 -1
- package/lib/renderer/style/css.js.map +1 -1
- package/lib/renderer/style/index.js.map +1 -1
- package/lib/renderer/transformRgb.js +1 -2
- package/lib/renderer/transformRgb.js.map +1 -1
- package/lib/search-map/VtxModal.js +22 -25
- package/lib/search-map/VtxModal.js.map +1 -1
- package/lib/search-map/index.js +10 -11
- package/lib/search-map/index.js.map +1 -1
- package/lib/search-map/style/css.js.map +1 -1
- package/lib/search-map/style/index.js.map +1 -1
- package/lib/search-map/style/index.less +71 -71
- package/lib/search-map/style/modal.less +58 -58
- package/lib/style/index.less +2 -2
- package/lib/style/themes/compact.less +1 -1
- package/lib/style/themes/dark.less +9 -9
- package/lib/style/themes/default.less +7 -7
- package/lib/style/themes/index.less +1 -1
- package/lib/style/themes/variable.less +5 -5
- package/lib/tile-layer/TileLayer.js +20 -22
- package/lib/tile-layer/TileLayer.js.map +1 -1
- package/lib/tile-layer/index.js +4 -4
- package/lib/tile-layer/index.js.map +1 -1
- package/lib/tile-layer/style/css.js.map +1 -1
- package/lib/tile-layer/style/index.js.map +1 -1
- package/lib/tools/Layer/LayerService.js +8 -9
- package/lib/tools/Layer/LayerService.js.map +1 -1
- package/lib/tools/Layer/LayersCheckService.js +21 -28
- package/lib/tools/Layer/LayersCheckService.js.map +1 -1
- package/lib/tools/Layer/index.js +15 -15
- package/lib/tools/Layer/index.js.map +1 -1
- package/lib/tools/Layer/index.less +43 -43
- package/lib/tools/Search/index.js +19 -21
- package/lib/tools/Search/index.js.map +1 -1
- package/lib/tools/Toolbox/BoxSelect/index.js +5 -6
- package/lib/tools/Toolbox/BoxSelect/index.js.map +1 -1
- package/lib/tools/Toolbox/CircleSelect/index.js +5 -6
- package/lib/tools/Toolbox/CircleSelect/index.js.map +1 -1
- package/lib/tools/Toolbox/EagleEye/index.js +10 -11
- package/lib/tools/Toolbox/EagleEye/index.js.map +1 -1
- package/lib/tools/Toolbox/MapBookmark/Bookmark.js +31 -34
- package/lib/tools/Toolbox/MapBookmark/Bookmark.js.map +1 -1
- package/lib/tools/Toolbox/MapBookmark/index.js +23 -24
- package/lib/tools/Toolbox/MapBookmark/index.js.map +1 -1
- package/lib/tools/Toolbox/MapBookmark/index.less +20 -20
- package/lib/tools/Toolbox/MapDownload/index.js +2 -2
- package/lib/tools/Toolbox/MapDownload/index.js.map +1 -1
- package/lib/tools/Toolbox/MapPrint/index.js +17 -18
- package/lib/tools/Toolbox/MapPrint/index.js.map +1 -1
- package/lib/tools/Toolbox/MapPrint/index.less +4 -4
- package/lib/tools/Toolbox/Measure/Area/index.js +3 -4
- package/lib/tools/Toolbox/Measure/Area/index.js.map +1 -1
- package/lib/tools/Toolbox/Measure/Distance/index.js +3 -4
- package/lib/tools/Toolbox/Measure/Distance/index.js.map +1 -1
- package/lib/tools/Toolbox/Measure/Measure.js +8 -10
- package/lib/tools/Toolbox/Measure/Measure.js.map +1 -1
- package/lib/tools/Toolbox/Measure/index.js +13 -14
- package/lib/tools/Toolbox/Measure/index.js.map +1 -1
- package/lib/tools/Toolbox/PolygonSelect/index.js +5 -6
- package/lib/tools/Toolbox/PolygonSelect/index.js.map +1 -1
- package/lib/tools/Toolbox/ScaleLine/index.js +10 -11
- package/lib/tools/Toolbox/ScaleLine/index.js.map +1 -1
- package/lib/tools/Toolbox/SelectTools/index.js +29 -30
- package/lib/tools/Toolbox/SelectTools/index.js.map +1 -1
- package/lib/tools/Toolbox/SpaceQuery/index.js +13 -13
- package/lib/tools/Toolbox/SpaceQuery/index.js.map +1 -1
- package/lib/tools/Toolbox/SpaceQuery/index.less +16 -16
- package/lib/tools/Toolbox/ZoomInput/index.js +10 -11
- package/lib/tools/Toolbox/ZoomInput/index.js.map +1 -1
- package/lib/tools/Toolbox/ZoomInput/index.less +5 -5
- package/lib/tools/Toolbox/index.js +8 -10
- package/lib/tools/Toolbox/index.js.map +1 -1
- package/lib/tools/Toolbox/index.less +2 -2
- package/lib/tools/Utils/CreateOverlay.js +10 -11
- package/lib/tools/Utils/CreateOverlay.js.map +1 -1
- package/lib/tools/Utils/Draw.js +16 -19
- package/lib/tools/Utils/Draw.js.map +1 -1
- package/lib/tools/Utils/HighLayer.js +14 -16
- package/lib/tools/Utils/HighLayer.js.map +1 -1
- package/lib/tools/Utils/measure.js +6 -7
- package/lib/tools/Utils/measure.js.map +1 -1
- package/lib/tools/Utils/utils.js +36 -45
- package/lib/tools/Utils/utils.js.map +1 -1
- package/lib/tools/View/index.js +15 -16
- package/lib/tools/View/index.js.map +1 -1
- package/lib/tools/View/index.less +28 -28
- package/lib/tools/analysis-tool/index.js +17 -18
- package/lib/tools/analysis-tool/index.js.map +1 -1
- package/lib/tools/base-map-switch/index.js +15 -16
- package/lib/tools/base-map-switch/index.js.map +1 -1
- package/lib/tools/components/Icon/index.js +2 -3
- package/lib/tools/components/Icon/index.js.map +1 -1
- package/lib/tools/components/ItemWrap/index.js +10 -11
- package/lib/tools/components/ItemWrap/index.js.map +1 -1
- package/lib/tools/components/ItemWrap/index.less +41 -41
- package/lib/tools/components/Modal/index.js +10 -11
- package/lib/tools/components/Modal/index.js.map +1 -1
- package/lib/tools/components/Modal/index.less +33 -33
- package/lib/tools/components/MyTabs/index.js +1 -1
- package/lib/tools/components/MyTabs/index.js.map +1 -1
- package/lib/tools/components/RequiredLabel/index.js +7 -7
- package/lib/tools/components/RequiredLabel/index.js.map +1 -1
- package/lib/tools/components/RequiredLabel/index.less +5 -5
- package/lib/tools/components/Select/index.js +2 -3
- package/lib/tools/components/Select/index.js.map +1 -1
- package/lib/tools/components/Table/index.js +13 -14
- package/lib/tools/components/Table/index.js.map +1 -1
- package/lib/tools/components/Table/index.less +13 -13
- package/lib/tools/components/ToolItem/index.js +2 -3
- package/lib/tools/components/ToolItem/index.js.map +1 -1
- package/lib/tools/components/ToolItem/index.less +27 -27
- package/lib/tools/components/ToolsSelect/index.js +2 -3
- package/lib/tools/components/ToolsSelect/index.js.map +1 -1
- package/lib/tools/components/ToolsSelect/index.less +10 -10
- package/lib/tools/full-screen/index.js +11 -12
- package/lib/tools/full-screen/index.js.map +1 -1
- package/lib/tools/index.js +10 -10
- package/lib/tools/index.js.map +1 -1
- package/lib/tools/layer-control/index.js +20 -23
- package/lib/tools/layer-control/index.js.map +1 -1
- package/lib/tools/refresh/index.js +11 -12
- package/lib/tools/refresh/index.js.map +1 -1
- package/lib/tools/style/css.js.map +1 -1
- package/lib/tools/style/index.js.map +1 -1
- package/lib/tools/style/index.less +154 -154
- package/lib/tools-item/index.js +10 -11
- package/lib/tools-item/index.js.map +1 -1
- package/lib/use-props/index.js +1 -2
- package/lib/use-props/index.js.map +1 -1
- package/lib/use-props/style/css.js.map +1 -1
- package/lib/use-props/style/index.js.map +1 -1
- package/package.json +1 -1
- package/CHANGELOG.md +0 -217
- package/lib/assets/warn_R.png +0 -0
- package/lib/assets/warn_Y.png +0 -0
|
@@ -13,69 +13,75 @@ var _isFunction = _interopRequireDefault(require("../_util/isFunction"));
|
|
|
13
13
|
var _createFeatureCollection = require("./createFeatureCollection");
|
|
14
14
|
var _isObject = _interopRequireDefault(require("../_util/isObject"));
|
|
15
15
|
var _encryptParams = _interopRequireDefault(require("../_util/encryptParams"));
|
|
16
|
+
var _stringToFun = _interopRequireDefault(require("../_util/stringToFun"));
|
|
17
|
+
var _convertCamelToCSS = _interopRequireDefault(require("../convertCamelToCSS"));
|
|
16
18
|
var _MyCluster = _interopRequireDefault(require("./MyCluster"));
|
|
17
19
|
var _excluded = ["url", "params", "data", "dataField", "features", "sourceOptions", "key", "name", "label", "labelField", "point", "cluster", "template", "autoRefresh", "method", "layerControl", "show", "style", "group", "iconOptions", "afterGetData", "legend", "viewOnly", "encrypt", "valueField", "map", "tipTemplate", "alarmBg"],
|
|
18
20
|
_excluded2 = ["color", "background", "backgroundStroke", "backgroundStrokeWidth"],
|
|
19
21
|
_excluded3 = ["numberStyle", "iconOptions"];
|
|
20
|
-
function _interopRequireDefault(
|
|
21
|
-
function _toConsumableArray(
|
|
22
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
23
|
+
function _toConsumableArray(r) { return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread(); }
|
|
22
24
|
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."); }
|
|
23
|
-
function
|
|
24
|
-
function
|
|
25
|
-
function
|
|
26
|
-
function
|
|
27
|
-
function
|
|
28
|
-
function
|
|
29
|
-
function
|
|
30
|
-
function
|
|
31
|
-
function
|
|
32
|
-
function
|
|
33
|
-
function
|
|
34
|
-
function
|
|
35
|
-
function
|
|
36
|
-
function
|
|
37
|
-
function
|
|
38
|
-
function
|
|
39
|
-
function _get() {
|
|
40
|
-
function _inherits(
|
|
41
|
-
function _setPrototypeOf(
|
|
42
|
-
function
|
|
43
|
-
function
|
|
44
|
-
function
|
|
45
|
-
function
|
|
46
|
-
function
|
|
47
|
-
function
|
|
48
|
-
function
|
|
49
|
-
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
50
|
-
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; }
|
|
51
|
-
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
52
|
-
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); }
|
|
25
|
+
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; } }
|
|
26
|
+
function _iterableToArray(r) { if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r); }
|
|
27
|
+
function _arrayWithoutHoles(r) { if (Array.isArray(r)) return _arrayLikeToArray(r); }
|
|
28
|
+
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; }
|
|
29
|
+
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); }
|
|
30
|
+
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; }
|
|
31
|
+
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; }
|
|
32
|
+
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], t.indexOf(o) >= 0 || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
|
|
33
|
+
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.indexOf(n) >= 0) continue; t[n] = r[n]; } return t; }
|
|
34
|
+
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
35
|
+
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); } }
|
|
36
|
+
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
37
|
+
function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
38
|
+
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); }
|
|
39
|
+
function _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return e; }
|
|
40
|
+
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
41
|
+
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); }
|
|
42
|
+
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); }
|
|
43
|
+
function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }
|
|
44
|
+
function set(e, r, t, o) { return set = "undefined" != typeof Reflect && Reflect.set ? Reflect.set : function (e, r, t, o) { var f, i = _superPropBase(e, r); if (i) { if ((f = Object.getOwnPropertyDescriptor(i, r)).set) return f.set.call(o, t), !0; if (!f.writable) return !1; } if (f = Object.getOwnPropertyDescriptor(o, r)) { if (!f.writable) return !1; f.value = t, Object.defineProperty(o, r, f); } else _defineProperty(o, r, t); return !0; }, set(e, r, t, o); }
|
|
45
|
+
function _set(e, r, t, o, f) { if (!set(e, r, t, o || e) && f) throw new TypeError("failed to set property"); return t; }
|
|
46
|
+
function _superPropBase(t, o) { for (; !{}.hasOwnProperty.call(t, o) && null !== (t = _getPrototypeOf(t));); return t; }
|
|
47
|
+
function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); }
|
|
48
|
+
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; }
|
|
49
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
50
|
+
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); }
|
|
53
51
|
var addOverlay = function addOverlay(feature, map, alarmBg) {
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
52
|
+
if (alarmBg) {
|
|
53
|
+
var itemVal = alarmBg.find(function (v) {
|
|
54
|
+
return v.filter(feature.values_);
|
|
55
|
+
});
|
|
56
|
+
if (itemVal) {
|
|
57
|
+
var image = itemVal.image,
|
|
58
|
+
style = itemVal.style;
|
|
59
|
+
var dom;
|
|
60
|
+
if (image) {
|
|
61
|
+
dom = document.createElement('img');
|
|
62
|
+
dom.src = image;
|
|
63
|
+
} else {
|
|
64
|
+
dom = document.createElement('div');
|
|
65
|
+
dom.className = "ol-map-icon-alarm";
|
|
66
|
+
}
|
|
67
|
+
if (style) {
|
|
68
|
+
dom.style.cssText = style;
|
|
69
|
+
}
|
|
70
|
+
var overlay = new _ol.Overlay({
|
|
71
|
+
element: dom,
|
|
72
|
+
positioning: 'bottom-center',
|
|
73
|
+
stopEvent: true,
|
|
74
|
+
className: 'ol-overlay_container-stop_event'
|
|
75
|
+
});
|
|
76
|
+
map.addOverlay(overlay);
|
|
77
|
+
overlay.setPosition(feature.getGeometry().getCoordinates());
|
|
78
|
+
return overlay;
|
|
79
|
+
}
|
|
61
80
|
}
|
|
62
|
-
var dom = document.createElement('div');
|
|
63
|
-
dom.className = "ol-map-icon-alarm-".concat(status);
|
|
64
|
-
var overlay = new _ol.Overlay({
|
|
65
|
-
element: dom,
|
|
66
|
-
positioning: 'bottom-center',
|
|
67
|
-
stopEvent: true,
|
|
68
|
-
className: 'ol-overlay_container-stop_event'
|
|
69
|
-
});
|
|
70
|
-
map.addOverlay(overlay);
|
|
71
|
-
overlay.setPosition(feature.getGeometry().getCoordinates());
|
|
72
|
-
return overlay;
|
|
73
81
|
};
|
|
74
82
|
var FeatureLayer = /*#__PURE__*/function (_Vector) {
|
|
75
|
-
_inherits(FeatureLayer, _Vector);
|
|
76
|
-
var _super = _createSuper(FeatureLayer);
|
|
77
83
|
function FeatureLayer(_options) {
|
|
78
|
-
var
|
|
84
|
+
var _this2;
|
|
79
85
|
_classCallCheck(this, FeatureLayer);
|
|
80
86
|
var url = _options.url,
|
|
81
87
|
params = _options.params,
|
|
@@ -120,19 +126,12 @@ var FeatureLayer = /*#__PURE__*/function (_Vector) {
|
|
|
120
126
|
}
|
|
121
127
|
|
|
122
128
|
// 将字符函数转化为可执行的函数
|
|
123
|
-
|
|
124
|
-
f.filter = f.filter.replaceAll(' ', '');
|
|
125
|
-
var _f$filter$split = f.filter.split('=>'),
|
|
126
|
-
_f$filter$split2 = _slicedToArray(_f$filter$split, 2),
|
|
127
|
-
a = _f$filter$split2[0],
|
|
128
|
-
c = _f$filter$split2[1];
|
|
129
|
-
f.filter = new Function(a, "return ".concat(c));
|
|
130
|
-
}
|
|
129
|
+
f.filter = (0, _stringToFun["default"])(f.filter);
|
|
131
130
|
});
|
|
132
131
|
}
|
|
133
132
|
}
|
|
134
|
-
_this2 =
|
|
135
|
-
_defineProperty(
|
|
133
|
+
_this2 = _callSuper(this, FeatureLayer, [props]);
|
|
134
|
+
_defineProperty(_this2, "getClusterTextStyle", function (size, options) {
|
|
136
135
|
var _ref = options && _typeof(options) === 'object' ? options : {},
|
|
137
136
|
color = _ref.color,
|
|
138
137
|
background = _ref.background,
|
|
@@ -165,7 +164,7 @@ var FeatureLayer = /*#__PURE__*/function (_Vector) {
|
|
|
165
164
|
}
|
|
166
165
|
return new _style5.Text(style);
|
|
167
166
|
});
|
|
168
|
-
_defineProperty(
|
|
167
|
+
_defineProperty(_this2, "getLabelStyle", function (feature, color) {
|
|
169
168
|
var labelField = _this2._options.labelField;
|
|
170
169
|
|
|
171
170
|
// 判断是否是聚合点位
|
|
@@ -197,7 +196,7 @@ var FeatureLayer = /*#__PURE__*/function (_Vector) {
|
|
|
197
196
|
});
|
|
198
197
|
}
|
|
199
198
|
});
|
|
200
|
-
_set((
|
|
199
|
+
_set((_this2, _getPrototypeOf(FeatureLayer.prototype)), "show", show, _this2, true);
|
|
201
200
|
// 参数
|
|
202
201
|
_this2._options = _options;
|
|
203
202
|
|
|
@@ -277,7 +276,23 @@ var FeatureLayer = /*#__PURE__*/function (_Vector) {
|
|
|
277
276
|
_this2.tipTemplate = tipTemplate;
|
|
278
277
|
|
|
279
278
|
// 报警背景
|
|
280
|
-
|
|
279
|
+
if (alarmBg) {
|
|
280
|
+
_this2.alarmBg = (Array.isArray(alarmBg) ? alarmBg : [alarmBg]).map(function (item) {
|
|
281
|
+
var filter = item.filter,
|
|
282
|
+
style = item.style;
|
|
283
|
+
filter = (0, _stringToFun["default"])(filter);
|
|
284
|
+
if (style) {
|
|
285
|
+
style = item.style && _typeof(item.style) === 'object' ? style : {
|
|
286
|
+
color: style
|
|
287
|
+
};
|
|
288
|
+
style = (0, _convertCamelToCSS["default"])(style);
|
|
289
|
+
}
|
|
290
|
+
return _objectSpread(_objectSpread({}, item), {}, {
|
|
291
|
+
filter: filter,
|
|
292
|
+
style: style
|
|
293
|
+
});
|
|
294
|
+
});
|
|
295
|
+
}
|
|
281
296
|
|
|
282
297
|
// 临时数据
|
|
283
298
|
_this2._features = [];
|
|
@@ -290,7 +305,8 @@ var FeatureLayer = /*#__PURE__*/function (_Vector) {
|
|
|
290
305
|
}
|
|
291
306
|
|
|
292
307
|
// 初始化数据
|
|
293
|
-
|
|
308
|
+
_inherits(FeatureLayer, _Vector);
|
|
309
|
+
return _createClass(FeatureLayer, [{
|
|
294
310
|
key: "init",
|
|
295
311
|
value: function init() {
|
|
296
312
|
// 是否存在地址
|
|
@@ -343,16 +359,18 @@ var FeatureLayer = /*#__PURE__*/function (_Vector) {
|
|
|
343
359
|
key: "setClusterMode",
|
|
344
360
|
value: function setClusterMode(val) {
|
|
345
361
|
var _this3 = this;
|
|
346
|
-
this._options.cluster = val
|
|
362
|
+
this._options.cluster = (0, _isObject["default"])(val) ? val : {
|
|
363
|
+
show: val
|
|
364
|
+
};
|
|
347
365
|
this.setClusterSource(val);
|
|
348
366
|
this.setStyle(this.getStyleByMode());
|
|
349
|
-
if (this.map) {
|
|
367
|
+
if (this.map && this._options.cluster.show) {
|
|
350
368
|
var map = this.map;
|
|
351
369
|
this.destroy();
|
|
352
370
|
|
|
353
371
|
// 监听地图缩放大于阈值时取消聚合
|
|
354
372
|
var oldZoom = map.getView().getZoom();
|
|
355
|
-
this.moveEnd = map.on(
|
|
373
|
+
this.moveEnd = map.on('moveend', function () {
|
|
356
374
|
var zoom = map.getView().getZoom(); //获取当前地图的缩放级别
|
|
357
375
|
if (oldZoom !== zoom) {
|
|
358
376
|
var _this3$_options$clust;
|
|
@@ -377,7 +395,7 @@ var FeatureLayer = /*#__PURE__*/function (_Vector) {
|
|
|
377
395
|
cluster = _this4$_options.cluster,
|
|
378
396
|
otherStyle = _this4$_options.otherStyle;
|
|
379
397
|
var show = true;
|
|
380
|
-
(_this4$group = _this4.group) === null || _this4$group === void 0
|
|
398
|
+
(_this4$group = _this4.group) === null || _this4$group === void 0 || _this4$group.map(function (v) {
|
|
381
399
|
var _v$filter;
|
|
382
400
|
if (v !== null && v !== void 0 && (_v$filter = v.filter) !== null && _v$filter !== void 0 && _v$filter.call(v, feature.values_)) {
|
|
383
401
|
style = v.style || style;
|
|
@@ -520,17 +538,18 @@ var FeatureLayer = /*#__PURE__*/function (_Vector) {
|
|
|
520
538
|
var isFun = (0, _isFunction["default"])(style);
|
|
521
539
|
var data = {};
|
|
522
540
|
if (isFun) {
|
|
523
|
-
var _data,
|
|
541
|
+
var _data, _data2, _data3, _data4, _data5, _data6;
|
|
524
542
|
data = style(feature) || {};
|
|
525
|
-
icon = ((_data = data) === null || _data === void 0
|
|
526
|
-
color = ((_data3 = data) === null || _data3 === void 0
|
|
527
|
-
image = ((_data5 = data) === null || _data5 === void 0
|
|
543
|
+
icon = ((_data = data) === null || _data === void 0 || (_data = _data.style) === null || _data === void 0 ? void 0 : _data.icon) || ((_data2 = data) === null || _data2 === void 0 ? void 0 : _data2.icon) || icon;
|
|
544
|
+
color = ((_data3 = data) === null || _data3 === void 0 || (_data3 = _data3.style) === null || _data3 === void 0 ? void 0 : _data3.color) || ((_data4 = data) === null || _data4 === void 0 ? void 0 : _data4.color) || color;
|
|
545
|
+
image = ((_data5 = data) === null || _data5 === void 0 || (_data5 = _data5.style) === null || _data5 === void 0 ? void 0 : _data5.image) || ((_data6 = data) === null || _data6 === void 0 ? void 0 : _data6.image) || image;
|
|
528
546
|
}
|
|
529
547
|
var size = ((_feature$get4 = feature.get('features')) === null || _feature$get4 === void 0 ? void 0 : _feature$get4.length) || 0;
|
|
530
548
|
var P = {
|
|
531
549
|
marker: {
|
|
532
550
|
// 图标
|
|
533
|
-
icon: icon
|
|
551
|
+
icon: icon,
|
|
552
|
+
image: image
|
|
534
553
|
},
|
|
535
554
|
point: {
|
|
536
555
|
// 点位
|
|
@@ -595,13 +614,14 @@ var FeatureLayer = /*#__PURE__*/function (_Vector) {
|
|
|
595
614
|
var _this$_features,
|
|
596
615
|
_this6 = this;
|
|
597
616
|
var _this = this;
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
617
|
+
cluster = (0, _isObject["default"])(cluster) ? cluster : {
|
|
618
|
+
show: cluster
|
|
619
|
+
};
|
|
620
|
+
var _cluster = cluster,
|
|
621
|
+
show = _cluster.show,
|
|
622
|
+
minDistance = _cluster.minDistance,
|
|
623
|
+
distance = _cluster.distance,
|
|
624
|
+
group = _cluster.group;
|
|
605
625
|
var source = new _source.Vector({
|
|
606
626
|
features: (_this$_features = this._features) === null || _this$_features === void 0 ? void 0 : _this$_features.filter(function (v) {
|
|
607
627
|
return !v.hasOwnProperty('show') || v.show;
|
|
@@ -631,7 +651,7 @@ var FeatureLayer = /*#__PURE__*/function (_Vector) {
|
|
|
631
651
|
var style;
|
|
632
652
|
var f = features[0];
|
|
633
653
|
var size = features.length;
|
|
634
|
-
(_group2 = group) === null || _group2 === void 0
|
|
654
|
+
(_group2 = group) === null || _group2 === void 0 || _group2.map(function (v) {
|
|
635
655
|
var _v$filter2;
|
|
636
656
|
if (v !== null && v !== void 0 && (_v$filter2 = v.filter) !== null && _v$filter2 !== void 0 && _v$filter2.call(v, f.values_)) {
|
|
637
657
|
style = v.style || style;
|
|
@@ -639,7 +659,7 @@ var FeatureLayer = /*#__PURE__*/function (_Vector) {
|
|
|
639
659
|
});
|
|
640
660
|
var markerStyle = _objectSpread({}, style.style);
|
|
641
661
|
if (size > 1) {
|
|
642
|
-
var _style4, _markerStyle2;
|
|
662
|
+
var _style4, _markerStyle2, _cluster2;
|
|
643
663
|
if ((_style4 = style) !== null && _style4 !== void 0 && _style4.clusterStyle) {
|
|
644
664
|
markerStyle = _objectSpread({}, style.clusterStyle);
|
|
645
665
|
}
|
|
@@ -655,7 +675,7 @@ var FeatureLayer = /*#__PURE__*/function (_Vector) {
|
|
|
655
675
|
text: size,
|
|
656
676
|
fontSize: 18
|
|
657
677
|
}
|
|
658
|
-
}, iconOptions || (cluster === null ||
|
|
678
|
+
}, iconOptions || ((_cluster2 = cluster) === null || _cluster2 === void 0 ? void 0 : _cluster2.iconOptions) || {})
|
|
659
679
|
});
|
|
660
680
|
}
|
|
661
681
|
var _style = new _renderer["default"].Marker(markerStyle);
|
|
@@ -811,14 +831,14 @@ var FeatureLayer = /*#__PURE__*/function (_Vector) {
|
|
|
811
831
|
}
|
|
812
832
|
}, {
|
|
813
833
|
key: "getFeaturesByFieldValueOpera",
|
|
814
|
-
value: function getFeaturesByFieldValueOpera(
|
|
834
|
+
value: function getFeaturesByFieldValueOpera(_ref2) {
|
|
815
835
|
var _this11 = this;
|
|
816
|
-
var field =
|
|
817
|
-
value =
|
|
818
|
-
|
|
819
|
-
operation =
|
|
820
|
-
features =
|
|
821
|
-
filter =
|
|
836
|
+
var field = _ref2.field,
|
|
837
|
+
value = _ref2.value,
|
|
838
|
+
_ref2$operation = _ref2.operation,
|
|
839
|
+
operation = _ref2$operation === void 0 ? '===' : _ref2$operation,
|
|
840
|
+
features = _ref2.features,
|
|
841
|
+
filter = _ref2.filter;
|
|
822
842
|
return new Promise(function (resolve, reject) {
|
|
823
843
|
var _features = features || _this11.getFeatures();
|
|
824
844
|
if (filter) {
|
|
@@ -877,6 +897,7 @@ var FeatureLayer = /*#__PURE__*/function (_Vector) {
|
|
|
877
897
|
var show = true;
|
|
878
898
|
group.map(function (v) {
|
|
879
899
|
var _v$filter3;
|
|
900
|
+
v.filter = (0, _stringToFun["default"])(v.filter);
|
|
880
901
|
if (v !== null && v !== void 0 && (_v$filter3 = v.filter) !== null && _v$filter3 !== void 0 && _v$filter3.call(v, feature.values_)) {
|
|
881
902
|
if (v.hasOwnProperty('show') && !v.show) {
|
|
882
903
|
show = false;
|
|
@@ -935,18 +956,21 @@ var FeatureLayer = /*#__PURE__*/function (_Vector) {
|
|
|
935
956
|
}
|
|
936
957
|
}
|
|
937
958
|
}, {
|
|
938
|
-
key: "
|
|
939
|
-
value: function
|
|
959
|
+
key: "clearMoveEnd",
|
|
960
|
+
value: function clearMoveEnd() {
|
|
940
961
|
var map = this.map;
|
|
941
962
|
if (map && this.moveEnd) {
|
|
942
|
-
map.un(
|
|
963
|
+
map.un('moveend', this.moveEnd);
|
|
943
964
|
this.moveEnd = null;
|
|
944
965
|
}
|
|
966
|
+
}
|
|
967
|
+
}, {
|
|
968
|
+
key: "destroy",
|
|
969
|
+
value: function destroy() {
|
|
970
|
+
this.clearMoveEnd();
|
|
945
971
|
this.clearAlarmBg();
|
|
946
972
|
}
|
|
947
973
|
}]);
|
|
948
|
-
return FeatureLayer;
|
|
949
974
|
}(_layer.Vector);
|
|
950
|
-
var _default = FeatureLayer;
|
|
951
|
-
exports["default"] = _default;
|
|
975
|
+
var _default = exports["default"] = FeatureLayer;
|
|
952
976
|
//# sourceMappingURL=FeatureLayer.js.map
|