@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.
Files changed (88) hide show
  1. package/README.md +44 -44
  2. package/lib/VtxMap/AMap/AMap.js +359 -355
  3. package/lib/VtxMap/BMap/Map.js +331 -330
  4. package/lib/VtxMap/BMap/Map1.js +1712 -0
  5. package/lib/VtxMap/GMap/Map.js +432 -427
  6. package/lib/VtxMap/Map.js +31 -27
  7. package/lib/VtxMap/MapToolFunction.js +6 -7
  8. package/lib/VtxMap/OMap/Map.js +410 -405
  9. package/lib/VtxMap/OMap/Map.less +70 -70
  10. package/lib/VtxMap/OlMap/Map.js +450 -440
  11. package/lib/VtxMap/OlMap/Map.less +230 -230
  12. package/lib/VtxMap/TMap/TMap.js +321 -318
  13. package/lib/VtxMap/index.js +10 -11
  14. package/lib/VtxMap/mapPlayer.js +15 -16
  15. package/lib/VtxMap/optimizingPointMap.js +35 -33
  16. package/lib/VtxMap/style/index.js +1 -2
  17. package/lib/VtxMap/zoomMap.js +24 -23
  18. package/lib/VtxModal/VtxModal.js +94 -82
  19. package/lib/VtxModal/VtxModal.less +83 -52
  20. package/lib/VtxModal/draggableModal.js +35 -33
  21. package/lib/VtxModal/index.js +6 -7
  22. package/lib/VtxModal/style/index.js +1 -15
  23. package/lib/VtxSearchCheckMap/VtxSearchCheckMap.js +265 -244
  24. package/lib/VtxSearchCheckMap/VtxSearchCheckMap.less +69 -43
  25. package/lib/VtxSearchCheckMap/index.js +4 -9
  26. package/lib/VtxSearchCheckMap/mapping.js +1 -2
  27. package/lib/VtxSearchCheckMap/style/index.js +5 -11
  28. package/lib/VtxSearchMap/VtxSearchMap.js +326 -288
  29. package/lib/VtxSearchMap/VtxSearchMap.less +74 -47
  30. package/lib/VtxSearchMap/VtxSearchMapAntd3.less +1 -1
  31. package/lib/VtxSearchMap/index.js +4 -9
  32. package/lib/VtxSearchMap/mapping.js +1 -2
  33. package/lib/VtxSearchMap/style/index.js +1 -28
  34. package/lib/default.js +44 -24
  35. package/lib/index.js +30 -31
  36. package/lib/utils/util.js +3 -4
  37. package/package.json +19 -27
  38. package/lib/VtxMap/AMap/AMap.css +0 -27
  39. package/lib/VtxMap/AMap/AMap.js.map +0 -1
  40. package/lib/VtxMap/BMap/Map.css +0 -26
  41. package/lib/VtxMap/BMap/Map.js.map +0 -1
  42. package/lib/VtxMap/GMap/Map.css +0 -88
  43. package/lib/VtxMap/GMap/Map.js.map +0 -1
  44. package/lib/VtxMap/Map.css +0 -7
  45. package/lib/VtxMap/Map.js.map +0 -1
  46. package/lib/VtxMap/MapToolFunction.js.map +0 -1
  47. package/lib/VtxMap/OMap/Map.css +0 -76
  48. package/lib/VtxMap/OMap/Map.js.map +0 -1
  49. package/lib/VtxMap/OlMap/Map.css +0 -229
  50. package/lib/VtxMap/OlMap/Map.js.map +0 -1
  51. package/lib/VtxMap/TMap/TMap.css +0 -31
  52. package/lib/VtxMap/TMap/TMap.js.map +0 -1
  53. package/lib/VtxMap/index.js.map +0 -1
  54. package/lib/VtxMap/mapPlayer.js.map +0 -1
  55. package/lib/VtxMap/optimizingPointMap.js.map +0 -1
  56. package/lib/VtxMap/style/css.js +0 -10
  57. package/lib/VtxMap/style/css.js.map +0 -1
  58. package/lib/VtxMap/style/index.js.map +0 -1
  59. package/lib/VtxMap/zoomMap.js.map +0 -1
  60. package/lib/VtxModal/VtxModal.css +0 -62
  61. package/lib/VtxModal/VtxModal.js.map +0 -1
  62. package/lib/VtxModal/VtxModalAntd3.css +0 -62
  63. package/lib/VtxModal/VtxModalAntd3.less +0 -67
  64. package/lib/VtxModal/draggableModal.js.map +0 -1
  65. package/lib/VtxModal/index.js.map +0 -1
  66. package/lib/VtxModal/style/css.js +0 -15
  67. package/lib/VtxModal/style/css.js.map +0 -1
  68. package/lib/VtxModal/style/index.js.map +0 -1
  69. package/lib/VtxSearchCheckMap/VtxSearchCheckMap.css +0 -182
  70. package/lib/VtxSearchCheckMap/VtxSearchCheckMap.js.map +0 -1
  71. package/lib/VtxSearchCheckMap/VtxSearchCheckMapAntd3.css +0 -0
  72. package/lib/VtxSearchCheckMap/VtxSearchCheckMapAntd3.less +0 -1
  73. package/lib/VtxSearchCheckMap/index.js.map +0 -1
  74. package/lib/VtxSearchCheckMap/mapping.js.map +0 -1
  75. package/lib/VtxSearchCheckMap/style/css.js +0 -28
  76. package/lib/VtxSearchCheckMap/style/css.js.map +0 -1
  77. package/lib/VtxSearchCheckMap/style/index.js.map +0 -1
  78. package/lib/VtxSearchMap/VtxSearchMap.css +0 -202
  79. package/lib/VtxSearchMap/VtxSearchMap.js.map +0 -1
  80. package/lib/VtxSearchMap/VtxSearchMapAntd3.css +0 -0
  81. package/lib/VtxSearchMap/index.js.map +0 -1
  82. package/lib/VtxSearchMap/mapping.js.map +0 -1
  83. package/lib/VtxSearchMap/style/css.js +0 -28
  84. package/lib/VtxSearchMap/style/css.js.map +0 -1
  85. package/lib/VtxSearchMap/style/index.js.map +0 -1
  86. package/lib/default.js.map +0 -1
  87. package/lib/index.js.map +0 -1
  88. package/lib/utils/util.js.map +0 -1
