@vtx/map 1.2.30 → 6.0.0-beta.1
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 +44 -44
- package/lib/VtxMap/AMap/AMap.js +359 -355
- package/lib/VtxMap/BMap/Map.js +331 -330
- package/lib/VtxMap/BMap/Map1.js +1712 -0
- package/lib/VtxMap/GMap/Map.js +432 -427
- package/lib/VtxMap/Map.js +31 -27
- package/lib/VtxMap/MapToolFunction.js +6 -7
- package/lib/VtxMap/OMap/Map.js +410 -405
- package/lib/VtxMap/OMap/Map.less +70 -70
- package/lib/VtxMap/OlMap/Map.js +450 -440
- package/lib/VtxMap/OlMap/Map.less +230 -230
- package/lib/VtxMap/TMap/TMap.js +321 -318
- package/lib/VtxMap/index.js +10 -11
- package/lib/VtxMap/mapPlayer.js +15 -16
- package/lib/VtxMap/optimizingPointMap.js +35 -33
- package/lib/VtxMap/style/index.js +1 -2
- package/lib/VtxMap/zoomMap.js +24 -23
- package/lib/VtxModal/VtxModal.js +94 -82
- package/lib/VtxModal/VtxModal.less +83 -52
- package/lib/VtxModal/draggableModal.js +35 -33
- package/lib/VtxModal/index.js +6 -7
- package/lib/VtxModal/style/index.js +1 -15
- package/lib/VtxSearchCheckMap/VtxSearchCheckMap.js +265 -244
- package/lib/VtxSearchCheckMap/VtxSearchCheckMap.less +69 -43
- package/lib/VtxSearchCheckMap/index.js +4 -9
- package/lib/VtxSearchCheckMap/mapping.js +1 -2
- package/lib/VtxSearchCheckMap/style/index.js +5 -11
- package/lib/VtxSearchMap/VtxSearchMap.js +326 -288
- package/lib/VtxSearchMap/VtxSearchMap.less +74 -47
- package/lib/VtxSearchMap/VtxSearchMapAntd3.less +1 -1
- package/lib/VtxSearchMap/index.js +4 -9
- package/lib/VtxSearchMap/mapping.js +1 -2
- package/lib/VtxSearchMap/style/index.js +1 -28
- package/lib/default.js +44 -24
- package/lib/index.js +30 -31
- package/lib/utils/util.js +3 -4
- package/package.json +19 -27
- package/lib/VtxMap/AMap/AMap.css +0 -27
- package/lib/VtxMap/AMap/AMap.js.map +0 -1
- package/lib/VtxMap/BMap/Map.css +0 -26
- package/lib/VtxMap/BMap/Map.js.map +0 -1
- package/lib/VtxMap/GMap/Map.css +0 -88
- package/lib/VtxMap/GMap/Map.js.map +0 -1
- package/lib/VtxMap/Map.css +0 -7
- package/lib/VtxMap/Map.js.map +0 -1
- package/lib/VtxMap/MapToolFunction.js.map +0 -1
- package/lib/VtxMap/OMap/Map.css +0 -76
- package/lib/VtxMap/OMap/Map.js.map +0 -1
- package/lib/VtxMap/OlMap/Map.css +0 -229
- package/lib/VtxMap/OlMap/Map.js.map +0 -1
- package/lib/VtxMap/TMap/TMap.css +0 -31
- package/lib/VtxMap/TMap/TMap.js.map +0 -1
- package/lib/VtxMap/index.js.map +0 -1
- package/lib/VtxMap/mapPlayer.js.map +0 -1
- package/lib/VtxMap/optimizingPointMap.js.map +0 -1
- package/lib/VtxMap/style/css.js +0 -10
- package/lib/VtxMap/style/css.js.map +0 -1
- package/lib/VtxMap/style/index.js.map +0 -1
- package/lib/VtxMap/zoomMap.js.map +0 -1
- package/lib/VtxModal/VtxModal.css +0 -62
- package/lib/VtxModal/VtxModal.js.map +0 -1
- package/lib/VtxModal/VtxModalAntd3.css +0 -62
- package/lib/VtxModal/VtxModalAntd3.less +0 -67
- package/lib/VtxModal/draggableModal.js.map +0 -1
- package/lib/VtxModal/index.js.map +0 -1
- package/lib/VtxModal/style/css.js +0 -15
- package/lib/VtxModal/style/css.js.map +0 -1
- package/lib/VtxModal/style/index.js.map +0 -1
- package/lib/VtxSearchCheckMap/VtxSearchCheckMap.css +0 -182
- package/lib/VtxSearchCheckMap/VtxSearchCheckMap.js.map +0 -1
- package/lib/VtxSearchCheckMap/VtxSearchCheckMapAntd3.css +0 -0
- package/lib/VtxSearchCheckMap/VtxSearchCheckMapAntd3.less +0 -1
- package/lib/VtxSearchCheckMap/index.js.map +0 -1
- package/lib/VtxSearchCheckMap/mapping.js.map +0 -1
- package/lib/VtxSearchCheckMap/style/css.js +0 -28
- package/lib/VtxSearchCheckMap/style/css.js.map +0 -1
- package/lib/VtxSearchCheckMap/style/index.js.map +0 -1
- package/lib/VtxSearchMap/VtxSearchMap.css +0 -202
- package/lib/VtxSearchMap/VtxSearchMap.js.map +0 -1
- package/lib/VtxSearchMap/VtxSearchMapAntd3.css +0 -0
- package/lib/VtxSearchMap/index.js.map +0 -1
- package/lib/VtxSearchMap/mapping.js.map +0 -1
- package/lib/VtxSearchMap/style/css.js +0 -28
- package/lib/VtxSearchMap/style/css.js.map +0 -1
- package/lib/VtxSearchMap/style/index.js.map +0 -1
- package/lib/default.js.map +0 -1
- package/lib/index.js.map +0 -1
- package/lib/utils/util.js.map +0 -1
|
@@ -4,42 +4,39 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
|
|
|
4
4
|
Object.defineProperty(exports, "__esModule", {
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
|
-
exports
|
|
7
|
+
exports.default = void 0;
|
|
8
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
|
-
var
|
|
10
|
-
var _input = _interopRequireDefault(require("antd/lib/input"));
|
|
11
|
-
var _message = _interopRequireDefault(require("antd/lib/message"));
|
|
12
|
-
var _checkbox = _interopRequireDefault(require("antd/lib/checkbox"));
|
|
13
|
-
var _radio = _interopRequireDefault(require("antd/lib/radio"));
|
|
14
|
-
var _popover = _interopRequireDefault(require("antd/lib/popover"));
|
|
9
|
+
var _antd = require("antd");
|
|
15
10
|
var _VtxModal = require("../VtxModal");
|
|
16
11
|
var _VtxMap = require("../VtxMap");
|
|
17
12
|
var _default2 = _interopRequireWildcard(require("../default"));
|
|
18
13
|
var _mapping = require("./mapping");
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
function
|
|
14
|
+
require("./VtxSearchCheckMap.less");
|
|
15
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
16
|
+
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); }
|
|
17
|
+
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 && Object.prototype.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; }
|
|
18
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
22
19
|
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; }
|
|
23
20
|
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; }
|
|
24
|
-
function _classCallCheck(
|
|
25
|
-
function _defineProperties(
|
|
26
|
-
function _createClass(
|
|
27
|
-
function
|
|
28
|
-
function
|
|
29
|
-
function
|
|
30
|
-
function
|
|
31
|
-
function
|
|
32
|
-
function
|
|
33
|
-
function
|
|
34
|
-
function _defineProperty(
|
|
35
|
-
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i
|
|
21
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
22
|
+
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); } }
|
|
23
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
24
|
+
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); }
|
|
25
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
26
|
+
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); }; }
|
|
27
|
+
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); }
|
|
28
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
29
|
+
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
30
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
31
|
+
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; }
|
|
32
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
36
33
|
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); }
|
|
37
|
-
function _toConsumableArray(
|
|
34
|
+
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
|
|
38
35
|
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."); }
|
|
39
|
-
function _unsupportedIterableToArray(
|
|
40
|
-
function _iterableToArray(
|
|
41
|
-
function _arrayWithoutHoles(
|
|
42
|
-
function _arrayLikeToArray(
|
|
36
|
+
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); }
|
|
37
|
+
function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
|
|
38
|
+
function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
|
|
39
|
+
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; } //公共地址配置
|
|
43
40
|
var styles = {
|
|
44
41
|
searchModal: "vtx-ui-searchmap-searchmodal",
|
|
45
42
|
searchMap: "vtx-ui-searchmap-searchmap",
|
|
@@ -68,7 +65,7 @@ var styles = {
|
|
|
68
65
|
// duration: 5,
|
|
69
66
|
// });
|
|
70
67
|
var warning = function warning() {
|
|
71
|
-
|
|
68
|
+
_antd.message.warning("位置点查询失败,请缩小比例尺或切换关键字后再重新查询!");
|
|
72
69
|
};
|
|
73
70
|
function distinct(ary) {
|
|
74
71
|
var pts = _toConsumableArray(ary);
|
|
@@ -80,17 +77,19 @@ function distinct(ary) {
|
|
|
80
77
|
}
|
|
81
78
|
}
|
|
82
79
|
var getIcon = function getIcon(type) {
|
|
83
|
-
return
|
|
80
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_default2.VtxMapIcon, {
|
|
84
81
|
type: "icon-".concat(_mapping.iconMapping[type])
|
|
85
|
-
})
|
|
82
|
+
});
|
|
86
83
|
};
|
|
87
84
|
var VtxSearchCheckMap = /*#__PURE__*/function (_React$Component) {
|
|
85
|
+
_inherits(VtxSearchCheckMap, _React$Component);
|
|
86
|
+
var _super = _createSuper(VtxSearchCheckMap);
|
|
88
87
|
function VtxSearchCheckMap(props) {
|
|
89
88
|
var _this;
|
|
90
89
|
_classCallCheck(this, VtxSearchCheckMap);
|
|
91
|
-
_this =
|
|
90
|
+
_this = _super.call(this, props);
|
|
92
91
|
// 绘制多个图元时返回参数
|
|
93
|
-
_defineProperty(_this, "getMultiRes", function (graphicType) {
|
|
92
|
+
_defineProperty(_assertThisInitialized(_this), "getMultiRes", function (graphicType) {
|
|
94
93
|
var resData = [];
|
|
95
94
|
var _this$state = _this.state,
|
|
96
95
|
graphicValue = _this$state.graphicValue,
|
|
@@ -172,8 +171,7 @@ var VtxSearchCheckMap = /*#__PURE__*/function (_React$Component) {
|
|
|
172
171
|
};
|
|
173
172
|
return _this;
|
|
174
173
|
}
|
|
175
|
-
|
|
176
|
-
return _createClass(VtxSearchCheckMap, [{
|
|
174
|
+
_createClass(VtxSearchCheckMap, [{
|
|
177
175
|
key: "callback",
|
|
178
176
|
value:
|
|
179
177
|
//经纬度回调
|
|
@@ -381,16 +379,16 @@ var VtxSearchCheckMap = /*#__PURE__*/function (_React$Component) {
|
|
|
381
379
|
var lnglats = (_this$state$searchVal = this.state.searchValue) === null || _this$state$searchVal === void 0 ? void 0 : _this$state$searchVal.split(",");
|
|
382
380
|
// 英文逗号分割,若长度为不为2,表示数据格式错误
|
|
383
381
|
if ((lnglats === null || lnglats === void 0 ? void 0 : lnglats.length) !== 2) {
|
|
384
|
-
|
|
382
|
+
_antd.message.warning("请按正确的经纬度格式输入,经度在前,用英文逗号隔开!");
|
|
385
383
|
return;
|
|
386
384
|
}
|
|
387
385
|
// 经纬度分别正则校验
|
|
388
386
|
if (!new RegExp(/^[\-\+]?(0(\.\d{1,15})?|([1-9](\d)?)(\.\d{1,15})?|1[0-7]\d{1}(\.\d{1,15})?|180\.0{1,15})$/).test(lnglats[0])) {
|
|
389
|
-
|
|
387
|
+
_antd.message.warning("请输入正确格式经度!");
|
|
390
388
|
return;
|
|
391
389
|
}
|
|
392
390
|
if (!new RegExp(/^[\-\+]?((0|([1-8]\d?))(\.\d{1,15})?|90(\.0{1,15})?)$/).test(lnglats[1])) {
|
|
393
|
-
|
|
391
|
+
_antd.message.warning("请输入正确格式纬度!");
|
|
394
392
|
return;
|
|
395
393
|
}
|
|
396
394
|
// 正确的经纬度作为地图中心点
|
|
@@ -512,7 +510,7 @@ var VtxSearchCheckMap = /*#__PURE__*/function (_React$Component) {
|
|
|
512
510
|
key: "closeModal",
|
|
513
511
|
value: function closeModal(e) {
|
|
514
512
|
if (this.isDrawStatus && this.isClickMap) {
|
|
515
|
-
|
|
513
|
+
_antd.message.warning("请双击结束图元编辑");
|
|
516
514
|
} else {
|
|
517
515
|
if ("closeModal" in this.props) {
|
|
518
516
|
this.props.closeModal();
|
|
@@ -564,10 +562,10 @@ var VtxSearchCheckMap = /*#__PURE__*/function (_React$Component) {
|
|
|
564
562
|
value: function editGraphic() {
|
|
565
563
|
var _this6 = this;
|
|
566
564
|
if (this.isDrawStatus && this.isClickMap) {
|
|
567
|
-
|
|
565
|
+
_antd.message.warning("请双击结束图元编辑");
|
|
568
566
|
return;
|
|
569
567
|
}
|
|
570
|
-
|
|
568
|
+
_antd.message.info("请点击图元进行编辑");
|
|
571
569
|
this.clickable = true;
|
|
572
570
|
this.isDrawStatus = false;
|
|
573
571
|
this.setState({
|
|
@@ -791,7 +789,7 @@ var VtxSearchCheckMap = /*#__PURE__*/function (_React$Component) {
|
|
|
791
789
|
mapCircles = [].concat(_toConsumableArray(mapCircles), _toConsumableArray(otherGraph.circle || []));
|
|
792
790
|
}
|
|
793
791
|
}
|
|
794
|
-
var mapTypeContent = /*#__PURE__*/
|
|
792
|
+
var mapTypeContent = /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
795
793
|
style: {
|
|
796
794
|
width: '170px',
|
|
797
795
|
height: '80px',
|
|
@@ -799,39 +797,42 @@ var VtxSearchCheckMap = /*#__PURE__*/function (_React$Component) {
|
|
|
799
797
|
flexDirection: 'row',
|
|
800
798
|
justifyContent: 'space-between',
|
|
801
799
|
position: 'relative'
|
|
802
|
-
}
|
|
803
|
-
}, /*#__PURE__*/_react["default"].createElement("img", {
|
|
804
|
-
style: currentMap == 'normal' ? {
|
|
805
|
-
width: '20px',
|
|
806
|
-
position: 'absolute',
|
|
807
|
-
top: '5px',
|
|
808
|
-
left: '55px'
|
|
809
|
-
} : {
|
|
810
|
-
width: '20px',
|
|
811
|
-
position: 'absolute',
|
|
812
|
-
top: '5px',
|
|
813
|
-
right: '5px'
|
|
814
800
|
},
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
801
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("img", {
|
|
802
|
+
style: currentMap == 'normal' ? {
|
|
803
|
+
width: '20px',
|
|
804
|
+
position: 'absolute',
|
|
805
|
+
top: '5px',
|
|
806
|
+
left: '55px'
|
|
807
|
+
} : {
|
|
808
|
+
width: '20px',
|
|
809
|
+
position: 'absolute',
|
|
810
|
+
top: '5px',
|
|
811
|
+
right: '5px'
|
|
812
|
+
},
|
|
813
|
+
src: "".concat(_default2.default.mapServerURL, "/images/checked.png")
|
|
814
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
815
|
+
onClick: function onClick() {
|
|
816
|
+
return t.changeType('normal');
|
|
817
|
+
},
|
|
818
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("img", {
|
|
819
|
+
src: "".concat(_default2.default.mapServerURL, "/images/sl.png")
|
|
820
|
+
})
|
|
821
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
822
|
+
onClick: function onClick() {
|
|
823
|
+
return t.changeType('wx');
|
|
824
|
+
},
|
|
825
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("img", {
|
|
826
|
+
src: "".concat(_default2.default.mapServerURL, "/images/wx.png")
|
|
827
|
+
})
|
|
828
|
+
})]
|
|
829
|
+
});
|
|
830
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_VtxModal.VtxModal, {
|
|
830
831
|
title: this.state.graphicType == "point" ? "定位" : "绘制",
|
|
831
832
|
style: {
|
|
832
833
|
top: 50
|
|
833
834
|
},
|
|
834
|
-
|
|
835
|
+
open: modal1Visible,
|
|
835
836
|
maximize: true,
|
|
836
837
|
isNotMoving: true,
|
|
837
838
|
wrapClassName: styles.searchModal,
|
|
@@ -840,177 +841,198 @@ var VtxSearchCheckMap = /*#__PURE__*/function (_React$Component) {
|
|
|
840
841
|
},
|
|
841
842
|
maskClosable: false,
|
|
842
843
|
onCancel: this.closeModal.bind(this),
|
|
843
|
-
footer: /*#__PURE__*/
|
|
844
|
-
className: styles.bottom
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
844
|
+
footer: /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
845
|
+
className: styles.bottom,
|
|
846
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_antd.Button, {
|
|
847
|
+
type: "primary",
|
|
848
|
+
onClick: function onClick() {
|
|
849
|
+
_this7.callback();
|
|
850
|
+
},
|
|
851
|
+
icon: getIcon("check"),
|
|
852
|
+
children: "\u786E\u5B9A"
|
|
853
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_antd.Button, {
|
|
854
|
+
onClick: this.closeModal.bind(this),
|
|
855
|
+
icon: getIcon("close"),
|
|
856
|
+
children: "\u5173\u95ED"
|
|
857
|
+
})]
|
|
858
|
+
}),
|
|
859
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
860
|
+
className: styles.searchMap,
|
|
861
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
862
|
+
className: styles.top,
|
|
863
|
+
children: [mapType == "gmap" || mapType == "olmap" ? "" : [!checkValue ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_antd.Input, _objectSpread({}, InputProps), "1") : /*#__PURE__*/(0, _jsxRuntime.jsx)(_antd.Input, _objectSpread({}, checkInputProps), "1"), this.state.graphicType == "point" ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_antd.Radio, {
|
|
864
|
+
onClick: this.counterCheck.bind(this),
|
|
865
|
+
checked: checkValue,
|
|
866
|
+
children: "\u5750\u6807\u53CD\u67E5"
|
|
867
|
+
}) : null, /*#__PURE__*/(0, _jsxRuntime.jsx)(_antd.Button, {
|
|
868
|
+
type: "primary",
|
|
869
|
+
onClick: this.searchList.bind(this),
|
|
870
|
+
icon: getIcon("search"),
|
|
871
|
+
children: "\u67E5\u8BE2"
|
|
872
|
+
}, "2"), /*#__PURE__*/(0, _jsxRuntime.jsx)(_antd.Button, {
|
|
873
|
+
onClick: this.clearList.bind(this),
|
|
874
|
+
icon: getIcon("close"),
|
|
875
|
+
children: "\u6E05\u7A7A"
|
|
876
|
+
}, "3")], this.state.graphicType == "point" ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_antd.Button, {
|
|
877
|
+
onClick: this.correction.bind(this),
|
|
878
|
+
icon: getIcon("environment"),
|
|
879
|
+
children: "\u6821\u6B63"
|
|
880
|
+
}) : null, this.state.graphicType != "point" ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_antd.Button, {
|
|
881
|
+
disabled: this.isDrawStatus,
|
|
882
|
+
onClick: function onClick() {
|
|
883
|
+
_this7.isDrawStatus = true;
|
|
884
|
+
if (_this7.multiDraw) {
|
|
885
|
+
_this7.clickable = false;
|
|
886
|
+
graphicValue === null || graphicValue === void 0 || graphicValue.forEach(function (item) {
|
|
887
|
+
return t.map.removeGraphic(item.id, "draw");
|
|
888
|
+
});
|
|
889
|
+
editGraphic === null || editGraphic === void 0 || editGraphic.forEach(function (item) {
|
|
890
|
+
return t.map.removeGraphic(item.id, "draw");
|
|
891
|
+
});
|
|
892
|
+
_this7.setState({
|
|
893
|
+
isDraw: false,
|
|
894
|
+
isCloseDraw: true,
|
|
895
|
+
isEndEdit: false,
|
|
896
|
+
graphicValue: null,
|
|
897
|
+
editGraphic: null
|
|
898
|
+
}, function () {
|
|
899
|
+
_this7.setState({
|
|
900
|
+
isDraw: true,
|
|
901
|
+
isCloseDraw: false,
|
|
902
|
+
isEndEdit: true
|
|
903
|
+
});
|
|
904
|
+
});
|
|
905
|
+
} else {
|
|
906
|
+
_this7.setState({
|
|
907
|
+
isDraw: true,
|
|
908
|
+
graphicValue: null,
|
|
909
|
+
editGraphic: null,
|
|
910
|
+
isEndEdit: true
|
|
911
|
+
}, function () {
|
|
912
|
+
t.map.removeGraphic("drawnGraph", "draw");
|
|
913
|
+
t.setState({
|
|
914
|
+
isEndEdit: false
|
|
915
|
+
});
|
|
916
|
+
});
|
|
917
|
+
}
|
|
918
|
+
_this7.callback("editDraw");
|
|
919
|
+
},
|
|
920
|
+
icon: getIcon("edit"),
|
|
921
|
+
children: "\u91CD\u65B0\u7ED8\u5236"
|
|
922
|
+
}) : null, this.multiDraw && /*#__PURE__*/(0, _jsxRuntime.jsx)(_antd.Button, {
|
|
923
|
+
onClick: this.continueDraw.bind(this),
|
|
924
|
+
icon: getIcon("edit"),
|
|
925
|
+
children: "\u7EE7\u7EED\u7ED8\u5236"
|
|
926
|
+
}), this.multiDraw && /*#__PURE__*/(0, _jsxRuntime.jsx)(_antd.Button, {
|
|
927
|
+
onClick: this.editGraphic.bind(this),
|
|
928
|
+
icon: getIcon("edit"),
|
|
929
|
+
children: "\u7F16\u8F91\u56FE\u5143"
|
|
930
|
+
}), mapType == "gmap" || mapType == "olmap" ? "" : /*#__PURE__*/(0, _jsxRuntime.jsx)(_antd.Button, {
|
|
931
|
+
onClick: this.setFitView.bind(this),
|
|
932
|
+
icon: getIcon("sync"),
|
|
933
|
+
children: "\u8FD4\u56DE\u5168\u5C40\u5730\u56FE"
|
|
934
|
+
}), isChangeMapType && (mapType == 'amap' || mapType == 'bmap' || mapType == 'tmap') && /*#__PURE__*/(0, _jsxRuntime.jsx)(_antd.Popover, {
|
|
935
|
+
overlayClassName: styles.mapTypePopover,
|
|
936
|
+
content: mapTypeContent,
|
|
937
|
+
trigger: "click",
|
|
938
|
+
placement: "bottom",
|
|
939
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
940
|
+
className: styles.mapTxt,
|
|
941
|
+
children: "\u5207\u6362\u5730\u56FE"
|
|
942
|
+
})
|
|
943
|
+
}), isShowOther ? /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
944
|
+
className: styles.otherModal,
|
|
945
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_antd.Checkbox, {
|
|
946
|
+
checked: isShowOtherGraph,
|
|
947
|
+
onChange: function onChange(e) {
|
|
948
|
+
_this7.setState({
|
|
949
|
+
isShowOtherGraph: e.target.checked
|
|
950
|
+
});
|
|
951
|
+
},
|
|
952
|
+
children: otherText
|
|
953
|
+
})
|
|
954
|
+
}) : ""]
|
|
955
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
956
|
+
className: styles.content,
|
|
957
|
+
style: {
|
|
958
|
+
paddingLeft: mapType == "gmap" || mapType == "olmap" ? "0px" : "25px"
|
|
959
|
+
},
|
|
960
|
+
children: [mapType == "gmap" || mapType == "olmap" ? "" : /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
961
|
+
className: "".concat(styles.content_left, " ").concat(isShowList ? styles.w_l : ""),
|
|
962
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
963
|
+
className: "".concat(isShowList ? styles.show : styles.hidden),
|
|
964
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
965
|
+
className: styles.listTitle,
|
|
966
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
967
|
+
className: styles.title,
|
|
968
|
+
children: "\u67E5\u8BE2\u7ED3\u679C"
|
|
969
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
970
|
+
onClick: function onClick() {
|
|
971
|
+
return _this7.showOrhidden(false);
|
|
972
|
+
},
|
|
973
|
+
className: styles.btn,
|
|
974
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_default2.VtxMapIcon, {
|
|
975
|
+
type: "icon-doubleleft"
|
|
976
|
+
})
|
|
977
|
+
})]
|
|
978
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
979
|
+
className: styles.scrollauto,
|
|
980
|
+
children: listMess.map(function (item, index) {
|
|
981
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
982
|
+
onClick: function onClick() {
|
|
983
|
+
return _this7.chooseAddress(item.id);
|
|
984
|
+
},
|
|
985
|
+
className: "".concat(styles.lists, " ").concat(item.isSelect ? styles.select : ""),
|
|
986
|
+
children: item.title
|
|
987
|
+
}, index);
|
|
988
|
+
})
|
|
989
|
+
})]
|
|
990
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
991
|
+
onClick: function onClick() {
|
|
992
|
+
return _this7.showOrhidden(true);
|
|
993
|
+
},
|
|
994
|
+
className: "".concat(styles.btn, " ").concat(!isShowList ? styles.show : styles.hidden),
|
|
995
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_default2.VtxMapIcon, {
|
|
996
|
+
type: "icon-doubleright"
|
|
997
|
+
})
|
|
998
|
+
})]
|
|
999
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
1000
|
+
className: styles.content_right,
|
|
1001
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_VtxMap.VtxMap, _objectSpread({
|
|
1002
|
+
getMapInstance: function getMapInstance(map) {
|
|
1003
|
+
if (map) _this7.map = map;
|
|
1004
|
+
},
|
|
1005
|
+
mapType: mapType,
|
|
1006
|
+
mapStyle: mapStyle,
|
|
1007
|
+
mapServer: mapServer,
|
|
1008
|
+
wkid: wkid,
|
|
1009
|
+
mapId: t.mapId,
|
|
1010
|
+
setCenter: setCenter,
|
|
1011
|
+
mapCenter: mapCenter,
|
|
1012
|
+
minZoom: minZoom,
|
|
1013
|
+
maxZoom: maxZoom,
|
|
1014
|
+
mapZoomLevel: mapZoomLevel,
|
|
1015
|
+
setZoomLevel: setZoomLevel,
|
|
1016
|
+
mapPoints: mapPoints,
|
|
1017
|
+
mapLines: mapLines,
|
|
1018
|
+
mapPolygons: mapPolygons,
|
|
1019
|
+
mapCircles: mapCircles,
|
|
1020
|
+
mapVisiblePoints: mapVisiblePoints,
|
|
1021
|
+
setVisiblePoints: setVisiblePoints,
|
|
1022
|
+
isDoEdit: isDoEdit,
|
|
1023
|
+
isEndEdit: isEndEdit,
|
|
1024
|
+
editGraphicId: editGraphicId,
|
|
1025
|
+
editGraphicChange: this.editGraphicChange.bind(this),
|
|
1026
|
+
clickGraphic: this.clickGraphic.bind(this),
|
|
1027
|
+
clickMap: function clickMap() {
|
|
1028
|
+
t.isClickMap = true;
|
|
1029
|
+
},
|
|
1030
|
+
olProps: olProps
|
|
1031
|
+
}, drawProps))
|
|
1032
|
+
})]
|
|
1033
|
+
})]
|
|
1034
|
+
})
|
|
1035
|
+
});
|
|
1014
1036
|
}
|
|
1015
1037
|
}, {
|
|
1016
1038
|
key: "initSearchMap",
|
|
@@ -1120,7 +1142,6 @@ var VtxSearchCheckMap = /*#__PURE__*/function (_React$Component) {
|
|
|
1120
1142
|
}
|
|
1121
1143
|
}
|
|
1122
1144
|
}]);
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
//# sourceMappingURL=VtxSearchCheckMap.js.map
|
|
1145
|
+
return VtxSearchCheckMap;
|
|
1146
|
+
}(_react.default.Component);
|
|
1147
|
+
var _default = exports.default = VtxSearchCheckMap;
|