@vtx/ol-map 1.0.133 → 1.0.135
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +205 -205
- package/lib/_util/EventEmitter.js +11 -13
- package/lib/_util/EventEmitter.js.map +1 -1
- package/lib/_util/StyleCache.js +8 -10
- package/lib/_util/StyleCache.js.map +1 -1
- package/lib/_util/encryptParams.js +17 -22
- package/lib/_util/encryptParams.js.map +1 -1
- package/lib/_util/filterSpecialCharacters.js +12 -12
- package/lib/_util/filterSpecialCharacters.js.map +1 -1
- package/lib/_util/getComponentProps.js +1 -1
- package/lib/_util/getComponentProps.js.map +1 -1
- package/lib/_util/getCookie.js +5 -6
- package/lib/_util/getCookie.js.map +1 -1
- package/lib/_util/getDefaultMapInfo.js +7 -8
- package/lib/_util/getDefaultMapInfo.js.map +1 -1
- package/lib/_util/getSystemInfo.js +7 -8
- package/lib/_util/getSystemInfo.js.map +1 -1
- package/lib/_util/getToken.js +2 -4
- package/lib/_util/getToken.js.map +1 -1
- package/lib/_util/getUrlParam.js +2 -3
- package/lib/_util/getUrlParam.js.map +1 -1
- package/lib/_util/http.js +30 -32
- package/lib/_util/http.js.map +1 -1
- package/lib/_util/isFunction.js.map +1 -1
- package/lib/_util/isObject.js.map +1 -1
- package/lib/_util/layer.js +33 -37
- package/lib/_util/layer.js.map +1 -1
- package/lib/_util/mapTool.js +36 -37
- package/lib/_util/mapTool.js.map +1 -1
- package/lib/_util/projzh/datum/bd-09.js +2 -3
- package/lib/_util/projzh/datum/bd-09.js.map +1 -1
- package/lib/_util/projzh/datum/gcj-02.js +1 -2
- package/lib/_util/projzh/datum/gcj-02.js.map +1 -1
- package/lib/_util/projzh/datum/index.js +2 -3
- package/lib/_util/projzh/datum/index.js.map +1 -1
- package/lib/_util/projzh/index.js +2 -3
- package/lib/_util/projzh/index.js.map +1 -1
- package/lib/_util/projzh/projection/baidu-mercator.js +1 -2
- package/lib/_util/projzh/projection/baidu-mercator.js.map +1 -1
- package/lib/_util/projzh/projection/index.js +2 -3
- package/lib/_util/projzh/projection/index.js.map +1 -1
- package/lib/_util/projzh/projection/spherical-mercator.js +1 -2
- package/lib/_util/projzh/projection/spherical-mercator.js.map +1 -1
- package/lib/_util/projzh/util.js +1 -2
- package/lib/_util/projzh/util.js.map +1 -1
- package/lib/_util/search.js +13 -16
- package/lib/_util/search.js.map +1 -1
- package/lib/_util/setCookie.js +5 -6
- package/lib/_util/setCookie.js.map +1 -1
- package/lib/_util/stringToFun.js +5 -5
- package/lib/_util/stringToFun.js.map +1 -1
- package/lib/_util/transform.js +9 -10
- package/lib/_util/transform.js.map +1 -1
- package/lib/_util/useColSize.js +2 -3
- package/lib/_util/useColSize.js.map +1 -1
- package/lib/_util/useInterval.js.map +1 -1
- package/lib/_util/useSet.js +12 -13
- package/lib/_util/useSet.js.map +1 -1
- package/lib/analysis-layer/index.js +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 +10 -10
- package/lib/buffer-draw/index.js.map +1 -1
- package/lib/buffer-draw/style/css.js.map +1 -1
- package/lib/buffer-draw/style/index.js.map +1 -1
- package/lib/circle/Circle.js +22 -24
- package/lib/circle/Circle.js.map +1 -1
- package/lib/circle/index.js +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 +1 -2
- package/lib/convertCamelToCSS.js.map +1 -1
- package/lib/dom/Dom.js +19 -21
- package/lib/dom/Dom.js.map +1 -1
- package/lib/dom/index.js +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 +40 -46
- package/lib/feature-draw/FeatureDraw.js.map +1 -1
- package/lib/feature-draw/index.js +11 -11
- package/lib/feature-draw/index.js.map +1 -1
- package/lib/feature-draw/style/css.js.map +1 -1
- package/lib/feature-draw/style/index.js.map +1 -1
- package/lib/feature-layer/FeatureLayer.js +111 -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 +18 -17
- 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 +12 -14
- 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 +29 -30
- 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 +31 -33
- package/lib/image-layer/ImageLayer.js.map +1 -1
- package/lib/image-layer/ImageTileLayer.js +31 -33
- package/lib/image-layer/ImageTileLayer.js.map +1 -1
- package/lib/image-layer/index.js +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 +21 -23
- package/lib/legend/index.js.map +1 -1
- package/lib/legend/style/css.js.map +1 -1
- package/lib/legend/style/index.js.map +1 -1
- package/lib/legend/style/index.less +73 -73
- package/lib/map/Analysis.js +24 -27
- package/lib/map/Analysis.js.map +1 -1
- package/lib/map/Layers.js +24 -28
- package/lib/map/Layers.js.map +1 -1
- package/lib/map/Popup.js +23 -24
- 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 +38 -39
- package/lib/map/index.js.map +1 -1
- package/lib/map/style/css.js.map +1 -1
- package/lib/map/style/index.js.map +1 -1
- package/lib/map/style/index.less +152 -152
- package/lib/map-icon/svg/index.js +2 -3
- package/lib/map-icon/svg/index.js.map +1 -1
- package/lib/map-icon/svg/tuceng.svg.js.map +1 -1
- package/lib/marker/Marker.js +24 -27
- 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 +10 -10
- package/lib/poi-search/PoiList.js.map +1 -1
- package/lib/poi-search/Search.js +21 -21
- 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 +129 -129
- package/lib/provider/index.js +3 -5
- package/lib/provider/index.js.map +1 -1
- package/lib/provider/style/css.js.map +1 -1
- package/lib/provider/style/index.js.map +1 -1
- package/lib/renderer/Fill.js +17 -19
- package/lib/renderer/Fill.js.map +1 -1
- package/lib/renderer/Stroke.js +17 -19
- package/lib/renderer/Stroke.js.map +1 -1
- package/lib/renderer/index.js +15 -16
- 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 +82 -82
- package/lib/search-map/style/modal.less +58 -58
- package/lib/style/index.less +2 -2
- package/lib/style/themes/compact.less +1 -1
- package/lib/style/themes/dark.less +9 -9
- package/lib/style/themes/default.less +7 -7
- package/lib/style/themes/index.less +1 -1
- package/lib/style/themes/variable.less +5 -5
- package/lib/tile-layer/TileLayer.js +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 +32 -39
- 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 +33 -36
- 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 +19 -20
- 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 +41 -43
- package/lib/tools/Toolbox/SelectTools/index.js.map +1 -1
- package/lib/tools/Toolbox/SelectTools/index.less +87 -87
- package/lib/tools/Toolbox/SpaceQuery/index.js +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 +19 -20
- 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/Chart/index.js +120 -130
- package/lib/tools/components/Chart/index.js.map +1 -1
- package/lib/tools/components/Icon/index.js +2 -3
- package/lib/tools/components/Icon/index.js.map +1 -1
- package/lib/tools/components/Info/index.js +2 -3
- package/lib/tools/components/Info/index.js.map +1 -1
- package/lib/tools/components/Info/index.less +26 -26
- package/lib/tools/components/ItemWrap/index.js +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 +16 -17
- 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 +11 -11
- package/lib/tools/index.js.map +1 -1
- package/lib/tools/layer-control/index.js +23 -26
- 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/lib/wms-layer/WmsLayer.js +31 -33
- package/lib/wms-layer/WmsLayer.js.map +1 -1
- package/lib/wms-layer/index.js +11 -11
- package/lib/wms-layer/index.js.map +1 -1
- package/lib/wms-layer/style/css.js.map +1 -1
- package/lib/wms-layer/style/index.js.map +1 -1
- package/package.json +1 -1
- package/CHANGELOG.md +0 -217
|
@@ -8,7 +8,7 @@ var _layer = require("ol/layer");
|
|
|
8
8
|
var _ol = require("ol");
|
|
9
9
|
var _source = require("ol/source");
|
|
10
10
|
var _renderer = _interopRequireDefault(require("../renderer"));
|
|
11
|
-
var
|
|
11
|
+
var _style6 = require("ol/style");
|
|
12
12
|
var _isFunction = _interopRequireDefault(require("../_util/isFunction"));
|
|
13
13
|
var _createFeatureCollection = require("./createFeatureCollection");
|
|
14
14
|
var _isObject = _interopRequireDefault(require("../_util/isObject"));
|
|
@@ -21,35 +21,37 @@ var _excluded = ["url", "params", "data", "dataField", "features", "sourceOption
|
|
|
21
21
|
_excluded2 = ["color", "background", "backgroundStroke", "backgroundStrokeWidth"],
|
|
22
22
|
_excluded3 = ["type", "iconSrc", "color", "scale"],
|
|
23
23
|
_excluded4 = ["numberStyle", "iconOptions"];
|
|
24
|
-
function _interopRequireDefault(
|
|
25
|
-
function _toConsumableArray(
|
|
24
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
25
|
+
function _toConsumableArray(r) { return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread(); }
|
|
26
26
|
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."); }
|
|
27
|
-
function _unsupportedIterableToArray(
|
|
28
|
-
function _iterableToArray(
|
|
29
|
-
function _arrayWithoutHoles(
|
|
30
|
-
function _arrayLikeToArray(
|
|
31
|
-
function _typeof(
|
|
32
|
-
function ownKeys(
|
|
33
|
-
function _objectSpread(
|
|
34
|
-
function _objectWithoutProperties(
|
|
35
|
-
function _objectWithoutPropertiesLoose(
|
|
36
|
-
function _classCallCheck(
|
|
37
|
-
function _defineProperties(
|
|
38
|
-
function _createClass(
|
|
39
|
-
function
|
|
40
|
-
function
|
|
41
|
-
function
|
|
42
|
-
function
|
|
43
|
-
function
|
|
44
|
-
function
|
|
45
|
-
function
|
|
46
|
-
function
|
|
47
|
-
function
|
|
48
|
-
function _superPropBase(
|
|
49
|
-
function
|
|
50
|
-
function
|
|
51
|
-
function
|
|
52
|
-
function
|
|
27
|
+
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; } }
|
|
28
|
+
function _iterableToArray(r) { if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r); }
|
|
29
|
+
function _arrayWithoutHoles(r) { if (Array.isArray(r)) return _arrayLikeToArray(r); }
|
|
30
|
+
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; }
|
|
31
|
+
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); }
|
|
32
|
+
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; }
|
|
33
|
+
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; }
|
|
34
|
+
function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var s = Object.getOwnPropertySymbols(e); for (r = 0; r < s.length; r++) o = s[r], t.includes(o) || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
|
|
35
|
+
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.includes(n)) continue; t[n] = r[n]; } return t; }
|
|
36
|
+
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
37
|
+
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); } }
|
|
38
|
+
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
39
|
+
function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
40
|
+
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); }
|
|
41
|
+
function _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return e; }
|
|
42
|
+
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
43
|
+
function _superPropGet(t, o, e, r) { var p = _get(_getPrototypeOf(1 & r ? t.prototype : t), o, e); return 2 & r && "function" == typeof p ? function (t) { return p.apply(e, t); } : p; }
|
|
44
|
+
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); }
|
|
45
|
+
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); }
|
|
46
|
+
function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }
|
|
47
|
+
function _superPropSet(t, e, o, r, p, f) { return _set(_getPrototypeOf(f ? t.prototype : t), e, o, r, p); }
|
|
48
|
+
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); }
|
|
49
|
+
function _set(e, r, t, o, f) { if (!set(e, r, t, o || e) && f) throw new TypeError("failed to set property"); return t; }
|
|
50
|
+
function _superPropBase(t, o) { for (; !{}.hasOwnProperty.call(t, o) && null !== (t = _getPrototypeOf(t));); return t; }
|
|
51
|
+
function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); }
|
|
52
|
+
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; }
|
|
53
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
54
|
+
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
55
|
var addOverlay = function addOverlay(feature, map, alarmBg) {
|
|
54
56
|
if (alarmBg) {
|
|
55
57
|
var itemVal = alarmBg.find(function (v) {
|
|
@@ -82,10 +84,8 @@ var addOverlay = function addOverlay(feature, map, alarmBg) {
|
|
|
82
84
|
}
|
|
83
85
|
};
|
|
84
86
|
var FeatureLayer = /*#__PURE__*/function (_Vector) {
|
|
85
|
-
_inherits(FeatureLayer, _Vector);
|
|
86
|
-
var _super = _createSuper(FeatureLayer);
|
|
87
87
|
function FeatureLayer(_options) {
|
|
88
|
-
var
|
|
88
|
+
var _this2;
|
|
89
89
|
_classCallCheck(this, FeatureLayer);
|
|
90
90
|
var url = _options.url,
|
|
91
91
|
params = _options.params,
|
|
@@ -135,8 +135,8 @@ var FeatureLayer = /*#__PURE__*/function (_Vector) {
|
|
|
135
135
|
});
|
|
136
136
|
}
|
|
137
137
|
}
|
|
138
|
-
_this2 =
|
|
139
|
-
_defineProperty(
|
|
138
|
+
_this2 = _callSuper(this, FeatureLayer, [props]);
|
|
139
|
+
_defineProperty(_this2, "getClusterTextStyle", function (size, options) {
|
|
140
140
|
var _ref = options && _typeof(options) === 'object' ? options : {},
|
|
141
141
|
color = _ref.color,
|
|
142
142
|
background = _ref.background,
|
|
@@ -146,7 +146,7 @@ var FeatureLayer = /*#__PURE__*/function (_Vector) {
|
|
|
146
146
|
var style = _objectSpread({
|
|
147
147
|
text: String(size),
|
|
148
148
|
font: '18px Calibri,sans-serif',
|
|
149
|
-
fill: new
|
|
149
|
+
fill: new _style6.Fill({
|
|
150
150
|
color: color || '#fff'
|
|
151
151
|
}),
|
|
152
152
|
padding: [0, 0, 0, 0],
|
|
@@ -157,19 +157,19 @@ var FeatureLayer = /*#__PURE__*/function (_Vector) {
|
|
|
157
157
|
offsetX: 16
|
|
158
158
|
}, otherVal);
|
|
159
159
|
if (background) {
|
|
160
|
-
style.backgroundFill = new
|
|
160
|
+
style.backgroundFill = new _style6.Fill({
|
|
161
161
|
color: background
|
|
162
162
|
});
|
|
163
163
|
}
|
|
164
164
|
if (backgroundStroke) {
|
|
165
|
-
style.backgroundStroke = new
|
|
165
|
+
style.backgroundStroke = new _style6.Stroke({
|
|
166
166
|
color: '#FFFFFF',
|
|
167
167
|
width: backgroundStrokeWidth || 2
|
|
168
168
|
});
|
|
169
169
|
}
|
|
170
|
-
return new
|
|
170
|
+
return new _style6.Text(style);
|
|
171
171
|
});
|
|
172
|
-
_defineProperty(
|
|
172
|
+
_defineProperty(_this2, "getLabelStyle", function (feature, color) {
|
|
173
173
|
var labelField = _this2._options.labelField;
|
|
174
174
|
|
|
175
175
|
// 判断是否是聚合点位
|
|
@@ -181,16 +181,16 @@ var FeatureLayer = /*#__PURE__*/function (_Vector) {
|
|
|
181
181
|
}
|
|
182
182
|
}
|
|
183
183
|
if (labelField) {
|
|
184
|
-
return new
|
|
184
|
+
return new _style6.Text({
|
|
185
185
|
text: feature.values_[labelField] || '-',
|
|
186
186
|
font: '12px Calibri,sans-serif',
|
|
187
|
-
fill: new
|
|
187
|
+
fill: new _style6.Fill({
|
|
188
188
|
color: color
|
|
189
189
|
}),
|
|
190
|
-
backgroundFill: new
|
|
190
|
+
backgroundFill: new _style6.Fill({
|
|
191
191
|
color: '#fff'
|
|
192
192
|
}),
|
|
193
|
-
backgroundStroke: new
|
|
193
|
+
backgroundStroke: new _style6.Stroke({
|
|
194
194
|
color: color,
|
|
195
195
|
width: 1
|
|
196
196
|
}),
|
|
@@ -201,7 +201,7 @@ var FeatureLayer = /*#__PURE__*/function (_Vector) {
|
|
|
201
201
|
});
|
|
202
202
|
}
|
|
203
203
|
});
|
|
204
|
-
|
|
204
|
+
_superPropSet((_this2, FeatureLayer), "show", show, _this2, 1, 1);
|
|
205
205
|
// 参数
|
|
206
206
|
_this2._options = _options;
|
|
207
207
|
|
|
@@ -313,7 +313,8 @@ var FeatureLayer = /*#__PURE__*/function (_Vector) {
|
|
|
313
313
|
}
|
|
314
314
|
|
|
315
315
|
// 初始化数据
|
|
316
|
-
|
|
316
|
+
_inherits(FeatureLayer, _Vector);
|
|
317
|
+
return _createClass(FeatureLayer, [{
|
|
317
318
|
key: "init",
|
|
318
319
|
value: function init() {
|
|
319
320
|
// 是否存在地址
|
|
@@ -334,7 +335,7 @@ var FeatureLayer = /*#__PURE__*/function (_Vector) {
|
|
|
334
335
|
}, {
|
|
335
336
|
key: "show",
|
|
336
337
|
get: function get() {
|
|
337
|
-
return
|
|
338
|
+
return _superPropGet(FeatureLayer, "show", this, 1);
|
|
338
339
|
},
|
|
339
340
|
set: function set(value) {
|
|
340
341
|
this.setVisible(value);
|
|
@@ -394,16 +395,14 @@ var FeatureLayer = /*#__PURE__*/function (_Vector) {
|
|
|
394
395
|
}
|
|
395
396
|
}, {
|
|
396
397
|
key: "getCustomClusterStyle",
|
|
397
|
-
value: function getCustomClusterStyle(feature) {
|
|
398
|
+
value: function getCustomClusterStyle(feature, clusterStyle) {
|
|
398
399
|
var _feature$get2;
|
|
399
|
-
var
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
scale = _cluster$style$scale === void 0 ? 1 : _cluster$style$scale,
|
|
406
|
-
iconOptions = _objectWithoutProperties(_cluster$style, _excluded3);
|
|
400
|
+
var type = clusterStyle.type,
|
|
401
|
+
iconSrc = clusterStyle.iconSrc,
|
|
402
|
+
color = clusterStyle.color,
|
|
403
|
+
_clusterStyle$scale = clusterStyle.scale,
|
|
404
|
+
scale = _clusterStyle$scale === void 0 ? 1 : _clusterStyle$scale,
|
|
405
|
+
iconOptions = _objectWithoutProperties(clusterStyle, _excluded3);
|
|
407
406
|
var size = ((_feature$get2 = feature.get('features')) === null || _feature$get2 === void 0 ? void 0 : _feature$get2.length) || 0;
|
|
408
407
|
return [new _renderer["default"].Marker({
|
|
409
408
|
image: (0, _Marker.getImgUrl)(type || 'CommonIcon', {
|
|
@@ -433,7 +432,7 @@ var FeatureLayer = /*#__PURE__*/function (_Vector) {
|
|
|
433
432
|
cluster = _this4$_options.cluster,
|
|
434
433
|
otherStyle = _this4$_options.otherStyle;
|
|
435
434
|
var show = true;
|
|
436
|
-
(_this4$group = _this4.group) === null || _this4$group === void 0
|
|
435
|
+
(_this4$group = _this4.group) === null || _this4$group === void 0 || _this4$group.map(function (v) {
|
|
437
436
|
var _v$filter;
|
|
438
437
|
if (v !== null && v !== void 0 && (_v$filter = v.filter) !== null && _v$filter !== void 0 && _v$filter.call(v, feature.values_)) {
|
|
439
438
|
style = v.style || style;
|
|
@@ -460,13 +459,13 @@ var FeatureLayer = /*#__PURE__*/function (_Vector) {
|
|
|
460
459
|
}
|
|
461
460
|
}
|
|
462
461
|
if (size > 1 && cluster !== null && cluster !== void 0 && cluster.style.iconSrc) {
|
|
463
|
-
return _this4.getCustomClusterStyle(feature);
|
|
462
|
+
return _this4.getCustomClusterStyle(feature, cluster.style);
|
|
464
463
|
}
|
|
465
464
|
if (style) {
|
|
466
465
|
if (typeof style === 'string' || (0, _isFunction["default"])(style) && cluster) {
|
|
467
466
|
styles.push(new _renderer["default"].Marker(_objectSpread({}, _this4.getMarkerOptions(feature, style))));
|
|
468
467
|
return styles;
|
|
469
|
-
} else if (style instanceof
|
|
468
|
+
} else if (style instanceof _style6.Style) {
|
|
470
469
|
// 判断是否为 ol Style
|
|
471
470
|
styles.push(style);
|
|
472
471
|
return styles;
|
|
@@ -517,17 +516,17 @@ var FeatureLayer = /*#__PURE__*/function (_Vector) {
|
|
|
517
516
|
}
|
|
518
517
|
}
|
|
519
518
|
}
|
|
520
|
-
styles.push(new
|
|
521
|
-
image: new
|
|
519
|
+
styles.push(new _style6.Style({
|
|
520
|
+
image: new _style6.Circle({
|
|
522
521
|
radius: 4,
|
|
523
|
-
fill: new
|
|
522
|
+
fill: new _style6.Fill({
|
|
524
523
|
color: 'rgba(0,155,255, 0.8)'
|
|
525
524
|
})
|
|
526
525
|
}),
|
|
527
|
-
fill: new
|
|
526
|
+
fill: new _style6.Fill({
|
|
528
527
|
color: 'rgba(255, 255, 255, 0.6)'
|
|
529
528
|
}),
|
|
530
|
-
stroke: new
|
|
529
|
+
stroke: new _style6.Stroke({
|
|
531
530
|
color: '#009BFF',
|
|
532
531
|
width: 2
|
|
533
532
|
})
|
|
@@ -566,32 +565,41 @@ var FeatureLayer = /*#__PURE__*/function (_Vector) {
|
|
|
566
565
|
var icon = (style === null || style === void 0 ? void 0 : style.icon) || style;
|
|
567
566
|
var image = style === null || style === void 0 ? void 0 : style.image;
|
|
568
567
|
var color = (style === null || style === void 0 ? void 0 : style.color) || '#2491fc';
|
|
568
|
+
var iconSize = (style === null || style === void 0 ? void 0 : style.size) || null;
|
|
569
|
+
var hideFooter = (style === null || style === void 0 ? void 0 : style.hideFooter) || null;
|
|
569
570
|
var _this$_options = this._options,
|
|
570
571
|
cluster = _this$_options.cluster,
|
|
571
572
|
point = _this$_options.point,
|
|
572
573
|
label = _this$_options.label;
|
|
573
|
-
|
|
574
574
|
// 判断是否为自定义函数渲染
|
|
575
575
|
var isFun = (0, _isFunction["default"])(style);
|
|
576
576
|
var data = {};
|
|
577
577
|
if (isFun) {
|
|
578
|
-
var _data,
|
|
578
|
+
var _data, _data2, _data3, _data4, _data5, _data6, _data7, _data8, _data9, _data10;
|
|
579
579
|
data = style(feature) || {};
|
|
580
|
-
icon = ((_data = data) === null || _data === void 0
|
|
581
|
-
color = ((_data3 = data) === null || _data3 === void 0
|
|
582
|
-
image = ((_data5 = data) === null || _data5 === void 0
|
|
580
|
+
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;
|
|
581
|
+
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;
|
|
582
|
+
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;
|
|
583
|
+
iconSize = ((_data7 = data) === null || _data7 === void 0 || (_data7 = _data7.style) === null || _data7 === void 0 ? void 0 : _data7.size) || ((_data8 = data) === null || _data8 === void 0 ? void 0 : _data8.size) || iconSize;
|
|
584
|
+
hideFooter = ((_data9 = data) === null || _data9 === void 0 || (_data9 = _data9.style) === null || _data9 === void 0 ? void 0 : _data9.hideFooter) || ((_data10 = data) === null || _data10 === void 0 ? void 0 : _data10.hideFooter) || hideFooter;
|
|
583
585
|
}
|
|
584
586
|
var size = ((_feature$get4 = feature.get('features')) === null || _feature$get4 === void 0 ? void 0 : _feature$get4.length) || 0;
|
|
587
|
+
var iconOptions = {
|
|
588
|
+
size: iconSize,
|
|
589
|
+
hideFooter: hideFooter
|
|
590
|
+
};
|
|
585
591
|
var P = {
|
|
586
592
|
marker: {
|
|
587
593
|
// 图标
|
|
588
594
|
icon: icon,
|
|
589
|
-
image: image
|
|
595
|
+
image: image,
|
|
596
|
+
iconOptions: iconOptions
|
|
590
597
|
},
|
|
591
598
|
point: {
|
|
592
599
|
// 点位
|
|
593
600
|
icon: icon,
|
|
594
|
-
type: 'PointIcon'
|
|
601
|
+
type: 'PointIcon',
|
|
602
|
+
iconOptions: iconOptions
|
|
595
603
|
},
|
|
596
604
|
marker_cluster: _objectSpread({
|
|
597
605
|
// 聚合图标
|
|
@@ -634,8 +642,8 @@ var FeatureLayer = /*#__PURE__*/function (_Vector) {
|
|
|
634
642
|
if (label) {
|
|
635
643
|
var _Object$keys;
|
|
636
644
|
if ((_Object$keys = Object.keys(data)) !== null && _Object$keys !== void 0 && _Object$keys.includes('customText')) {
|
|
637
|
-
var
|
|
638
|
-
_style.text = (
|
|
645
|
+
var _data11;
|
|
646
|
+
_style.text = (_data11 = data) === null || _data11 === void 0 ? void 0 : _data11.customText;
|
|
639
647
|
} else {
|
|
640
648
|
_style.text = this.getLabelStyle(feature, color);
|
|
641
649
|
}
|
|
@@ -684,39 +692,45 @@ var FeatureLayer = /*#__PURE__*/function (_Vector) {
|
|
|
684
692
|
})
|
|
685
693
|
});
|
|
686
694
|
if ((_group = group) !== null && _group !== void 0 && _group.length) {
|
|
687
|
-
var _group2;
|
|
688
|
-
var style;
|
|
695
|
+
var _group2, _groupItem;
|
|
696
|
+
var style, groupItem;
|
|
689
697
|
var f = features[0];
|
|
690
698
|
var size = features.length;
|
|
691
|
-
(_group2 = group) === null || _group2 === void 0
|
|
699
|
+
(_group2 = group) === null || _group2 === void 0 || _group2.map(function (v) {
|
|
692
700
|
var _v$filter2;
|
|
693
701
|
if (v !== null && v !== void 0 && (_v$filter2 = v.filter) !== null && _v$filter2 !== void 0 && _v$filter2.call(v, f.values_)) {
|
|
694
702
|
style = v.style || style;
|
|
703
|
+
groupItem = v;
|
|
695
704
|
}
|
|
696
705
|
});
|
|
697
706
|
var markerStyle = _objectSpread({}, style.style);
|
|
698
|
-
if (size > 1) {
|
|
699
|
-
var
|
|
700
|
-
|
|
701
|
-
|
|
707
|
+
if (size > 1 && (_groupItem = groupItem) !== null && _groupItem !== void 0 && (_groupItem = _groupItem.clusterStyle) !== null && _groupItem !== void 0 && _groupItem.iconSrc) {
|
|
708
|
+
var _style = _this6.getCustomClusterStyle(feature, groupItem.clusterStyle);
|
|
709
|
+
feature.setStyle(_style);
|
|
710
|
+
} else {
|
|
711
|
+
if (size > 1) {
|
|
712
|
+
var _style4, _markerStyle2, _cluster2;
|
|
713
|
+
if ((_style4 = style) !== null && _style4 !== void 0 && _style4.clusterStyle) {
|
|
714
|
+
markerStyle = _objectSpread({}, style.clusterStyle);
|
|
715
|
+
}
|
|
716
|
+
var _markerStyle = markerStyle,
|
|
717
|
+
numberStyle = _markerStyle.numberStyle,
|
|
718
|
+
iconOptions = _markerStyle.iconOptions,
|
|
719
|
+
otherStyle = _objectWithoutProperties(_markerStyle, _excluded4);
|
|
720
|
+
markerStyle = _objectSpread(_objectSpread({}, otherStyle), {}, {
|
|
721
|
+
text: _this6.getClusterTextStyle((_markerStyle2 = markerStyle) !== null && _markerStyle2 !== void 0 && _markerStyle2.image ? size : ' ', numberStyle),
|
|
722
|
+
iconOptions: _objectSpread({
|
|
723
|
+
hideFooter: true,
|
|
724
|
+
info: {
|
|
725
|
+
text: size,
|
|
726
|
+
fontSize: 18
|
|
727
|
+
}
|
|
728
|
+
}, iconOptions || ((_cluster2 = cluster) === null || _cluster2 === void 0 ? void 0 : _cluster2.iconOptions) || {})
|
|
729
|
+
});
|
|
702
730
|
}
|
|
703
|
-
var
|
|
704
|
-
|
|
705
|
-
iconOptions = _markerStyle.iconOptions,
|
|
706
|
-
otherStyle = _objectWithoutProperties(_markerStyle, _excluded4);
|
|
707
|
-
markerStyle = _objectSpread(_objectSpread({}, otherStyle), {}, {
|
|
708
|
-
text: _this6.getClusterTextStyle((_markerStyle2 = markerStyle) !== null && _markerStyle2 !== void 0 && _markerStyle2.image ? size : ' ', numberStyle),
|
|
709
|
-
iconOptions: _objectSpread({
|
|
710
|
-
hideFooter: true,
|
|
711
|
-
info: {
|
|
712
|
-
text: size,
|
|
713
|
-
fontSize: 18
|
|
714
|
-
}
|
|
715
|
-
}, iconOptions || ((_cluster2 = cluster) === null || _cluster2 === void 0 ? void 0 : _cluster2.iconOptions) || {})
|
|
716
|
-
});
|
|
731
|
+
var _style5 = new _renderer["default"].Marker(markerStyle);
|
|
732
|
+
feature.setStyle(_style5);
|
|
717
733
|
}
|
|
718
|
-
var _style = new _renderer["default"].Marker(markerStyle);
|
|
719
|
-
feature.setStyle(_style);
|
|
720
734
|
}
|
|
721
735
|
|
|
722
736
|
// 增加聚合点位标识
|
|
@@ -975,7 +989,7 @@ var FeatureLayer = /*#__PURE__*/function (_Vector) {
|
|
|
975
989
|
}, {
|
|
976
990
|
key: "setVisible",
|
|
977
991
|
value: function setVisible(visible) {
|
|
978
|
-
|
|
992
|
+
_superPropGet(FeatureLayer, "setVisible", this, 3)([visible]); // 将属性传递给父类
|
|
979
993
|
|
|
980
994
|
var map = this.getMap && this.getMap();
|
|
981
995
|
if (map) {
|
|
@@ -1008,8 +1022,6 @@ var FeatureLayer = /*#__PURE__*/function (_Vector) {
|
|
|
1008
1022
|
this.clearAlarmBg();
|
|
1009
1023
|
}
|
|
1010
1024
|
}]);
|
|
1011
|
-
return FeatureLayer;
|
|
1012
1025
|
}(_layer.Vector);
|
|
1013
|
-
var _default = FeatureLayer;
|
|
1014
|
-
exports["default"] = _default;
|
|
1026
|
+
var _default = exports["default"] = FeatureLayer;
|
|
1015
1027
|
//# sourceMappingURL=FeatureLayer.js.map
|