@@ -4,47 +4,45 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
4
4
  Object.defineProperty(exports, "__esModule", {
5
5
  value: true
6
6
  });
7
- exports["default"] = void 0;
7
+ exports.default = void 0;
8
8
  var _react = _interopRequireDefault(require("react"));
9
- var _button = _interopRequireDefault(require("antd/lib/button"));
10
- var _input = _interopRequireDefault(require("antd/lib/input"));
11
- var _message = _interopRequireDefault(require("antd/lib/message"));
12
- var _checkbox = _interopRequireDefault(require("antd/lib/checkbox"));
9
+ var _antd = require("antd");
13
10
  var _VtxModal = require("../VtxModal");
14
11
  var _VtxMap = require("../VtxMap");
15
12
  var _default2 = _interopRequireWildcard(require("../default"));
16
13
  var _mapping = require("./mapping");
17
14
  var _util = require("../utils/util");
18
- var _antd = require("antd");
19
15
  var _defaultMarker = _interopRequireDefault(require("../VtxMap/images/defaultMarker.png"));
20
- function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, "default": e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
21
- function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
22
- function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
23
- function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }
16
+ require("./VtxSearchMap.less");
17
+ var _jsxRuntime = require("react/jsx-runtime");
18
+ 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); }
19
+ 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; }
20
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
21
+ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
24
22
  function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
25
- function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
26
- function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
23
+ function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
24
+ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
27
25
  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; }
28
26
  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; }
29
- function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
30
- 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); } }
31
- function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
32
- function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
33
- 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); }
34
- function _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return e; }
35
- function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
36
- function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); }
37
- 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); }
38
- function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }
39
- 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; }
40
- function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
27
+ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
28
+ 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); } }
29
+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
30
+ 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); }
31
+ function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
32
+ 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); }; }
33
+ 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); }
34
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
35
+ 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; } }
36
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
37
+ 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; }
38
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
41
39
  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); }
42
- function _toConsumableArray(r) { return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread(); }
40
+ function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
43
41
  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."); }
