@vtx/ol-map 1.0.113 → 1.0.114
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 +5 -7
- package/lib/_util/EventEmitter.js.map +1 -1
- package/lib/_util/StyleCache.js +5 -7
- package/lib/_util/StyleCache.js.map +1 -1
- package/lib/_util/encryptParams.js +2 -3
- package/lib/_util/encryptParams.js.map +1 -1
- package/lib/_util/filterSpecialCharacters.js +6 -6
- 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 +6 -7
- package/lib/_util/getDefaultMapInfo.js.map +1 -1
- package/lib/_util/getSystemInfo.js +6 -7
- 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 +1 -2
- package/lib/_util/getUrlParam.js.map +1 -1
- package/lib/_util/http.js +25 -27
- 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 +31 -35
- 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 +1 -2
- 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 +1 -2
- package/lib/_util/projzh/datum/index.js.map +1 -1
- package/lib/_util/projzh/index.js +1 -2
- 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 +1 -2
- 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 +9 -12
- 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 +1 -1
- package/lib/_util/stringToFun.js.map +1 -1
- package/lib/_util/transform.js +7 -8
- package/lib/_util/transform.js.map +1 -1
- package/lib/_util/useColSize.js +1 -2
- package/lib/_util/useColSize.js.map +1 -1
- package/lib/_util/useInterval.js.map +1 -1
- package/lib/_util/useSet.js +7 -8
- package/lib/_util/useSet.js.map +1 -1
- package/lib/analysis-layer/index.js +34 -40
- 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 +7 -9
- package/lib/buffer-draw/BufferDraw.js.map +1 -1
- package/lib/buffer-draw/index.js +8 -8
- 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 +12 -14
- package/lib/circle/Circle.js.map +1 -1
- package/lib/circle/index.js +3 -3
- 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 +10 -12
- package/lib/dom/Dom.js.map +1 -1
- package/lib/dom/index.js +7 -7
- 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 +23 -30
- package/lib/feature-draw/FeatureDraw.js.map +1 -1
- package/lib/feature-draw/index.js +9 -9
- 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 +23 -26
- package/lib/feature-layer/FeatureLayer.js.map +1 -1
- package/lib/feature-layer/MyCluster.js +21 -24
- package/lib/feature-layer/MyCluster.js.map +1 -1
- package/lib/feature-layer/createFeatureCollection.js +29 -37
- package/lib/feature-layer/createFeatureCollection.js.map +1 -1
- package/lib/feature-layer/index.js +8 -8
- 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 +38 -17
- package/lib/flow-line-layer/FlowLineLayer.js.map +1 -1
- package/lib/flow-line-layer/index.js +13 -8
- 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 +7 -9
- package/lib/fly-line-layer/FlyLineLayer.js.map +1 -1
- package/lib/fly-line-layer/index.js +4 -4
- 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 +13 -15
- package/lib/group-layer/GroupLayer.js.map +1 -1
- package/lib/group-layer/index.js +4 -4
- 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 +15 -18
- package/lib/heatmap-layer/HeatmapLayer.js.map +1 -1
- package/lib/heatmap-layer/index.js +4 -4
- 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 +9 -11
- package/lib/high-layer/HighLayer.js.map +1 -1
- package/lib/high-layer/index.js +8 -9
- 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 +16 -20
- package/lib/image-layer/ImageLayer.js.map +1 -1
- package/lib/image-layer/index.js +7 -7
- 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.map +1 -1
- package/lib/legend/index.js +10 -12
- 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 +11 -14
- package/lib/map/Analysis.js.map +1 -1
- package/lib/map/Layers.js +12 -16
- package/lib/map/Layers.js.map +1 -1
- package/lib/map/Popup.js +14 -15
- 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 +1 -2
- package/lib/map/getBaseLayers/imagery/baidu/BaiduImageryProvider.js.map +1 -1
- package/lib/map/getBaseLayers/imagery/geoq/GeoQImageryProvider.js +3 -5
- package/lib/map/getBaseLayers/imagery/geoq/GeoQImageryProvider.js.map +1 -1
- package/lib/map/getBaseLayers/imagery/tdt/TdtImageryProvider.js +3 -5
- package/lib/map/getBaseLayers/imagery/tdt/TdtImageryProvider.js.map +1 -1
- package/lib/map/getBaseLayers/index.js +7 -9
- package/lib/map/getBaseLayers/index.js.map +1 -1
- package/lib/map/index.js +24 -25
- 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 +1 -2
- 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 +13 -16
- package/lib/marker/Marker.js.map +1 -1
- package/lib/marker/index.js +3 -3
- 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 +13 -15
- package/lib/path-line-layer/PathLineLayer.js.map +1 -1
- package/lib/path-line-layer/getPathLineStyles.js +6 -7
- package/lib/path-line-layer/getPathLineStyles.js.map +1 -1
- package/lib/path-line-layer/index.js +8 -8
- 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 +49 -16
- package/lib/path-play-back/PathPlayBack.js.map +1 -1
- package/lib/path-play-back/index.js +9 -7
- 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 +4 -4
- package/lib/poi-search/Location.js.map +1 -1
- package/lib/poi-search/PoiList.js +4 -4
- package/lib/poi-search/PoiList.js.map +1 -1
- package/lib/poi-search/Search.js +11 -11
- package/lib/poi-search/Search.js.map +1 -1
- package/lib/poi-search/index.js +5 -6
- 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 +12 -14
- package/lib/point/Point.js.map +1 -1
- package/lib/point/index.js +3 -3
- 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 +12 -14
- package/lib/polygon/Polygon.js.map +1 -1
- package/lib/polygon/index.js +3 -3
- 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 +12 -14
- package/lib/polyline/Polyline.js.map +1 -1
- package/lib/polyline/index.js +3 -3
- 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 +8 -9
- 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 +2 -4
- 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 +10 -12
- package/lib/renderer/Fill.js.map +1 -1
- package/lib/renderer/Stroke.js +10 -12
- package/lib/renderer/Stroke.js.map +1 -1
- package/lib/renderer/index.js +9 -11
- 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 +14 -17
- package/lib/search-map/VtxModal.js.map +1 -1
- package/lib/search-map/index.js +5 -6
- 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 +12 -14
- package/lib/tile-layer/TileLayer.js.map +1 -1
- package/lib/tile-layer/index.js +3 -3
- 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 +6 -7
- package/lib/tools/Layer/LayerService.js.map +1 -1
- package/lib/tools/Layer/LayersCheckService.js +11 -18
- package/lib/tools/Layer/LayersCheckService.js.map +1 -1
- package/lib/tools/Layer/index.js +7 -7
- package/lib/tools/Layer/index.js.map +1 -1
- package/lib/tools/Layer/index.less +43 -43
- package/lib/tools/Search/index.js +14 -16
- package/lib/tools/Search/index.js.map +1 -1
- package/lib/tools/Toolbox/BoxSelect/index.js +4 -5
- package/lib/tools/Toolbox/BoxSelect/index.js.map +1 -1
- package/lib/tools/Toolbox/CircleSelect/index.js +4 -5
- package/lib/tools/Toolbox/CircleSelect/index.js.map +1 -1
- package/lib/tools/Toolbox/EagleEye/index.js +5 -6
- package/lib/tools/Toolbox/EagleEye/index.js.map +1 -1
- package/lib/tools/Toolbox/MapBookmark/Bookmark.js +16 -19
- package/lib/tools/Toolbox/MapBookmark/Bookmark.js.map +1 -1
- package/lib/tools/Toolbox/MapBookmark/index.js +18 -19
- 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.map +1 -1
- package/lib/tools/Toolbox/MapPrint/index.js +10 -11
- 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 +1 -2
- package/lib/tools/Toolbox/Measure/Area/index.js.map +1 -1
- package/lib/tools/Toolbox/Measure/Distance/index.js +1 -2
- package/lib/tools/Toolbox/Measure/Distance/index.js.map +1 -1
- package/lib/tools/Toolbox/Measure/Measure.js +5 -7
- package/lib/tools/Toolbox/Measure/Measure.js.map +1 -1
- package/lib/tools/Toolbox/Measure/index.js +5 -6
- package/lib/tools/Toolbox/Measure/index.js.map +1 -1
- package/lib/tools/Toolbox/PolygonSelect/index.js +4 -5
- package/lib/tools/Toolbox/PolygonSelect/index.js.map +1 -1
- package/lib/tools/Toolbox/ScaleLine/index.js +5 -6
- package/lib/tools/Toolbox/ScaleLine/index.js.map +1 -1
- package/lib/tools/Toolbox/SelectTools/index.js +31 -33
- 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 +5 -5
- 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 +5 -6
- 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 +7 -9
- package/lib/tools/Toolbox/index.js.map +1 -1
- package/lib/tools/Toolbox/index.less +2 -2
- package/lib/tools/Utils/CreateOverlay.js +6 -7
- package/lib/tools/Utils/CreateOverlay.js.map +1 -1
- package/lib/tools/Utils/Draw.js +12 -15
- package/lib/tools/Utils/Draw.js.map +1 -1
- package/lib/tools/Utils/HighLayer.js +9 -11
- package/lib/tools/Utils/HighLayer.js.map +1 -1
- package/lib/tools/Utils/measure.js +1 -2
- package/lib/tools/Utils/measure.js.map +1 -1
- package/lib/tools/Utils/utils.js +30 -39
- package/lib/tools/Utils/utils.js.map +1 -1
- package/lib/tools/View/index.js +9 -10
- package/lib/tools/View/index.js.map +1 -1
- package/lib/tools/View/index.less +28 -28
- package/lib/tools/analysis-tool/index.js +11 -12
- package/lib/tools/analysis-tool/index.js.map +1 -1
- package/lib/tools/base-map-switch/index.js +9 -10
- package/lib/tools/base-map-switch/index.js.map +1 -1
- package/lib/tools/components/Chart/index.js +108 -118
- package/lib/tools/components/Chart/index.js.map +1 -1
- package/lib/tools/components/Icon/index.js +1 -2
- package/lib/tools/components/Icon/index.js.map +1 -1
- package/lib/tools/components/Info/index.js +1 -2
- 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 +5 -6
- 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 +8 -9
- 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.map +1 -1
- package/lib/tools/components/RequiredLabel/index.js +5 -5
- 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 +1 -2
- package/lib/tools/components/Select/index.js.map +1 -1
- package/lib/tools/components/Table/index.js +6 -7
- 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 +1 -2
- 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 +1 -2
- 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 +5 -6
- package/lib/tools/full-screen/index.js.map +1 -1
- package/lib/tools/index.js +5 -5
- package/lib/tools/index.js.map +1 -1
- package/lib/tools/layer-control/index.js +11 -14
- package/lib/tools/layer-control/index.js.map +1 -1
- package/lib/tools/refresh/index.js +6 -7
- 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 +5 -6
- 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 +119 -119
- package/CHANGELOG.md +0 -217
package/lib/popup/index.js
CHANGED
|
@@ -9,20 +9,20 @@ var _antd = require("antd");
|
|
|
9
9
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
10
10
|
var _icons = require("@ant-design/icons");
|
|
11
11
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
12
|
-
function _getRequireWildcardCache(
|
|
13
|
-
function _interopRequireWildcard(
|
|
14
|
-
function _typeof(
|
|
12
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
13
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
|
|
14
|
+
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); }
|
|
15
15
|
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
|
|
16
16
|
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."); }
|
|
17
17
|
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); }
|
|
18
18
|
function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
|
|
19
19
|
function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
|
|
20
20
|
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; }
|
|
21
|
-
function ownKeys(
|
|
22
|
-
function _objectSpread(
|
|
21
|
+
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; }
|
|
22
|
+
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; }
|
|
23
23
|
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; }
|
|
24
|
-
function _toPropertyKey(
|
|
25
|
-
function _toPrimitive(
|
|
24
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
25
|
+
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); }
|
|
26
26
|
var Context = /*#__PURE__*/_react["default"].createContext({
|
|
27
27
|
wrapDom: null
|
|
28
28
|
});
|
|
@@ -186,6 +186,5 @@ Popup.Content = Content;
|
|
|
186
186
|
Popup.Footer = Footer;
|
|
187
187
|
Popup.Template = Template;
|
|
188
188
|
Popup.Context = Context;
|
|
189
|
-
var _default = Popup;
|
|
190
|
-
exports["default"] = _default;
|
|
189
|
+
var _default = exports["default"] = Popup;
|
|
191
190
|
//# sourceMappingURL=index.js.map
|
package/lib/popup/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["_react","_interopRequireWildcard","require","_antd","_classnames","_interopRequireDefault","_icons","obj","__esModule","_getRequireWildcardCache","nodeInterop","WeakMap","cacheBabelInterop","cacheNodeInterop","_typeof","cache","has","get","newObj","hasPropertyDescriptor","Object","defineProperty","getOwnPropertyDescriptor","key","prototype","hasOwnProperty","call","desc","set","Symbol","iterator","constructor","_toConsumableArray","arr","_arrayWithoutHoles","_iterableToArray","_unsupportedIterableToArray","_nonIterableSpread","TypeError","o","minLen","_arrayLikeToArray","n","toString","slice","name","Array","from","test","iter","isArray","len","length","i","arr2","ownKeys","object","enumerableOnly","keys","getOwnPropertySymbols","symbols","filter","sym","enumerable","push","apply","_objectSpread","target","arguments","source","forEach","_defineProperty","getOwnPropertyDescriptors","defineProperties","value","_toPropertyKey","configurable","writable","arg","_toPrimitive","String","input","hint","prim","toPrimitive","undefined","res","Number","Context","React","createContext","wrapDom","Provider","Wrap","forwardRef","props","ref","children","dom","useRef","useImperativeHandle","current","createElement","className","classNames","Close","onClick","CloseOutlined","width","height","Title","title","Content","list","gutter","_props$loading","loading","_props$column","column","_props$style","style","_useContext","useContext","_style","setProperty","concat","Spin","spinning","Row","map","item","index","Col","span","label","unit","color","onAlarm","content","Footer","Fragment","icon","Template","contentList","contentStyle","otherContent","footerList","footer","detail","footerButtons","show","ExclamationCircleOutlined","Popup","onClose","wrapRef","_default","exports"],"sources":["popup/index.jsx"],"sourcesContent":["import React, {useImperativeHandle, forwardRef, useRef, useContext} from \"react\";\nimport {Row, Col, Spin} from 'antd';\nimport classNames from 'classnames';\nimport {ExclamationCircleOutlined, CloseOutlined} from \"@ant-design/icons\";\n\nconst Context = React.createContext({wrapDom: null});\nconst Provider = Context.Provider;\n\n// 最外层包裹容器\nconst Wrap = forwardRef((props, ref) => {\n const {children} = props;\n const dom = useRef(null);\n\n useImperativeHandle(ref, () => ({\n dom: dom.current\n }));\n\n return (\n <Provider\n value={{\n wrapDom: dom.current,\n }}\n >\n <div ref={dom} className={classNames('ol-map-popup')}>\n {children}\n </div>\n </Provider>\n )\n})\n\n// 关闭按钮\nconst Close = (props) => {\n const {onClick} = props\n return (\n <CloseOutlined\n className={classNames('ol-map-popup-close')}\n width={16}\n height={16}\n onClick={onClick}\n />\n )\n}\n\n// 标题\nconst Title = (props) => {\n const {title} = props;\n\n return (\n <div\n title={title}\n className={classNames('ol-map-popup-title', { 'ol-map-popup-noTitle': !title })}\n >\n {title}\n </div>\n )\n}\n\n// 内容\nconst Content = (props) => {\n const {list, gutter, loading = false, children, column = 1, style = {}} = props;\n\n const {wrapDom} = useContext(Context);\n\n const _style = {\n width: '100%',\n ...style\n }\n\n if (column >= 2) {\n _style.width = column * 200;\n wrapDom.style.setProperty('--popup-width', `${_style.width}px`);\n }\n\n return (\n <Spin spinning={loading}>\n <div className={classNames('ol-map-popup-content')} style={_style}>\n <Row gutter={gutter || [5, 5]}>\n {list?.length > 0 &&\n list.map((item, index) => (\n <Col key={index} span={item.span || (24 / column)}>\n <div className={classNames('ol-map-popup-content-item')} onClick={item.onClick}>\n {item.label &&\n <div\n className={classNames('ol-map-popup-content-item-label')}\n >\n {item.label}:\n </div>\n }\n\n {((item.value || String(item.value) === '0') || item.unit) &&\n <div\n className={classNames('ol-map-popup-content-item-value')}\n style={{\n color: item.onAlarm ? 'rgb(245,13,13)' : '#222',\n ...(item.style || {})\n }}\n title={item.value}\n >\n {item.value}{item.unit}\n </div>\n }\n\n {item.content}\n </div>\n </Col>\n ))}\n </Row>\n\n {children}\n </div>\n </Spin>\n )\n}\n\n// 底部按钮\nconst Footer = (props) => {\n const {list} = props;\n\n if (list?.length === 0) {\n return <></>\n }\n\n return (\n <div className={classNames(\"ol-map-popup-footer\")}>\n {list.map((item, index) => (\n <div key={index} className={classNames(\"ol-map-popup-footer-item\")} onClick={item.onClick}>\n {item.icon && <span className={classNames(\"ol-map-popup-footer-item-icon\")}>{item.icon}</span>}\n\n {item.label}\n </div>\n ))}\n </div>\n )\n}\n\n// 模版\nconst Template = (props) => {\n const {\n loading, // 加载中\n contentList, // 内容列表,[{label: '', value: ''}]\n contentStyle, // 内容样式\n content, // 自定义内容\n otherContent, // 其他内容\n gutter, // 内容列间距\n column, // 内容列数\n footerList, // 底部按钮列表,[{label: '', icon: '', onClick: () => {}}]\n footer, // 自定义底部内容\n detail, // 详情按钮\n children // 自定义内容\n } = props;\n\n // 底部按钮\n const footerButtons = [\n ...(detail?.show ? [\n {\n label: \"详情\",\n icon: <ExclamationCircleOutlined />,\n ...detail\n }\n ] : []),\n ...(footerList || [])\n ]\n\n return (\n <>\n {content ||\n <Content\n loading={loading}\n list={contentList}\n column={column}\n gutter={gutter}\n style={contentStyle}\n >\n {otherContent}\n </Content>\n }\n\n {children}\n\n {footer || <Footer list={footerButtons}/>}\n </>\n )\n}\n\nconst Popup = forwardRef((props, ref) => {\n const {title, onClose, children} = props;\n\n const wrapRef = useRef({});\n\n useImperativeHandle(ref, () => ({\n wrapDom: wrapRef.current.dom\n }));\n\n return (\n <Wrap ref={wrapRef}>\n <Title title={title}/>\n {onClose && <Close onClick={onClose}/>}\n\n {children}\n </Wrap>\n )\n})\n\nPopup.Title = Title;\nPopup.Content = Content;\nPopup.Footer = Footer;\nPopup.Template = Template;\nPopup.Context = Context;\n\nexport default Popup;\n"],"mappings":";;;;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K,CAACb,MAAM,GAAGA,MAAM;AACrBa,KAAK,CAACV,QAAQ,GAAGA,QAAQ;AACzBU,KAAK,CAAChE,OAAO,GAAGA,OAAO;AAAC,IAAAmE,QAAA,GAETH,KAAK;AAAAI,OAAA,cAAAD,QAAA"}
|
|
1
|
+
{"version":3,"file":"index.js","names":["_react","_interopRequireWildcard","require","_antd","_classnames","_interopRequireDefault","_icons","obj","__esModule","_getRequireWildcardCache","e","WeakMap","r","t","_typeof","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","o","Symbol","iterator","constructor","prototype","_toConsumableArray","arr","_arrayWithoutHoles","_iterableToArray","_unsupportedIterableToArray","_nonIterableSpread","TypeError","minLen","_arrayLikeToArray","toString","slice","name","Array","from","test","iter","isArray","len","length","arr2","ownKeys","keys","getOwnPropertySymbols","filter","enumerable","push","apply","_objectSpread","arguments","forEach","_defineProperty","getOwnPropertyDescriptors","defineProperties","key","value","_toPropertyKey","configurable","writable","_toPrimitive","toPrimitive","String","Number","Context","React","createContext","wrapDom","Provider","Wrap","forwardRef","props","ref","children","dom","useRef","useImperativeHandle","current","createElement","className","classNames","Close","onClick","CloseOutlined","width","height","Title","title","Content","list","gutter","_props$loading","loading","_props$column","column","_props$style","style","_useContext","useContext","_style","setProperty","concat","Spin","spinning","Row","map","item","index","Col","span","label","unit","color","onAlarm","content","Footer","Fragment","icon","Template","contentList","contentStyle","otherContent","footerList","footer","detail","footerButtons","show","ExclamationCircleOutlined","Popup","onClose","wrapRef","_default","exports"],"sources":["popup/index.jsx"],"sourcesContent":["import React, {useImperativeHandle, forwardRef, useRef, useContext} from \"react\";\r\nimport {Row, Col, Spin} from 'antd';\r\nimport classNames from 'classnames';\r\nimport {ExclamationCircleOutlined, CloseOutlined} from \"@ant-design/icons\";\r\n\r\nconst Context = React.createContext({wrapDom: null});\r\nconst Provider = Context.Provider;\r\n\r\n// 最外层包裹容器\r\nconst Wrap = forwardRef((props, ref) => {\r\n const {children} = props;\r\n const dom = useRef(null);\r\n\r\n useImperativeHandle(ref, () => ({\r\n dom: dom.current\r\n }));\r\n\r\n return (\r\n <Provider\r\n value={{\r\n wrapDom: dom.current,\r\n }}\r\n >\r\n <div ref={dom} className={classNames('ol-map-popup')}>\r\n {children}\r\n </div>\r\n </Provider>\r\n )\r\n})\r\n\r\n// 关闭按钮\r\nconst Close = (props) => {\r\n const {onClick} = props\r\n return (\r\n <CloseOutlined\r\n className={classNames('ol-map-popup-close')}\r\n width={16}\r\n height={16}\r\n onClick={onClick}\r\n />\r\n )\r\n}\r\n\r\n// 标题\r\nconst Title = (props) => {\r\n const {title} = props;\r\n\r\n return (\r\n <div\r\n title={title}\r\n className={classNames('ol-map-popup-title', { 'ol-map-popup-noTitle': !title })}\r\n >\r\n {title}\r\n </div>\r\n )\r\n}\r\n\r\n// 内容\r\nconst Content = (props) => {\r\n const {list, gutter, loading = false, children, column = 1, style = {}} = props;\r\n\r\n const {wrapDom} = useContext(Context);\r\n\r\n const _style = {\r\n width: '100%',\r\n ...style\r\n }\r\n\r\n if (column >= 2) {\r\n _style.width = column * 200;\r\n wrapDom.style.setProperty('--popup-width', `${_style.width}px`);\r\n }\r\n\r\n return (\r\n <Spin spinning={loading}>\r\n <div className={classNames('ol-map-popup-content')} style={_style}>\r\n <Row gutter={gutter || [5, 5]}>\r\n {list?.length > 0 &&\r\n list.map((item, index) => (\r\n <Col key={index} span={item.span || (24 / column)}>\r\n <div className={classNames('ol-map-popup-content-item')} onClick={item.onClick}>\r\n {item.label &&\r\n <div\r\n className={classNames('ol-map-popup-content-item-label')}\r\n >\r\n {item.label}:\r\n </div>\r\n }\r\n\r\n {((item.value || String(item.value) === '0') || item.unit) &&\r\n <div\r\n className={classNames('ol-map-popup-content-item-value')}\r\n style={{\r\n color: item.onAlarm ? 'rgb(245,13,13)' : '#222',\r\n ...(item.style || {})\r\n }}\r\n title={item.value}\r\n >\r\n {item.value}{item.unit}\r\n </div>\r\n }\r\n\r\n {item.content}\r\n </div>\r\n </Col>\r\n ))}\r\n </Row>\r\n\r\n {children}\r\n </div>\r\n </Spin>\r\n )\r\n}\r\n\r\n// 底部按钮\r\nconst Footer = (props) => {\r\n const {list} = props;\r\n\r\n if (list?.length === 0) {\r\n return <></>\r\n }\r\n\r\n return (\r\n <div className={classNames(\"ol-map-popup-footer\")}>\r\n {list.map((item, index) => (\r\n <div key={index} className={classNames(\"ol-map-popup-footer-item\")} onClick={item.onClick}>\r\n {item.icon && <span className={classNames(\"ol-map-popup-footer-item-icon\")}>{item.icon}</span>}\r\n\r\n {item.label}\r\n </div>\r\n ))}\r\n </div>\r\n )\r\n}\r\n\r\n// 模版\r\nconst Template = (props) => {\r\n const {\r\n loading, // 加载中\r\n contentList, // 内容列表,[{label: '', value: ''}]\r\n contentStyle, // 内容样式\r\n content, // 自定义内容\r\n otherContent, // 其他内容\r\n gutter, // 内容列间距\r\n column, // 内容列数\r\n footerList, // 底部按钮列表,[{label: '', icon: '', onClick: () => {}}]\r\n footer, // 自定义底部内容\r\n detail, // 详情按钮\r\n children // 自定义内容\r\n } = props;\r\n\r\n // 底部按钮\r\n const footerButtons = [\r\n ...(detail?.show ? [\r\n {\r\n label: \"详情\",\r\n icon: <ExclamationCircleOutlined />,\r\n ...detail\r\n }\r\n ] : []),\r\n ...(footerList || [])\r\n ]\r\n\r\n return (\r\n <>\r\n {content ||\r\n <Content\r\n loading={loading}\r\n list={contentList}\r\n column={column}\r\n gutter={gutter}\r\n style={contentStyle}\r\n >\r\n {otherContent}\r\n </Content>\r\n }\r\n\r\n {children}\r\n\r\n {footer || <Footer list={footerButtons}/>}\r\n </>\r\n )\r\n}\r\n\r\nconst Popup = forwardRef((props, ref) => {\r\n const {title, onClose, children} = props;\r\n\r\n const wrapRef = useRef({});\r\n\r\n useImperativeHandle(ref, () => ({\r\n wrapDom: wrapRef.current.dom\r\n }));\r\n\r\n return (\r\n <Wrap ref={wrapRef}>\r\n <Title title={title}/>\r\n {onClose && <Close onClick={on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C,EAErCxD,QACC,CAAC;AAEf,CAAC,CAAC;AAEFuD,KAAK,CAAC1C,KAAK,GAAGA,KAAK;AACnB0C,KAAK,CAACxC,OAAO,GAAGA,OAAO;AACvBwC,KAAK,CAACb,MAAM,GAAGA,MAAM;AACrBa,KAAK,CAACV,QAAQ,GAAGA,QAAQ;AACzBU,KAAK,CAAChE,OAAO,GAAGA,OAAO;AAAC,IAAAmE,QAAA,GAAAC,OAAA,cAETJ,KAAK","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"css.js","names":["require"],"sources":["popup/style/index.js"],"sourcesContent":["import './index.less';\n"],"mappings":";;AAAAA,OAAA"}
|
|
1
|
+
{"version":3,"file":"css.js","names":["require"],"sources":["popup/style/index.js"],"sourcesContent":["import './index.less';\r\n"],"mappings":";;AAAAA,OAAA","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["require"],"sources":["popup/style/index.js"],"sourcesContent":["import './index.less';\n"],"mappings":";;AAAAA,OAAA"}
|
|
1
|
+
{"version":3,"file":"index.js","names":["require"],"sources":["popup/style/index.js"],"sourcesContent":["import './index.less';\r\n"],"mappings":";;AAAAA,OAAA","ignoreList":[]}
|
|
@@ -1,128 +1,128 @@
|
|
|
1
|
-
.ol-map-popup {
|
|
2
|
-
--popup-width: 250px;
|
|
3
|
-
|
|
4
|
-
position: absolute;
|
|
5
|
-
border: 1px solid #cccccc;
|
|
6
|
-
bottom: 12px;
|
|
7
|
-
left: 0;
|
|
8
|
-
transform: translateX(-50%);
|
|
9
|
-
min-width: 250px;
|
|
10
|
-
background: #FFFFFF;
|
|
11
|
-
box-shadow: 0px 0px 10px 0px rgba(0,0,0,0.3);
|
|
12
|
-
border-radius: 10px;
|
|
13
|
-
opacity: 1;
|
|
14
|
-
width: var(--popup-width);
|
|
15
|
-
|
|
16
|
-
&-close {
|
|
17
|
-
text-decoration: none;
|
|
18
|
-
position: absolute;
|
|
19
|
-
top: 12px;
|
|
20
|
-
right: 8px;
|
|
21
|
-
z-index: 9;
|
|
22
|
-
cursor: pointer;
|
|
23
|
-
color: #1890FF;
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
&::after,
|
|
27
|
-
&::before {
|
|
28
|
-
top: 100%;
|
|
29
|
-
border: solid transparent;
|
|
30
|
-
content: ' ';
|
|
31
|
-
height: 0;
|
|
32
|
-
width: 0;
|
|
33
|
-
position: absolute;
|
|
34
|
-
pointer-events: none;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
&::after {
|
|
38
|
-
border-top-color: white;
|
|
39
|
-
border-width: 5px;
|
|
40
|
-
left: 50%;
|
|
41
|
-
transform: translateX(calc(-50% - 10px));
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
&::before {
|
|
45
|
-
border-top-color: #cccccc;
|
|
46
|
-
border-width: 5px;
|
|
47
|
-
left: 50%;
|
|
48
|
-
transform: translateX(calc(-50% - 11px));
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
.ol-map-popup-title {
|
|
53
|
-
font-size: 16px;
|
|
54
|
-
color: #262626;
|
|
55
|
-
font-weight: bold;
|
|
56
|
-
padding: 6px 2px 4px 12px;
|
|
57
|
-
max-width: calc(~"100% - 30px");
|
|
58
|
-
white-space: nowrap;
|
|
59
|
-
text-overflow: ellipsis;
|
|
60
|
-
overflow: hidden;
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
.ol-map-popup-noTitle {
|
|
64
|
-
padding: 0;
|
|
65
|
-
border-bottom: 0 !important;
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
.ol-map-popup-content {
|
|
69
|
-
padding: 10px 12px;
|
|
70
|
-
max-height: 200px;
|
|
71
|
-
min-width: 250px;
|
|
72
|
-
overflow-y: auto;
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
.ol-map-popup-content-item {
|
|
76
|
-
display: flex;
|
|
77
|
-
align-items: center;
|
|
78
|
-
font-size: 14px;
|
|
79
|
-
|
|
80
|
-
&-label {
|
|
81
|
-
color: #5E6169;
|
|
82
|
-
white-space: nowrap;
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
&-value{
|
|
86
|
-
color: #222222;
|
|
87
|
-
white-space: nowrap;
|
|
88
|
-
text-overflow: ellipsis;
|
|
89
|
-
overflow: hidden;
|
|
90
|
-
}
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
.ol-map-popup-footer {
|
|
94
|
-
border-top: 1px solid #E8E8E8;
|
|
95
|
-
padding: 4px 0;
|
|
96
|
-
display: flex;
|
|
97
|
-
align-items: center;
|
|
98
|
-
color: #1890FF;
|
|
99
|
-
|
|
100
|
-
.ol-map-popup-footer-item {
|
|
101
|
-
display: flex;
|
|
102
|
-
align-items: center;
|
|
103
|
-
padding: 0 14px;
|
|
104
|
-
position: relative;
|
|
105
|
-
cursor: pointer;
|
|
106
|
-
white-space: nowrap;
|
|
107
|
-
|
|
108
|
-
.ol-map-popup-footer-item-icon {
|
|
109
|
-
font-size: 20px;
|
|
110
|
-
margin-right: 8px;
|
|
111
|
-
color: #007FF9;
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
&::before {
|
|
115
|
-
content: "";
|
|
116
|
-
position: absolute;
|
|
117
|
-
right: 0px;
|
|
118
|
-
width: 1px;
|
|
119
|
-
height: 14px;
|
|
120
|
-
background: #007FF9;
|
|
121
|
-
opacity: 0.5;
|
|
122
|
-
}
|
|
123
|
-
|
|
124
|
-
&:last-child::before {
|
|
125
|
-
display: none;
|
|
126
|
-
}
|
|
127
|
-
}
|
|
128
|
-
}
|
|
1
|
+
.ol-map-popup {
|
|
2
|
+
--popup-width: 250px;
|
|
3
|
+
|
|
4
|
+
position: absolute;
|
|
5
|
+
border: 1px solid #cccccc;
|
|
6
|
+
bottom: 12px;
|
|
7
|
+
left: 0;
|
|
8
|
+
transform: translateX(-50%);
|
|
9
|
+
min-width: 250px;
|
|
10
|
+
background: #FFFFFF;
|
|
11
|
+
box-shadow: 0px 0px 10px 0px rgba(0,0,0,0.3);
|
|
12
|
+
border-radius: 10px;
|
|
13
|
+
opacity: 1;
|
|
14
|
+
width: var(--popup-width);
|
|
15
|
+
|
|
16
|
+
&-close {
|
|
17
|
+
text-decoration: none;
|
|
18
|
+
position: absolute;
|
|
19
|
+
top: 12px;
|
|
20
|
+
right: 8px;
|
|
21
|
+
z-index: 9;
|
|
22
|
+
cursor: pointer;
|
|
23
|
+
color: #1890FF;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
&::after,
|
|
27
|
+
&::before {
|
|
28
|
+
top: 100%;
|
|
29
|
+
border: solid transparent;
|
|
30
|
+
content: ' ';
|
|
31
|
+
height: 0;
|
|
32
|
+
width: 0;
|
|
33
|
+
position: absolute;
|
|
34
|
+
pointer-events: none;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
&::after {
|
|
38
|
+
border-top-color: white;
|
|
39
|
+
border-width: 5px;
|
|
40
|
+
left: 50%;
|
|
41
|
+
transform: translateX(calc(-50% - 10px));
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
&::before {
|
|
45
|
+
border-top-color: #cccccc;
|
|
46
|
+
border-width: 5px;
|
|
47
|
+
left: 50%;
|
|
48
|
+
transform: translateX(calc(-50% - 11px));
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.ol-map-popup-title {
|
|
53
|
+
font-size: 16px;
|
|
54
|
+
color: #262626;
|
|
55
|
+
font-weight: bold;
|
|
56
|
+
padding: 6px 2px 4px 12px;
|
|
57
|
+
max-width: calc(~"100% - 30px");
|
|
58
|
+
white-space: nowrap;
|
|
59
|
+
text-overflow: ellipsis;
|
|
60
|
+
overflow: hidden;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
.ol-map-popup-noTitle {
|
|
64
|
+
padding: 0;
|
|
65
|
+
border-bottom: 0 !important;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
.ol-map-popup-content {
|
|
69
|
+
padding: 10px 12px;
|
|
70
|
+
max-height: 200px;
|
|
71
|
+
min-width: 250px;
|
|
72
|
+
overflow-y: auto;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
.ol-map-popup-content-item {
|
|
76
|
+
display: flex;
|
|
77
|
+
align-items: center;
|
|
78
|
+
font-size: 14px;
|
|
79
|
+
|
|
80
|
+
&-label {
|
|
81
|
+
color: #5E6169;
|
|
82
|
+
white-space: nowrap;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
&-value{
|
|
86
|
+
color: #222222;
|
|
87
|
+
white-space: nowrap;
|
|
88
|
+
text-overflow: ellipsis;
|
|
89
|
+
overflow: hidden;
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
.ol-map-popup-footer {
|
|
94
|
+
border-top: 1px solid #E8E8E8;
|
|
95
|
+
padding: 4px 0;
|
|
96
|
+
display: flex;
|
|
97
|
+
align-items: center;
|
|
98
|
+
color: #1890FF;
|
|
99
|
+
|
|
100
|
+
.ol-map-popup-footer-item {
|
|
101
|
+
display: flex;
|
|
102
|
+
align-items: center;
|
|
103
|
+
padding: 0 14px;
|
|
104
|
+
position: relative;
|
|
105
|
+
cursor: pointer;
|
|
106
|
+
white-space: nowrap;
|
|
107
|
+
|
|
108
|
+
.ol-map-popup-footer-item-icon {
|
|
109
|
+
font-size: 20px;
|
|
110
|
+
margin-right: 8px;
|
|
111
|
+
color: #007FF9;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
&::before {
|
|
115
|
+
content: "";
|
|
116
|
+
position: absolute;
|
|
117
|
+
right: 0px;
|
|
118
|
+
width: 1px;
|
|
119
|
+
height: 14px;
|
|
120
|
+
background: #007FF9;
|
|
121
|
+
opacity: 0.5;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
&:last-child::before {
|
|
125
|
+
display: none;
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
}
|
package/lib/provider/index.js
CHANGED
|
@@ -6,9 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports["default"] = exports.Context = void 0;
|
|
7
7
|
var _react = _interopRequireDefault(require("react"));
|
|
8
8
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
9
|
-
var Context = /*#__PURE__*/_react["default"].createContext({});
|
|
10
|
-
exports.Context = Context;
|
|
9
|
+
var Context = exports.Context = /*#__PURE__*/_react["default"].createContext({});
|
|
11
10
|
var Provider = Context.Provider;
|
|
12
|
-
var _default = Provider;
|
|
13
|
-
exports["default"] = _default;
|
|
11
|
+
var _default = exports["default"] = Provider;
|
|
14
12
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["_react","_interopRequireDefault","require","obj","__esModule","Context","
|
|
1
|
+
{"version":3,"file":"index.js","names":["_react","_interopRequireDefault","require","obj","__esModule","Context","exports","React","createContext","Provider","_default"],"sources":["provider/index.js"],"sourcesContent":["import React from 'react';\r\nconst Context = React.createContext({});\r\nconst Provider = Context.Provider;\r\nexport { Context };\r\nexport default Provider;\r\n"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AAA0B,SAAAD,uBAAAE,GAAA,WAAAA,GAAA,IAAAA,GAAA,CAAAC,UAAA,GAAAD,GAAA,gBAAAA,GAAA;AAC1B,IAAME,OAAO,GAAAC,OAAA,CAAAD,OAAA,gBAAGE,iBAAK,CAACC,aAAa,CAAC,CAAC,CAAC,CAAC;AACvC,IAAMC,QAAQ,GAAGJ,OAAO,CAACI,QAAQ;AAAC,IAAAC,QAAA,GAAAJ,OAAA,cAEnBG,QAAQ","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"css.js","names":[],"sources":["provider/style/index.js"],"sourcesContent":[""],"mappings":""}
|
|
1
|
+
{"version":3,"file":"css.js","names":[],"sources":["provider/style/index.js"],"sourcesContent":[""],"mappings":"","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":[],"sources":["provider/style/index.js"],"sourcesContent":[""],"mappings":""}
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["provider/style/index.js"],"sourcesContent":[""],"mappings":"","ignoreList":[]}
|
package/lib/renderer/Fill.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
function _typeof(
|
|
3
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
4
4
|
Object.defineProperty(exports, "__esModule", {
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
@@ -10,19 +10,17 @@ var _transformRgb = _interopRequireDefault(require("./transformRgb"));
|
|
|
10
10
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
11
11
|
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); } }
|
|
12
12
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
13
|
-
function _toPropertyKey(
|
|
14
|
-
function _toPrimitive(
|
|
13
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
14
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
15
15
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
16
|
-
function
|
|
17
|
-
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
18
|
-
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); }; }
|
|
16
|
+
function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
19
17
|
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); }
|
|
20
18
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
21
|
-
function _isNativeReflectConstruct() {
|
|
19
|
+
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
22
20
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
21
|
+
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); }
|
|
22
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
23
|
+
var _default = exports["default"] = /*#__PURE__*/function (_Fill) {
|
|
26
24
|
function _default(options) {
|
|
27
25
|
_classCallCheck(this, _default);
|
|
28
26
|
var color = options.color,
|
|
@@ -31,9 +29,9 @@ var _default = /*#__PURE__*/function (_Fill) {
|
|
|
31
29
|
if (color && color.indexOf('#') !== -1) {
|
|
32
30
|
options.color = (0, _transformRgb["default"])(color, opacity);
|
|
33
31
|
}
|
|
34
|
-
return
|
|
32
|
+
return _callSuper(this, _default, [options]);
|
|
35
33
|
}
|
|
34
|
+
_inherits(_default, _Fill);
|
|
36
35
|
return _createClass(_default);
|
|
37
36
|
}(_style.Fill);
|
|
38
|
-
exports["default"] = _default;
|
|
39
37
|
//# sourceMappingURL=Fill.js.map
|
package/lib/renderer/Fill.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Fill.js","names":["_style","require","_transformRgb","_interopRequireDefault","obj","__esModule","_defineProperties","target","props","i","length","descriptor","enumerable","configurable","writable","Object","defineProperty","_toPropertyKey","key","_createClass","Constructor","protoProps","staticProps","prototype","
|
|
1
|
+
{"version":3,"file":"Fill.js","names":["_style","require","_transformRgb","_interopRequireDefault","obj","__esModule","_defineProperties","target","props","i","length","descriptor","enumerable","configurable","writable","Object","defineProperty","_toPropertyKey","key","_createClass","Constructor","protoProps","staticProps","prototype","t","_toPrimitive","_typeof","r","e","Symbol","toPrimitive","call","TypeError","String","Number","_classCallCheck","instance","_callSuper","o","_getPrototypeOf","_possibleConstructorReturn","_isNativeReflectConstruct","Reflect","construct","constructor","apply","self","_assertThisInitialized","ReferenceError","Boolean","valueOf","setPrototypeOf","getPrototypeOf","bind","__proto__","_inherits","subClass","superClass","create","value","_setPrototypeOf","p","_default","exports","_Fill","options","color","_options$opacity","opacity","indexOf","transformRgb","Fill"],"sources":["renderer/Fill.js"],"sourcesContent":["import { Fill } from 'ol/style';\r\nimport transformRgb from './transformRgb';\r\n\r\nexport default class extends Fill {\r\n constructor(options) {\r\n let { color, opacity = 1 } = options;\r\n\r\n if (color && color.indexOf('#') !== -1) {\r\n options.color = transformRgb(color, opacity);\r\n }\r\n\r\n super(options);\r\n }\r\n}\r\n"],"mappings":";;;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AACA,IAAAC,aAAA,GAAAC,sBAAA,CAAAF,OAAA;AAA0C,SAAAE,uBAAAC,GAAA,WAAAA,GAAA,IAAAA,GAAA,CAAAC,UAAA,GAAAD,GAAA,gBAAAA,GAAA;AAAA,SAAAE,kBAAAC,MAAA,EAAAC,KAAA,aAAAC,CAAA,MAAAA,CAAA,GAAAD,KAAA,CAAAE,MAAA,EAAAD,CAAA,UAAAE,UAAA,GAAAH,KAAA,CAAAC,CAAA,GAAAE,UAAA,CAAAC,UAAA,GAAAD,UAAA,CAAAC,UAAA,WAAAD,UAAA,CAAAE,YAAA,wBAAAF,UAAA,EAAAA,UAAA,CAAAG,QAAA,SAAAC,MAAA,CAAAC,cAAA,CAAAT,MAAA,EAAAU,cAAA,CAAAN,UAAA,CAAAO,GAAA,GAAAP,UAAA;AAAA,SAAAQ,aAAAC,WAAA,EAAAC,UAAA,EAAAC,WAAA,QAAAD,UAAA,EAAAf,iBAAA,CAAAc,WAAA,CAAAG,SAAA,EAAAF,UAAA,OAAAC,WAAA,EAAAhB,iBAAA,CAAAc,WAAA,EAAAE,WAAA,GAAAP,MAAA,CAAAC,cAAA,CAAAI,WAAA,iBAAAN,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AC,CAAC,EAAE;MACpCJ,OAAO,CAACC,KAAK,GAAG,IAAAI,wBAAY,EAACJ,KAAK,EAAEE,OAAO,CAAC;IAChD;IAAC,OAAA/B,UAAA,OAAAyB,QAAA,GAEKG,OAAO;EACjB;EAACV,SAAA,CAAAO,QAAA,EAAAE,KAAA;EAAA,OAAA7C,YAAA,CAAA2C,QAAA;AAAA,EATwBS,WAAI","ignoreList":[]}
|
package/lib/renderer/Stroke.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
function _typeof(
|
|
3
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
4
4
|
Object.defineProperty(exports, "__esModule", {
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
@@ -10,19 +10,17 @@ var _transformRgb = _interopRequireDefault(require("./transformRgb"));
|
|
|
10
10
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
11
11
|
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); } }
|
|
12
12
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
13
|
-
function _toPropertyKey(
|
|
14
|
-
function _toPrimitive(
|
|
13
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
14
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
15
15
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
16
|
-
function
|
|
17
|
-
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
18
|
-
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); }; }
|
|
16
|
+
function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
19
17
|
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); }
|
|
20
18
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
21
|
-
function _isNativeReflectConstruct() {
|
|
19
|
+
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
22
20
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
21
|
+
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); }
|
|
22
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
23
|
+
var _default = exports["default"] = /*#__PURE__*/function (_Stroke) {
|
|
26
24
|
function _default(options) {
|
|
27
25
|
_classCallCheck(this, _default);
|
|
28
26
|
var color = options.color,
|
|
@@ -33,9 +31,9 @@ var _default = /*#__PURE__*/function (_Stroke) {
|
|
|
33
31
|
if (color && color.indexOf('#') !== -1) {
|
|
34
32
|
options.color = (0, _transformRgb["default"])(color, opacity);
|
|
35
33
|
}
|
|
36
|
-
return
|
|
34
|
+
return _callSuper(this, _default, [options]);
|
|
37
35
|
}
|
|
36
|
+
_inherits(_default, _Stroke);
|
|
38
37
|
return _createClass(_default);
|
|
39
38
|
}(_style.Stroke);
|
|
40
|
-
exports["default"] = _default;
|
|
41
39
|
//# sourceMappingURL=Stroke.js.map
|