44
- 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; } }
45
- function _iterableToArray(r) { if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r); }
46
- function _arrayWithoutHoles(r) { if (Array.isArray(r)) return _arrayLikeToArray(r); }
47
- 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; } //公共地址配置
42
+ 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); }
43
+ function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
44
+ function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
45
+ 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; } //公共地址配置
48
46
  var styles = {
49
47
  searchModal: 'vtx-ui-searchmap-searchmodal',
50
48
  searchMap: 'vtx-ui-searchmap-searchmap',
@@ -84,7 +82,7 @@ var CoverageTypes = [{
84
82
  // duration: 5,
85
83
  // });
86
84
  var warning = function warning() {
87
- _message["default"].warning('位置点查询失败,请缩小比例尺或切换关键字后再重新查询!');
85
+ _antd.message.warning('位置点查询失败,请缩小比例尺或切换关键字后再重新查询!');
88
86
  };
89
87
  function distinct(ary) {
90
88
  if ((ary === null || ary === void 0 ? void 0 : ary.length) < 2) {
@@ -99,17 +97,19 @@ function distinct(ary) {
99
97
  }
100
98
  }
101
99
  var getIcon = function getIcon(type) {
102
- return _default2.antdMajorVersion === '4' ? /*#__PURE__*/_react["default"].createElement(_default2.VtxMapIcon, {
100
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(_default2.VtxMapIcon, {
103
101
  type: "icon-".concat(_mapping.iconMapping[type])
104
- }) : type;
102
+ });
105
103
  };
106
104
  var VtxSearchMap = /*#__PURE__*/function (_React$Component) {
105
+ _inherits(VtxSearchMap, _React$Component);
106
+ var _super = _createSuper(VtxSearchMap);
107
107
  function VtxSearchMap(props) {
108
108
  var _this;
109
109
  _classCallCheck(this, VtxSearchMap);
110
- _this = _callSuper(this, VtxSearchMap, [props]);
110
+ _this = _super.call(this, props);
111
111
  // 绘制多个图元时返回参数
112
- _defineProperty(_this, "getMultiRes", function (graphicType) {
112
+ _defineProperty(_assertThisInitialized(_this), "getMultiRes", function (graphicType) {
113
113
  var resData = [];
114
114
  var _this$state = _this.state,
115
115
  graphicValue = _this$state.graphicValue,
@@ -237,8 +237,7 @@ var VtxSearchMap = /*#__PURE__*/function (_React$Component) {
237
237
  }, props.customEnumText || {});
238
238
  return _this;
239
239
  }
240
- _inherits(VtxSearchMap, _React$Component);
241
- return _createClass(VtxSearchMap, [{
240
+ _createClass(VtxSearchMap, [{
242
241
  key: "callback",
243
242
  value:
244
243
  //经纬度回调
@@ -373,7 +372,7 @@ var VtxSearchMap = /*#__PURE__*/function (_React$Component) {
373
372
  longitude: (t.props.mapCenter || [])[0] || lglt.nowCenter.lng,
374
373
  latitude: (t.props.mapCenter || [])[1] || lglt.nowCenter.lat,
375
374
  // url: `${configUrl.mapServerURL}/images/defaultMarker.png`,
376
- url: _defaultMarker["default"],
375
+ url: _defaultMarker.default,
377
376
  config: {
378
377
  zIndex: 1000
379
378
  }
@@ -426,7 +425,7 @@ var VtxSearchMap = /*#__PURE__*/function (_React$Component) {
426
425
  value: function locateByLnglat() {
427
426
  var t = this;
428
427
  if (!t.state.searchValue) {
429
- _message["default"].warn(t.TextEnum.msgConfirmInputLnglatText);
428
+ _antd.message.warn(t.TextEnum.msgConfirmInputLnglatText);
430
429
  return;
431
430
  }
432
431
  var _t$state$searchValue$ = t.state.searchValue.split(','),
@@ -451,7 +450,7 @@ var VtxSearchMap = /*#__PURE__*/function (_React$Component) {
451
450
  value: function searchList() {
452
451
  var t = this;
453
452
  if (!t.state.searchValue) {
454
- _message["default"].warn(this.TextEnum.msgConfirmInputText);
453
+ _antd.message.warn(this.TextEnum.msgConfirmInputText);
455
454
  return;
456
455
  }
457
456
  if (t.state.searchMode === 'lnglat') {
@@ -497,7 +496,7 @@ var VtxSearchMap = /*#__PURE__*/function (_React$Component) {
497
496
  }
498
497
  },
499
498
  fail: function fail(res) {
500
- _message["default"].warn("");
499
+ _antd.message.warn("");
501
500
  }
502
501
  });
503
502
  }
@@ -540,7 +539,7 @@ var VtxSearchMap = /*#__PURE__*/function (_React$Component) {
540
539
  }
541
540
  },
542
541
  fail: function fail(res) {
543
- _message["default"].warn("");
542
+ _antd.message.warn("");
544
543
  }
545
544
  });
546
545
  }
@@ -646,7 +645,7 @@ var VtxSearchMap = /*#__PURE__*/function (_React$Component) {
646
645
  if (item.id === id) {
647
646
  mapCenter = [item.longitude, item.latitude];
648
647
  return _objectSpread(_objectSpread({}, item), {}, {
649
- url: _defaultMarker["default"],
648
+ url: _defaultMarker.default,
650
649
  labelClass: styles.showLabel
651
650
  });
652
651
  } else {
@@ -700,7 +699,7 @@ var VtxSearchMap = /*#__PURE__*/function (_React$Component) {
700
699
  var _this3 = this;
701
700
  var disableEditIds = this.getAllOtherGraphId();
702
701
  if (obj.attributes && disableEditIds.includes(obj.attributes.id)) {
703
- _message["default"].warn(this.TextEnum.msgDoNotAllowOtherGraph);
702
+ _antd.message.warn(this.TextEnum.msgDoNotAllowOtherGraph);
704
703
  } else {
705
704
  if (obj.type === 'point' && obj.attributes.other === 'search') {
706
705
  this.chooseAddress(obj.attributes.id);
@@ -725,7 +724,7 @@ var VtxSearchMap = /*#__PURE__*/function (_React$Component) {
725
724
  this.isDrawStatus = false;
726
725
  this.isClickMap = false;
727
726
  if (this.isDrawStatus && this.isClickMap) {
728
- _message["default"].warning(this.TextEnum.msgEndEditingDrawText);
727
+ _antd.message.warning(this.TextEnum.msgEndEditingDrawText);
729
728
  } else {
730
729
  if ('closeModal' in this.props) {
731
730
  this.props.closeModal();
@@ -781,10 +780,10 @@ var VtxSearchMap = /*#__PURE__*/function (_React$Component) {
781
780
  value: function editGraphic() {
782
781
  var _this6 = this;
783
782
  if (this.isDrawStatus && this.isClickMap) {
784
- _message["default"].warning(this.TextEnum.msgEndEditingDrawText);
783
+ _antd.message.warning(this.TextEnum.msgEndEditingDrawText);
785
784
  return;
786
785
  }
787
- _message["default"].info(this.TextEnum.msgClickGraphicEditText);
786
+ _antd.message.info(this.TextEnum.msgClickGraphicEditText);
788
787
  this.clickable = true;
789
788
  this.isDrawStatus = false;
790
789
  this.setState({
@@ -888,18 +887,22 @@ var VtxSearchMap = /*#__PURE__*/function (_React$Component) {
888
887
  break;
889
888
  }
890
889
  if (str) {
891
- return /*#__PURE__*/_react["default"].createElement("span", {
890
+ return /*#__PURE__*/(0, _jsxRuntime.jsxs)("span", {
892
891
  style: {
893
892
  display: 'inline-block',
894
893
  marginLeft: '10px'
895
- }
896
- }, /*#__PURE__*/_react["default"].createElement("span", null, str), /*#__PURE__*/_react["default"].createElement("span", {
897
- onClick: function onClick() {
898
- _this7.setState({
899
- flag: Math.random()
900
- });
901
- }
902
- }, getIcon('sync')));
894
+ },
895
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
896
+ children: str
897
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
898
+ onClick: function onClick() {
899
+ _this7.setState({
900
+ flag: Math.random()
901
+ });
902
+ },
903
+ children: getIcon('sync')
904
+ })]
905
+ });
903
906
  } else {
904
907
  return null;
905
908
  }
@@ -1048,12 +1051,12 @@ var VtxSearchMap = /*#__PURE__*/function (_React$Component) {
1048
1051
  mapCircles = [].concat(_toConsumableArray(mapCircles), _toConsumableArray(otherGraph.circle || []));
1049
1052
  }
1050
1053
  }
1051
- return /*#__PURE__*/_react["default"].createElement(_VtxModal.VtxModal, {
1054
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(_VtxModal.VtxModal, {
1052
1055
  title: this.state.graphicType == 'point' ? TextEnum.locationTitleText : TextEnum.drawTitleText,
1053
1056
  style: {
1054
1057
  top: 50
1055
1058
  },
1056
- visible: modal1Visible,
1059
+ open: modal1Visible,
1057
1060
  maximize: true,
1058
1061
  isNotMoving: true,
1059
1062
  wrapClassName: styles.searchModal,
@@ -1067,219 +1070,255 @@ var VtxSearchMap = /*#__PURE__*/function (_React$Component) {
1067
1070
  }
1068
1071
  },
1069
1072
  onCancel: this.closeModal.bind(this),
1070
- footer: /*#__PURE__*/_react["default"].createElement("div", {
1071
- className: styles.bottom
1072
- }, /*#__PURE__*/_react["default"].createElement("div", {
1073
- className: styles.address
1074
- }, this.state.lbsAddress || ''), /*#__PURE__*/_react["default"].createElement("div", null, /*#__PURE__*/_react["default"].createElement(_button["default"], {
1075
- type: "primary",
1076
- onClick: function onClick() {
1077
- if (_this8.multiDraw && _this8.state.isDoEdit && !_this8.state.isEndEdit) {
1078
- _this8.continueDraw(_this8.callback.bind(_this8));
1079
- return;
1080
- }
1081
- _this8.callback();
1082
- },
1083
- icon: getIcon('check')
1084
- }, TextEnum.footerConfirmBtnText), /*#__PURE__*/_react["default"].createElement(_button["default"], {
1085
- onClick: this.closeModal.bind(this),
1086
- icon: getIcon('close')
1087
- }, TextEnum.footerCancelBtnText)))
1088
- }, /*#__PURE__*/_react["default"].createElement("div", {
1089
- className: styles.searchMap
1090
- }, /*#__PURE__*/_react["default"].createElement("div", {
1091
- className: styles.top
1092
- }, /*#__PURE__*/_react["default"].createElement("div", {
1093
- className: styles.top_left
1094
- }, /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement(_antd.Radio.Group, {
1095
- value: this.state.searchMode,
1096
- onChange: function onChange(e) {
1097
- _this8.setState({
1098
- searchMode: e.target.value,
1099
- searchValue: ''
1100
- });
1101
- }
1102
- }, /*#__PURE__*/_react["default"].createElement(_antd.Radio, {
1103
- value: 'keyword'
1104
- }, this.TextEnum.radioLabelKeywordText), /*#__PURE__*/_react["default"].createElement(_antd.Radio, {
1105
- value: 'lnglat'
1106
- }, this.TextEnum.radioLabelLnglatText)), /*#__PURE__*/_react["default"].createElement(_input["default"], _extends({
1107
- key: "1"
1108
- }, InputProps)), this.state.searchMode === 'keyword' ? /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement(_button["default"], {
1109
- key: "2",
1110
- type: "primary",
1111
- onClick: this.searchList.bind(this),
1112
- icon: getIcon('search')
1113
- }, TextEnum.searchConfirmBtnText), /*#__PURE__*/_react["default"].createElement(_button["default"], {
1114
- key: "3",
1115
- onClick: this.clearList.bind(this),
1116
- icon: getIcon('close')
1117
- }, TextEnum.searchResetBtnText)) : /*#__PURE__*/_react["default"].createElement(_button["default"], {
1118
- key: "4",
1119
- type: "primary",
1120
- onClick: this.locateByLnglat.bind(this)
1121
- }, TextEnum.locateLnglatText)), this.state.graphicType == 'point' ? /*#__PURE__*/_react["default"].createElement(_button["default"], {
1122
- onClick: this.correction.bind(this),
1123
- icon: getIcon('environment')
1124
- }, TextEnum.searchRelocateBtnText) : null, this.state.graphicType != 'point' ? /*#__PURE__*/_react["default"].createElement(_button["default"], {
1125
- disabled: this.isDrawStatus,
1126
- onClick: function onClick() {
1127
- _this8.isDrawStatus = true;
1128
- if (_this8.multiDraw) {
1129
- _this8.clickable = false;
1130
- graphicValue === null || graphicValue === void 0 || graphicValue.forEach(function (item) {
1131
- return t.map.removeGraphic(item.id, 'draw');
1132
- });
1133
- editGraphic === null || editGraphic === void 0 || editGraphic.forEach(function (item) {
1134
- return t.map.removeGraphic(item.id, 'draw');
1135
- });
1136
- _this8.setState({
1137
- isDraw: false,
1138
- isCloseDraw: true,
1139
- isEndEdit: false,
1140
- graphicValue: null,
1141
- editGraphic: null
1142
- }, function () {
1143
- _this8.setState({
1144
- isDraw: true,
1145
- isCloseDraw: false,
1146
- isEndEdit: true
1147
- });
1148
- });
1149
- } else {
1150
- _this8.setState({
1151
- isDraw: true,
1152
- graphicValue: null,
1153
- editGraphic: null,
1154
- isEndEdit: true
1155
- }, function () {
1156
- t.map.removeGraphic('drawnGraph', 'draw');
1157
- t.setState({
1158
- isEndEdit: false
1159
- });
1160
- });
1161
- }
1162
- _this8.callback('editDraw');
1163
- },
1164
- icon: getIcon('edit')
1165
- }, TextEnum.searchRedrawBtnText) : null, this.multiDraw && /*#__PURE__*/_react["default"].createElement(_button["default"], {
1166
- onClick: this.continueDraw.bind(this),
1167
- icon: getIcon('edit')
1168
- }, TextEnum.searchContinueDrawBtnText), this.multiDraw && /*#__PURE__*/_react["default"].createElement(_button["default"], {
1169
- onClick: this.editGraphic.bind(this),
1170
- icon: getIcon('edit')
1171
- }, TextEnum.searchEditGraphicBtnText), /*#__PURE__*/_react["default"].createElement(_button["default"], {
1172
- onClick: this.setFitView.bind(this),
1173
- icon: getIcon('sync')
1174
- }, TextEnum.searchGlobalBtnText), !this.multiDraw && this.map && this.computeGraphic()), /*#__PURE__*/_react["default"].createElement("div", {
1175
- className: styles.top_right
1176
- }, typeof customNodes == 'function' && customNodes(t.map), isShowOther ? /*#__PURE__*/_react["default"].createElement("div", {
1177
- className: styles.otherModal
1178
- }, /*#__PURE__*/_react["default"].createElement(_checkbox["default"], {
1179
- checked: isShowOtherGraph,
1180
- onChange: function onChange(e) {
1181
- _this8.setState({
1182
- isShowOtherGraph: e.target.checked
1183
- });
1184
- }
1185
- }, otherText)) : '', isChangeMapType && ['amap', 'bmap', 'tmap'].includes(mapType) && /*#__PURE__*/_react["default"].createElement(_antd.Dropdown, {
1186
- placement: "bottom",
1187
- overlay: /*#__PURE__*/_react["default"].createElement(_antd.Menu, {
1188
- onClick: function onClick(_ref) {
1189
- var key = _ref.key;
1190
- _this8.setState({
1191
- coverageType: key
1192
- });
1193
- },
1194
- items: [{
1195
- label: TextEnum.labelBaseMapStyleImgText,
1196
- key: 'sl'
1197
- }, {
1198
- label: TextEnum.labelBaseMapStyleVecText,
1199
- key: 'wx'
1200
- }]
1073
+ footer: /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
1074
+ className: styles.bottom,
1075
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
1076
+ className: styles.address,
1077
+ children: this.state.lbsAddress || ''
1078
+ }), /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
1079
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_antd.Button, {
1080
+ type: "primary",
1081
+ onClick: function onClick() {
1082
+ if (_this8.multiDraw && _this8.state.isDoEdit && !_this8.state.isEndEdit) {
1083
+ _this8.continueDraw(_this8.callback.bind(_this8));
1084
+ return;
1085
+ }
1086
+ _this8.callback();
1087
+ },
1088
+ icon: getIcon('check'),
1089
+ children: TextEnum.footerConfirmBtnText
1090
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_antd.Button, {
1091
+ onClick: this.closeModal.bind(this),
1092
+ icon: getIcon('close'),
1093
+ children: TextEnum.footerCancelBtnText
1094
+ })]
1095
+ })]
1096
+ }),
1097
+ children: /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
1098
+ className: styles.searchMap,
1099
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
1100
+ className: styles.top,
1101
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
1102
+ className: styles.top_left,
1103
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
1104
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(_antd.Radio.Group, {
1105
+ value: this.state.searchMode,
1106
+ onChange: function onChange(e) {
1107
+ _this8.setState({
1108
+ searchMode: e.target.value,
1109
+ searchValue: ''
1110
+ });
1111
+ },
1112
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_antd.Radio, {
1113
+ value: 'keyword',
1114
+ children: this.TextEnum.radioLabelKeywordText
1115
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_antd.Radio, {
1116
+ value: 'lnglat',
1117
+ children: this.TextEnum.radioLabelLnglatText
1118
+ })]
1119
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_antd.Input, _objectSpread({}, InputProps), '1'), this.state.searchMode === 'keyword' ? /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
1120
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_antd.Button, {
1121
+ type: "primary",
1122
+ onClick: this.searchList.bind(this),
1123
+ icon: getIcon('search'),
1124
+ children: TextEnum.searchConfirmBtnText
1125
+ }, '2'), /*#__PURE__*/(0, _jsxRuntime.jsx)(_antd.Button, {
1126
+ onClick: this.clearList.bind(this),
1127
+ icon: getIcon('close'),
1128
+ children: TextEnum.searchResetBtnText
1129
+ }, '3')]
1130
+ }) : /*#__PURE__*/(0, _jsxRuntime.jsx)(_antd.Button, {
1131
+ type: "primary",
1132
+ onClick: this.locateByLnglat.bind(this),
1133
+ children: TextEnum.locateLnglatText
1134
+ }, '4')]
1135
+ }), this.state.graphicType == 'point' ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_antd.Button, {
1136
+ onClick: this.correction.bind(this),
1137
+ icon: getIcon('environment'),
1138
+ children: TextEnum.searchRelocateBtnText
1139
+ }) : null, this.state.graphicType != 'point' ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_antd.Button, {
1140
+ disabled: this.isDrawStatus,
1141
+ onClick: function onClick() {
1142
+ _this8.isDrawStatus = true;
1143
+ if (_this8.multiDraw) {
1144
+ _this8.clickable = false;
1145
+ graphicValue === null || graphicValue === void 0 || graphicValue.forEach(function (item) {
1146
+ return t.map.removeGraphic(item.id, 'draw');
1147
+ });
1148
+ editGraphic === null || editGraphic === void 0 || editGraphic.forEach(function (item) {
1149
+ return t.map.removeGraphic(item.id, 'draw');
1150
+ });
1151
+ _this8.setState({
1152
+ isDraw: false,
1153
+ isCloseDraw: true,
1154
+ isEndEdit: false,
1155
+ graphicValue: null,
1156
+ editGraphic: null
1157
+ }, function () {
1158
+ _this8.setState({
1159
+ isDraw: true,
1160
+ isCloseDraw: false,
1161
+ isEndEdit: true
1162
+ });
1163
+ });
1164
+ } else {
1165
+ _this8.setState({
1166
+ isDraw: true,
1167
+ graphicValue: null,
1168
+ editGraphic: null,
1169
+ isEndEdit: true
1170
+ }, function () {
1171
+ t.map.removeGraphic('drawnGraph', 'draw');
1172
+ t.setState({
1173
+ isEndEdit: false
1174
+ });
1175
+ });
1176
+ }
1177
+ _this8.callback('editDraw');
1178
+ },
1179
+ icon: getIcon('edit'),
1180
+ children: TextEnum.searchRedrawBtnText
1181
+ }) : null, this.multiDraw && /*#__PURE__*/(0, _jsxRuntime.jsx)(_antd.Button, {
1182
+ onClick: this.continueDraw.bind(this),
1183
+ icon: getIcon('edit'),
1184
+ children: TextEnum.searchContinueDrawBtnText
1185
+ }), this.multiDraw && /*#__PURE__*/(0, _jsxRuntime.jsx)(_antd.Button, {
1186
+ onClick: this.editGraphic.bind(this),
1187
+ icon: getIcon('edit'),
1188
+ children: TextEnum.searchEditGraphicBtnText
1189
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_antd.Button, {
1190
+ onClick: this.setFitView.bind(this),
1191
+ icon: getIcon('sync'),
1192
+ children: TextEnum.searchGlobalBtnText
1193
+ }), !this.multiDraw && this.map && this.computeGraphic()]
1194
+ }), /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
1195
+ className: styles.top_right,
1196
+ children: [typeof customNodes == 'function' && customNodes(t.map), isShowOther ? /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
1197
+ className: styles.otherModal,
1198
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_antd.Checkbox, {
1199
+ checked: isShowOtherGraph,
1200
+ onChange: function onChange(e) {
1201
+ _this8.setState({
1202
+ isShowOtherGraph: e.target.checked
1203
+ });
1204
+ },
1205
+ children: otherText
1206
+ })
1207
+ }) : '', isChangeMapType && ['amap', 'bmap', 'tmap'].includes(mapType) && /*#__PURE__*/(0, _jsxRuntime.jsx)(_antd.Dropdown, {
1208
+ placement: "bottom",
1209
+ overlay: /*#__PURE__*/(0, _jsxRuntime.jsx)(_antd.Menu, {
1210
+ onClick: function onClick(_ref) {
1211
+ var key = _ref.key;
1212
+ _this8.setState({
1213
+ coverageType: key
1214
+ });
1215
+ },
1216
+ items: [{
1217
+ label: TextEnum.labelBaseMapStyleImgText,
1218
+ key: 'sl'
1219
+ }, {
1220
+ label: TextEnum.labelBaseMapStyleVecText,
1221
+ key: 'wx'
1222
+ }]
1223
+ }),
1224
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
1225
+ className: styles.mapTxt,
1226
+ style: {
1227
+ width: 'fit-content'
1228
+ },
1229
+ children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_antd.Button, {
1230
+ children: [coverageType == 'wx' ? TextEnum.labelBaseMapStyleVecText : TextEnum.labelBaseMapStyleImgText, /*#__PURE__*/(0, _jsxRuntime.jsx)("img", {
1231
+ src: require("../VtxMap/images/downoutlined.png"),
1232
+ width: "20px"
1233
+ })]
1234
+ })
1235
+ })
1236
+ })]
1237
+ })]
1238
+ }), /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
1239
+ className: styles.content,
1240
+ style: {
1241
+ paddingLeft: '25px'
1242
+ },
1243
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
1244
+ className: "".concat(styles.content_left, " ").concat(isShowList ? styles.w_l : ''),
1245
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
1246
+ className: "".concat(isShowList ? styles.show : styles.hidden),
1247
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
1248
+ className: styles.listTitle,
1249
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
1250
+ className: styles.title,
1251
+ children: TextEnum.labelSearchResultText
1252
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
1253
+ onClick: function onClick() {
1254
+ return _this8.showOrhidden(false);
1255
+ },
1256
+ className: styles.btn,
1257
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_default2.VtxMapIcon, {
1258
+ type: "icon-doubleleft"
1259
+ })
1260
+ })]
1261
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
1262
+ className: styles.scrollauto,
1263
+ children: listMess.map(function (item, index) {
1264
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
1265
+ onClick: function onClick() {
1266
+ return _this8.chooseAddress(item.id);
1267
+ },
1268
+ className: "".concat(styles.lists, " ").concat(item.isSelect ? styles.select : ''),
1269
+ children: item.title
1270
+ }, index);
1271
+ })
1272
+ })]
1273
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
1274
+ onClick: function onClick() {
1275
+ return _this8.showOrhidden(true);
1276
+ },
1277
+ className: "".concat(styles.btn, " ").concat(!isShowList ? styles.show : styles.hidden),
1278
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_default2.VtxMapIcon, {
1279
+ type: "icon-doubleright"
1280
+ })
1281
+ })]
1282
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
1283
+ className: styles.content_right,
1284
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_VtxMap.VtxMap, _objectSpread({
1285
+ getMapInstance: function getMapInstance(map) {
1286
+ if (map) _this8.map = map;
1287
+ },
1288
+ mapType: mapType,
1289
+ mapStyle: mapStyle,
1290
+ mapServer: mapServer,
1291
+ wkid: wkid,
1292
+ mapId: t.mapId,
1293
+ setCenter: setCenter,
1294
+ mapCenter: mapCenter,
1295
+ minZoom: minZoom,
1296
+ maxZoom: maxZoom,
1297
+ mapZoomLevel: mapZoomLevel,
1298
+ setZoomLevel: setZoomLevel,
1299
+ mapPoints: mapPoints,
1300
+ mapLines: mapLines,
1301
+ mapPolygons: mapPolygons,
1302
+ mapCircles: mapCircles,
1303
+ mapVisiblePoints: mapVisiblePoints,
1304
+ setVisiblePoints: setVisiblePoints,
1305
+ isDoEdit: isDoEdit,
1306
+ isEndEdit: isEndEdit,
1307
+ editGraphicId: editGraphicId,
1308
+ editGraphicChange: this.editGraphicChange.bind(this),
1309
+ clickGraphic: this.clickGraphic.bind(this),
1310
+ clickMap: function clickMap() {
1311
+ t.isClickMap = true;
1312
+ },
1313
+ olProps: olProps,
1314
+ showControl: showControl,
1315
+ coverageType: coverageType,
1316
+ language: language
1317
+ }, drawProps))
1318
+ })]
1319
+ })]
1201
1320
  })
1202
- }, /*#__PURE__*/_react["default"].createElement("div", {
1203
- className: styles.mapTxt,
1204
- style: {
1205
- width: 'fit-content'
1206
- }
1207
- }, /*#__PURE__*/_react["default"].createElement(_button["default"], null, coverageType == 'wx' ? TextEnum.labelBaseMapStyleVecText : TextEnum.labelBaseMapStyleImgText, /*#__PURE__*/_react["default"].createElement("img", {
1208
- src: require("../VtxMap/images/downoutlined.png"),
1209
- width: "20px"
1210
- })))))), /*#__PURE__*/_react["default"].createElement("div", {
1211
- className: styles.content,
1212
- style: {
1213
- paddingLeft: '25px'
1214
- }
1215
- }, /*#__PURE__*/_react["default"].createElement("div", {
1216
- className: "".concat(styles.content_left, " ").concat(isShowList ? styles.w_l : '')
1217
- }, /*#__PURE__*/_react["default"].createElement("div", {
1218
- className: "".concat(isShowList ? styles.show : styles.hidden)
1219
- }, /*#__PURE__*/_react["default"].createElement("div", {
1220
- className: styles.listTitle
1221
- }, /*#__PURE__*/_react["default"].createElement("div", {
1222
- className: styles.title
1223
- }, TextEnum.labelSearchResultText), /*#__PURE__*/_react["default"].createElement("div", {
1224
- onClick: function onClick() {
1225
- return _this8.showOrhidden(false);
1226
- },
1227
- className: styles.btn
1228
- }, /*#__PURE__*/_react["default"].createElement(_default2.VtxMapIcon, {
1229
- type: "icon-doubleleft"
1230
- }))), /*#__PURE__*/_react["default"].createElement("div", {
1231
- className: styles.scrollauto
1232
- }, listMess.map(function (item, index) {
1233
- return /*#__PURE__*/_react["default"].createElement("div", {
1234
- key: index,
1235
- onClick: function onClick() {
1236
- return _this8.chooseAddress(item.id);
1237
- },
1238
- className: "".concat(styles.lists, " ").concat(item.isSelect ? styles.select : '')
1239
- }, item.title);
1240
- }))), /*#__PURE__*/_react["default"].createElement("div", {
1241
- onClick: function onClick() {
1242
- return _this8.showOrhidden(true);
1243
- },
1244
- className: "".concat(styles.btn, " ").concat(!isShowList ? styles.show : styles.hidden)
1245
- }, /*#__PURE__*/_react["default"].createElement(_default2.VtxMapIcon, {
1246
- type: "icon-doubleright"
1247
- }))), /*#__PURE__*/_react["default"].createElement("div", {
1248
- className: styles.content_right
1249
- }, /*#__PURE__*/_react["default"].createElement(_VtxMap.VtxMap, _extends({
1250
- getMapInstance: function getMapInstance(map) {
1251
- if (map) _this8.map = map;
1252
- },
1253
- mapType: mapType,
1254
- mapStyle: mapStyle,
1255
- mapServer: mapServer,
1256
- wkid: wkid,
1257
- mapId: t.mapId,
1258
- setCenter: setCenter,
1259
- mapCenter: mapCenter,
1260
- minZoom: minZoom,
1261
- maxZoom: maxZoom,
1262
- mapZoomLevel: mapZoomLevel,
1263
- setZoomLevel: setZoomLevel,
1264
- mapPoints: mapPoints,
1265
- mapLines: mapLines,
1266
- mapPolygons: mapPolygons,
1267
- mapCircles: mapCircles,
1268
- mapVisiblePoints: mapVisiblePoints,
1269
- setVisiblePoints: setVisiblePoints,
1270
- isDoEdit: isDoEdit,
1271
- isEndEdit: isEndEdit,
1272
- editGraphicId: editGraphicId,
1273
- editGraphicChange: this.editGraphicChange.bind(this),
1274
- clickGraphic: this.clickGraphic.bind(this),
1275
- clickMap: function clickMap() {
1276
- t.isClickMap = true;
1277
- },
1278
- olProps: olProps,
1279
- showControl: showControl,
1280
- coverageType: coverageType,
1281
- language: language
1282
- }, drawProps))))));
1321
+ });
1283
1322
  }
1284
1323
  }, {
1285
1324
  key: "initSearchMap",
@@ -1319,7 +1358,7 @@ var VtxSearchMap = /*#__PURE__*/function (_React$Component) {
1319
1358
  }, {
1320
1359
  key: "UNSAFE_componentWillReceiveProps",
1321
1360
  value: function UNSAFE_componentWillReceiveProps(nextProps) {
1322
- var _this0 = this;
1361
+ var _this10 = this;
1323
1362
  var t = this;
1324
1363
  this.isClickMap = false;
1325
1364
  if (t.state.graphicType !== nextProps.graphicType && !!this.map) {
@@ -1354,36 +1393,36 @@ var VtxSearchMap = /*#__PURE__*/function (_React$Component) {
1354
1393
  setTimeout(function () {
1355
1394
  //实现2+次进入时,清理数据
1356
1395
  if (nextProps.modal1Visible) {
1357
- _this0.clearList();
1358
- _this0.setState({
1396
+ _this10.clearList();
1397
+ _this10.setState({
1359
1398
  setZoomLevel: true
1360
1399
  }, function () {
1361
- _this0.setState({
1400
+ _this10.setState({
1362
1401
  setZoomLevel: false
1363
1402
  });
1364
1403
  });
1365
- if (!!_this0.map && !!_this0.state.locationPoint[0] && nextProps.mapCenter && !!nextProps.mapCenter[0]) {
1366
- if (_this0.map.getGraphic('locationPoint')) {
1404
+ if (!!_this10.map && !!_this10.state.locationPoint[0] && nextProps.mapCenter && !!nextProps.mapCenter[0]) {
1405
+ if (_this10.map.getGraphic('locationPoint')) {
1367
1406
  switch (nextProps.mapType) {
1368
1407
  case 'bmap':
1369
- _this0.map.getGraphic('locationPoint').mapLayer.setPosition(new BMap.Point(nextProps.mapCenter[0], nextProps.mapCenter[1]));
1408
+ _this10.map.getGraphic('locationPoint').mapLayer.setPosition(new BMap.Point(nextProps.mapCenter[0], nextProps.mapCenter[1]));
1370
1409
  break;
1371
1410
  case 'amap':
1372
- _this0.map.getGraphic('locationPoint').mapLayer.setPosition(new AMap.LngLat(nextProps.mapCenter[0], nextProps.mapCenter[1]));
1411
+ _this10.map.getGraphic('locationPoint').mapLayer.setPosition(new AMap.LngLat(nextProps.mapCenter[0], nextProps.mapCenter[1]));
1373
1412
  break;
1374
1413
  case 'tmap':
1375
- _this0.map.getGraphic('locationPoint').mapLayer.setLngLat(new T.LngLat(nextProps.mapCenter[0], nextProps.mapCenter[1]));
1414
+ _this10.map.getGraphic('locationPoint').mapLayer.setLngLat(new T.LngLat(nextProps.mapCenter[0], nextProps.mapCenter[1]));
1376
1415
  break;
1377
1416
  case 'gmap':
1378
- _this0.map.getGraphic('locationPoint').mapLayer.geometry.setLatitude(nextProps.mapCenter[1]);
1379
- _this0.map.getGraphic('locationPoint').mapLayer.geometry.setLongitude(nextProps.mapCenter[0]);
1380
- _this0.map.state.gis.graphics.refresh();
1417
+ _this10.map.getGraphic('locationPoint').mapLayer.geometry.setLatitude(nextProps.mapCenter[1]);
1418
+ _this10.map.getGraphic('locationPoint').mapLayer.geometry.setLongitude(nextProps.mapCenter[0]);
1419
+ _this10.map.state.gis.graphics.refresh();
1381
1420
  case 'olMap':
1382
- _this0.map.getGraphic('locationPoint').mapLayer.setGeometry(new ol.geom.Point(nextProps.mapCenter));
1421
+ _this10.map.getGraphic('locationPoint').mapLayer.setGeometry(new ol.geom.Point(nextProps.mapCenter));
1383
1422
  break;
1384
1423
  }
1385
1424
  }
1386
- _this0.map.setCenter(nextProps.mapCenter);
1425
+ _this10.map.setCenter(nextProps.mapCenter);
1387
1426
  }
1388
1427
  }
1389
1428
  }, 100);
@@ -1398,8 +1437,9 @@ var VtxSearchMap = /*#__PURE__*/function (_React$Component) {
1398
1437
  }
1399
1438
  }
1400
1439
  }]);
1401
- }(_react["default"].Component);
1402
- var _default = exports["default"] = VtxSearchMap;
1440
+ return VtxSearchMap;
1441
+ }(_react.default.Component);
1442
+ var _default = exports.default = VtxSearchMap;
1403
1443
  function formatNumber(num) {
1404
1444
  return Number(num).toFixed(2);
1405
1445
  }
@@ -1412,6 +1452,4 @@ function getAvg() {
1412
1452
  sumLat += Number(item[1]);
1413
1453
  });
1414
1454
  return "".concat(sumLng / arr.length, ",").concat(sumLat / arr.length);
1415
- }
1416
- module.exports = exports["default"];
1417
- //# sourceMappingURL=VtxSearchMap.js.map
1455
+ }