@vtx/ol-map 1.0.25 → 1.0.26
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/lib/assets/noLocation.png +0 -0
- package/lib/feature-layer/FeatureLayer.js +10 -5
- package/lib/feature-layer/FeatureLayer.js.map +1 -1
- package/lib/feature-layer/createFeatureCollection.js +8 -6
- package/lib/feature-layer/createFeatureCollection.js.map +1 -1
- package/lib/feature-layer/index.js +5 -2
- package/lib/feature-layer/index.js.map +1 -1
- package/lib/image-layer/ImageLayer.js +11 -1
- package/lib/image-layer/ImageLayer.js.map +1 -1
- package/lib/image-layer/index.js +1 -0
- package/lib/image-layer/index.js.map +1 -1
- package/lib/index.js +7 -21
- package/lib/index.js.map +1 -1
- package/lib/map/Popup.js +1 -0
- package/lib/map/Popup.js.map +1 -1
- package/lib/map/index.js +83 -15
- package/lib/map/index.js.map +1 -1
- package/lib/poi-search/Search.js +4 -0
- package/lib/poi-search/Search.js.map +1 -1
- package/lib/poi-search/style/css.js +1 -0
- package/lib/poi-search/style/css.js.map +1 -1
- package/lib/poi-search/style/index.js +1 -0
- package/lib/poi-search/style/index.js.map +1 -1
- package/lib/renderer/index.js +0 -1
- package/lib/renderer/index.js.map +1 -1
- package/lib/search-map/VtxModal.js +205 -0
- package/lib/search-map/VtxModal.js.map +1 -0
- package/lib/search-map/index.js +338 -0
- package/lib/search-map/index.js.map +1 -0
- package/lib/search-map/style/css.js +9 -0
- package/lib/search-map/style/css.js.map +1 -0
- package/lib/search-map/style/index.css +73 -0
- package/lib/search-map/style/index.js +9 -0
- package/lib/search-map/style/index.js.map +1 -0
- package/lib/search-map/style/index.less +71 -0
- package/lib/search-map/style/modal.css +54 -0
- package/lib/search-map/style/modal.less +58 -0
- package/lib/tools/Search/index.js +2 -2
- package/lib/tools/Search/index.js.map +1 -1
- package/lib/tools/Toolbox/EagleEye/index.js +4 -2
- package/lib/tools/Toolbox/EagleEye/index.js.map +1 -1
- package/lib/tools/Toolbox/ScaleLine/index.js +4 -2
- package/lib/tools/Toolbox/ScaleLine/index.js.map +1 -1
- package/lib/tools/Toolbox/index.js +11 -3
- package/lib/tools/Toolbox/index.js.map +1 -1
- package/lib/tools/layer-control/index.js +3 -4
- package/lib/tools/layer-control/index.js.map +1 -1
- package/package.json +2 -2
- package/lib/_util/layerConfig.js +0 -411
- package/lib/_util/layerConfig.js.map +0 -1
- package/lib/device-layer/index.js +0 -122
- package/lib/device-layer/index.js.map +0 -1
- package/lib/device-layer/style/css.js +0 -4
- package/lib/device-layer/style/css.js.map +0 -1
- package/lib/device-layer/style/index.css +0 -0
- package/lib/device-layer/style/index.js +0 -4
- package/lib/device-layer/style/index.js.map +0 -1
- package/lib/device-layer/style/index.less +0 -0
- package/lib/empty/index.js +0 -44
- package/lib/empty/index.js.map +0 -1
- package/lib/empty/nodata/index.js +0 -32
- package/lib/empty/nodata/index.js.map +0 -1
- package/lib/empty/style/index.css +0 -31
- package/lib/empty/style/index.less +0 -24
- package/lib/facility-layer/index.js +0 -153
- package/lib/facility-layer/index.js.map +0 -1
- package/lib/facility-layer/style/css.js +0 -4
- package/lib/facility-layer/style/css.js.map +0 -1
- package/lib/facility-layer/style/index.css +0 -0
- package/lib/facility-layer/style/index.js +0 -4
- package/lib/facility-layer/style/index.js.map +0 -1
- package/lib/facility-layer/style/index.less +0 -0
- package/lib/map-layer/api.js +0 -118
- package/lib/map-layer/api.js.map +0 -1
- package/lib/map-layer/index.js +0 -136
- package/lib/map-layer/index.js.map +0 -1
- package/lib/map-layer/style/css.js +0 -4
- package/lib/map-layer/style/css.js.map +0 -1
- package/lib/map-layer/style/index.css +0 -0
- package/lib/map-layer/style/index.js +0 -4
- package/lib/map-layer/style/index.js.map +0 -1
- package/lib/map-layer/style/index.less +0 -0
|
@@ -0,0 +1,205 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
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
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
exports["default"] = void 0;
|
|
8
|
+
var _react = _interopRequireDefault(require("react"));
|
|
9
|
+
var _modal = _interopRequireDefault(require("antd/lib/modal"));
|
|
10
|
+
var _icons = require("@ant-design/icons");
|
|
11
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
12
|
+
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; }
|
|
13
|
+
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; }
|
|
14
|
+
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; }
|
|
15
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
16
|
+
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); } }
|
|
17
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
18
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
19
|
+
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
20
|
+
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); }
|
|
21
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
22
|
+
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); }; }
|
|
23
|
+
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); }
|
|
24
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
25
|
+
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; } }
|
|
26
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
27
|
+
var styles = {
|
|
28
|
+
normal: 'vtx-ui-modal-normal',
|
|
29
|
+
maxClass: 'vtx-ui-modal-maxClass',
|
|
30
|
+
title: 'vtx-ui-modal-title',
|
|
31
|
+
title_name: 'vtx-ui-modal-title_name',
|
|
32
|
+
close: 'vtx-ui-modal-close',
|
|
33
|
+
maximizeIcon: 'vtx-ui-modal-maximizeIcon'
|
|
34
|
+
};
|
|
35
|
+
var VtxModal = /*#__PURE__*/function (_React$Component) {
|
|
36
|
+
_inherits(VtxModal, _React$Component);
|
|
37
|
+
var _super = _createSuper(VtxModal);
|
|
38
|
+
function VtxModal(props) {
|
|
39
|
+
var _this;
|
|
40
|
+
_classCallCheck(this, VtxModal);
|
|
41
|
+
_this = _super.call(this, props);
|
|
42
|
+
_this.classId = new Date().getTime() + Math.random();
|
|
43
|
+
_this.isInit = false;
|
|
44
|
+
_this.isCreate = props.visible;
|
|
45
|
+
_this.state = {
|
|
46
|
+
maximizable: false,
|
|
47
|
+
maximizeClass: '',
|
|
48
|
+
init_x: 0,
|
|
49
|
+
init_y: 0,
|
|
50
|
+
x_move: 0,
|
|
51
|
+
y_move: 0,
|
|
52
|
+
documentMouseMove: null,
|
|
53
|
+
documentMouseUp: null
|
|
54
|
+
};
|
|
55
|
+
_this.startDrag = _this.startDrag.bind(_assertThisInitialized(_this));
|
|
56
|
+
return _this;
|
|
57
|
+
}
|
|
58
|
+
_createClass(VtxModal, [{
|
|
59
|
+
key: "componentWillReceiveProps",
|
|
60
|
+
value: function componentWillReceiveProps(nextProps) {
|
|
61
|
+
if (nextProps.visible && !this.isCreate) {
|
|
62
|
+
this.isCreate = true;
|
|
63
|
+
}
|
|
64
|
+
if (!this.props.visible && nextProps.visible) {
|
|
65
|
+
this.setState({
|
|
66
|
+
x_move: 0,
|
|
67
|
+
y_move: 0
|
|
68
|
+
});
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
}, {
|
|
72
|
+
key: "componentDidUpdate",
|
|
73
|
+
value: function componentDidUpdate() {
|
|
74
|
+
var t = this;
|
|
75
|
+
if (!this.props.isNotMoving) {
|
|
76
|
+
if (this.isCreate && !this.isInit) {
|
|
77
|
+
this.isInit = true;
|
|
78
|
+
try {
|
|
79
|
+
this.timer = setTimeout(function () {
|
|
80
|
+
var modalHead = document.getElementsByClassName(t.classId)[0].getElementsByClassName('ant-modal-header')[0];
|
|
81
|
+
modalHead.style.cursor = 'move';
|
|
82
|
+
modalHead.onmousedown = t.startDrag;
|
|
83
|
+
}, 200);
|
|
84
|
+
} catch (error) {
|
|
85
|
+
console.error('VtxModal拖动功能异常,未获取到头部dom对象!');
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
}, {
|
|
91
|
+
key: "componentWillUnmount",
|
|
92
|
+
value: function componentWillUnmount() {
|
|
93
|
+
if (this.timer) {
|
|
94
|
+
clearTimeout(this.timer);
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
}, {
|
|
98
|
+
key: "startDrag",
|
|
99
|
+
value: function startDrag(e) {
|
|
100
|
+
var _this2 = this;
|
|
101
|
+
e.preventDefault();
|
|
102
|
+
if (!this.state.maximizable) {
|
|
103
|
+
this.setState({
|
|
104
|
+
documentMouseUp: document.onmouseup,
|
|
105
|
+
documentMouseMove: document.onmousemove,
|
|
106
|
+
init_x: e.clientX - this.state.x_move,
|
|
107
|
+
init_y: e.clientY - this.state.y_move
|
|
108
|
+
});
|
|
109
|
+
document.onmousemove = function (e) {
|
|
110
|
+
_this2.setState({
|
|
111
|
+
x_move: e.clientX - _this2.state.init_x,
|
|
112
|
+
y_move: e.clientY - _this2.state.init_y
|
|
113
|
+
});
|
|
114
|
+
};
|
|
115
|
+
document.onmouseup = function (e) {
|
|
116
|
+
document.onmousemove = _this2.state.documentMouseMove;
|
|
117
|
+
document.onmouseup = _this2.state.documentMouseUp;
|
|
118
|
+
};
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
}, {
|
|
122
|
+
key: "render",
|
|
123
|
+
value: function render() {
|
|
124
|
+
var t = this;
|
|
125
|
+
var _this$props = this.props,
|
|
126
|
+
_this$props$closable = _this$props.closable,
|
|
127
|
+
closable = _this$props$closable === void 0 ? true : _this$props$closable,
|
|
128
|
+
_this$props$maximize = _this$props.maximize,
|
|
129
|
+
maximize = _this$props$maximize === void 0 ? true : _this$props$maximize,
|
|
130
|
+
_this$props$wrapClass = _this$props.wrapClassName,
|
|
131
|
+
wrapClassName = _this$props$wrapClass === void 0 ? '' : _this$props$wrapClass,
|
|
132
|
+
_this$props$title = _this$props.title,
|
|
133
|
+
title = _this$props$title === void 0 ? '' : _this$props$title;
|
|
134
|
+
var _this$state = this.state,
|
|
135
|
+
maximizable = _this$state.maximizable,
|
|
136
|
+
maximizeClass = _this$state.maximizeClass;
|
|
137
|
+
wrapClassName = "".concat(styles.normal, " ").concat(wrapClassName, " ").concat(maximizeClass, " ").concat(this.classId);
|
|
138
|
+
var transformStyle = {
|
|
139
|
+
transform: "translate(".concat(this.state.x_move, "px,").concat(this.state.y_move, "px)")
|
|
140
|
+
};
|
|
141
|
+
title = function renderTitle() {
|
|
142
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
143
|
+
className: styles.title,
|
|
144
|
+
style: {
|
|
145
|
+
paddingRight: closable ? '32px' : '0px'
|
|
146
|
+
}
|
|
147
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
148
|
+
className: styles.title_name
|
|
149
|
+
}, title), maximize ? /*#__PURE__*/_react["default"].createElement("div", {
|
|
150
|
+
className: styles.maximizeIcon
|
|
151
|
+
}, /*#__PURE__*/_react["default"].createElement("p", {
|
|
152
|
+
onClick: function onClick() {
|
|
153
|
+
var maximizeClass = '';
|
|
154
|
+
if (!maximizable) {
|
|
155
|
+
maximizeClass = styles.maxClass;
|
|
156
|
+
}
|
|
157
|
+
t.setState({
|
|
158
|
+
maximizable: !maximizable,
|
|
159
|
+
maximizeClass: maximizeClass
|
|
160
|
+
}, function () {
|
|
161
|
+
if (t.timer) {
|
|
162
|
+
clearTimeout(t.timer);
|
|
163
|
+
}
|
|
164
|
+
t.timer = setTimeout(function () {
|
|
165
|
+
if (window.onModalResize && typeof window.onModalResize == 'function') {
|
|
166
|
+
window.onModalResize();
|
|
167
|
+
}
|
|
168
|
+
}, 100);
|
|
169
|
+
});
|
|
170
|
+
}
|
|
171
|
+
}, maximizable ? /*#__PURE__*/_react["default"].createElement(_icons.ShrinkOutlined, null) : /*#__PURE__*/_react["default"].createElement(_icons.ArrowsAltOutlined, null))) : null, closable ? /*#__PURE__*/_react["default"].createElement("div", {
|
|
172
|
+
className: styles.close
|
|
173
|
+
}, /*#__PURE__*/_react["default"].createElement("p", {
|
|
174
|
+
onClick: t.props.onCancel
|
|
175
|
+
}, /*#__PURE__*/_react["default"].createElement(_icons.CloseOutlined, null))) : null);
|
|
176
|
+
}();
|
|
177
|
+
var bodyStyle = _objectSpread({}, this.props.bodyStyle);
|
|
178
|
+
if (!maximizable) {
|
|
179
|
+
bodyStyle = _objectSpread({
|
|
180
|
+
maxHeight: "".concat(window.innerHeight * 0.7, "px")
|
|
181
|
+
}, bodyStyle);
|
|
182
|
+
}
|
|
183
|
+
var props = _objectSpread(_objectSpread({
|
|
184
|
+
closable: closable,
|
|
185
|
+
maskClosable: false,
|
|
186
|
+
width: 700
|
|
187
|
+
}, this.props), {}, {
|
|
188
|
+
closable: false,
|
|
189
|
+
title: title,
|
|
190
|
+
wrapClassName: wrapClassName,
|
|
191
|
+
bodyStyle: bodyStyle,
|
|
192
|
+
style: _objectSpread(_objectSpread({}, this.props.style), maximizable ? {} : transformStyle)
|
|
193
|
+
});
|
|
194
|
+
return this.props.visible ? /*#__PURE__*/_react["default"].createElement(_modal["default"], props, this.props.children) : null;
|
|
195
|
+
}
|
|
196
|
+
}]);
|
|
197
|
+
return VtxModal;
|
|
198
|
+
}(_react["default"].Component);
|
|
199
|
+
VtxModal.info = _modal["default"].info;
|
|
200
|
+
VtxModal.success = _modal["default"].success;
|
|
201
|
+
VtxModal.error = _modal["default"].error;
|
|
202
|
+
VtxModal.warning = _modal["default"].warning;
|
|
203
|
+
VtxModal.confirm = _modal["default"].confirm;
|
|
204
|
+
var _default = exports["default"] = VtxModal;
|
|
205
|
+
//# sourceMappingURL=VtxModal.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"VtxModal.js","names":["_react","_interopRequireDefault","require","_modal","_icons","obj","__esModule","ownKeys","e","r","t","Object","keys","getOwnPropertySymbols","o","filter","getOwnPropertyDescriptor","enumerable","push","apply","_objectSpread","arguments","length","forEach","_defineProperty","getOwnPropertyDescriptors","defineProperties","defineProperty","key","value","_toPropertyKey","configurable","writable","_classCallCheck","instance","Constructor","TypeError","_defineProperties","target","props","i","descriptor","_createClass","protoProps","staticProps","prototype","arg","_toPrimitive","_typeof","String","input","hint","prim","Symbol","toPrimitive","undefined","res","call","Number","_inherits","subClass","superClass","create","constructor","_setPrototypeOf","p","setPrototypeOf","bind","__proto__","_createSuper","Derived","hasNativeReflectConstruct","_isNativeReflectConstruct","_createSuperInternal","Super","_getPrototypeOf","result","NewTarget","Reflect","construct","_possibleConstructorReturn","self","_assertThisInitialized","ReferenceError","sham","Proxy","Boolean","valueOf","getPrototypeOf","styles","normal","maxClass","title","title_name","close","maximizeIcon","VtxModal","_React$Component","_super","_this","classId","Date","getTime","Math","random","isInit","isCreate","visible","state","maximizable","maximizeClass","init_x","init_y","x_move","y_move","documentMouseMove","documentMouseUp","startDrag","componentWillReceiveProps","nextProps","setState","componentDidUpdate","isNotMoving","timer","setTimeout","modalHead","document","getElementsByClassName","style","cursor","onmousedown","error","console","componentWillUnmount","clearTimeout","_this2","preventDefault","onmouseup","onmousemove","clientX","clientY","render","_this$props","_this$props$closable","closable","_this$props$maximize","maximize","_this$props$wrapClass","wrapClassName","_this$props$title","_this$state","concat","transformStyle","transform","renderTitle","createElement","className","paddingRight","onClick","window","onModalResize","ShrinkOutlined","ArrowsAltOutlined","onCancel","CloseOutlined","bodyStyle","maxHeight","innerHeight","maskClosable","width","children","React","Component","info","Modal","success","warning","confirm","_default","exports"],"sources":["search-map/VtxModal.js"],"sourcesContent":["import React from 'react';\r\nimport Modal from 'antd/lib/modal';\r\nimport { CloseOutlined, ArrowsAltOutlined, ShrinkOutlined } from '@ant-design/icons';\r\n\r\nconst styles = {\r\n normal: 'vtx-ui-modal-normal',\r\n maxClass: 'vtx-ui-modal-maxClass',\r\n title: 'vtx-ui-modal-title',\r\n title_name: 'vtx-ui-modal-title_name',\r\n close: 'vtx-ui-modal-close',\r\n maximizeIcon: 'vtx-ui-modal-maximizeIcon',\r\n};\r\n\r\nclass VtxModal extends React.Component {\r\n constructor(props) {\r\n super(props);\r\n this.classId = new Date().getTime() + Math.random();\r\n this.isInit = false;\r\n this.isCreate = props.visible;\r\n this.state = {\r\n maximizable: false,\r\n maximizeClass: '',\r\n init_x: 0,\r\n init_y: 0,\r\n x_move: 0,\r\n y_move: 0,\r\n documentMouseMove: null,\r\n documentMouseUp: null,\r\n };\r\n this.startDrag = this.startDrag.bind(this);\r\n }\r\n componentWillReceiveProps(nextProps) {\r\n if (nextProps.visible && !this.isCreate) {\r\n this.isCreate = true;\r\n }\r\n if (!this.props.visible && nextProps.visible) {\r\n this.setState({\r\n x_move: 0,\r\n y_move: 0,\r\n });\r\n }\r\n }\r\n componentDidUpdate() {\r\n const t = this;\r\n if (!this.props.isNotMoving) {\r\n if (this.isCreate && !this.isInit) {\r\n this.isInit = true;\r\n try {\r\n this.timer = setTimeout(() => {\r\n let modalHead = document\r\n .getElementsByClassName(t.classId)[0]\r\n .getElementsByClassName('ant-modal-header')[0];\r\n modalHead.style.cursor = 'move';\r\n modalHead.onmousedown = t.startDrag;\r\n }, 200);\r\n } catch (error) {\r\n console.error('VtxModal拖动功能异常,未获取到头部dom对象!');\r\n }\r\n }\r\n }\r\n }\r\n componentWillUnmount() {\r\n if (this.timer) {\r\n clearTimeout(this.timer);\r\n }\r\n }\r\n startDrag(e) {\r\n e.preventDefault();\r\n if (!this.state.maximizable) {\r\n this.setState({\r\n documentMouseUp: document.onmouseup,\r\n documentMouseMove: document.onmousemove,\r\n init_x: e.clientX - this.state.x_move,\r\n init_y: e.clientY - this.state.y_move,\r\n });\r\n document.onmousemove = e => {\r\n this.setState({\r\n x_move: e.clientX - this.state.init_x,\r\n y_move: e.clientY - this.state.init_y,\r\n });\r\n };\r\n document.onmouseup = e => {\r\n document.onmousemove = this.state.documentMouseMove;\r\n document.onmouseup = this.state.documentMouseUp;\r\n };\r\n }\r\n }\r\n componentWillUnmount() {\r\n if (this.timer) {\r\n clearTimeout(this.timer);\r\n }\r\n }\r\n render() {\r\n const t = this;\r\n let { closable = true, maximize = true, wrapClassName = '', title = '' } = this.props;\r\n const { maximizable, maximizeClass } = this.state;\r\n wrapClassName = `${styles.normal} ${wrapClassName} ${maximizeClass} ${this.classId}`;\r\n const transformStyle = {\r\n transform: `translate(${this.state.x_move}px,${this.state.y_move}px)`,\r\n };\r\n title = (function renderTitle() {\r\n return (\r\n <div className={styles.title} style={{ paddingRight: closable ? '32px' : '0px' }}>\r\n <div className={styles.title_name}>{title}</div>\r\n {maximize ? (\r\n <div className={styles.maximizeIcon}>\r\n <p\r\n onClick={() => {\r\n let maximizeClass = '';\r\n if (!maximizable) {\r\n maximizeClass = styles.maxClass;\r\n }\r\n t.setState(\r\n {\r\n maximizable: !maximizable,\r\n maximizeClass,\r\n },\r\n () => {\r\n if (t.timer) {\r\n clearTimeout(t.timer);\r\n }\r\n t.timer = setTimeout(() => {\r\n if (\r\n window.onModalResize &&\r\n typeof window.onModalResize == 'function'\r\n ) {\r\n window.onModalResize();\r\n }\r\n }, 100);\r\n },\r\n );\r\n }}\r\n >\r\n {maximizable ? <ShrinkOutlined /> : <ArrowsAltOutlined />}\r\n </p>\r\n </div>\r\n ) : null}\r\n {closable ? (\r\n <div className={styles.close}>\r\n <p onClick={t.props.onCancel}>\r\n <CloseOutlined />\r\n </p>\r\n </div>\r\n ) : null}\r\n </div>\r\n );\r\n })();\r\n let bodyStyle = {\r\n ...this.props.bodyStyle,\r\n };\r\n if (!maximizable) {\r\n bodyStyle = {\r\n maxHeight: `${window.innerHeight * 0.7}px`,\r\n ...bodyStyle,\r\n };\r\n }\r\n const props = {\r\n closable,\r\n maskClosable: false,\r\n width: 700,\r\n ...this.props,\r\n closable: false,\r\n title: title,\r\n wrapClassName: wrapClassName,\r\n bodyStyle: bodyStyle,\r\n style: {\r\n ...this.props.style,\r\n ...(maximizable ? {} : transformStyle),\r\n },\r\n };\r\n return this.props.visible ? <Modal {...props}>{this.props.children}</Modal> : null;\r\n }\r\n}\r\nVtxModal.info = Modal.info;\r\nVtxModal.success = Modal.success;\r\nVtxModal.error = Modal.error;\r\nVtxModal.warning = Modal.warning;\r\nVtxModal.confirm = Modal.confirm;\r\n\r\nexport default VtxModal;\r\n"],"mappings":";;;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,MAAA,GAAAF,sBAAA,CAAAC,OAAA;AACA,IAAAE,MAAA,GAAAF,OAAA;AAAqF,SAAAD,uBAAAI,GAAA,WAAAA,GAAA,IAAAA,GAAA,CAAAC,UAAA,GAAAD,GAAA,gBAAAA,GAAA;AAAA,SAAAE,QAAAC,CAAA,EAAAC,CAAA,QAAAC,CAAA,GAAAC,MAAA,CAAAC,IAAA,CAAAJ,CAAA,OAAAG,MAAA,CAAAE,qBAAA,QAAAC,CAAA,GAAAH,MAAA,CAAAE,qBAAA,CAAAL,CAAA,GAAAC,CAAA,KAAAK,CAAA,GAAAA,CAAA,CAAAC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;QAAI,GACvCF,SAAS,CACf;MACL;MACA,IAAM9H,KAAK,GAAAnB,aAAA,CAAAA,aAAA;QACP4H,QAAQ,EAARA,QAAQ;QACRwB,YAAY,EAAE,KAAK;QACnBC,KAAK,EAAE;MAAG,GACP,IAAI,CAAClI,KAAK;QACbyG,QAAQ,EAAE,KAAK;QACfpD,KAAK,EAAEA,KAAK;QACZwD,aAAa,EAAEA,aAAa;QAC5BiB,SAAS,EAAEA,SAAS;QACpBrC,KAAK,EAAA5G,aAAA,CAAAA,aAAA,KACE,IAAI,CAACmB,KAAK,CAACyF,KAAK,GACfnB,WAAW,GAAG,CAAC,CAAC,GAAG2C,cAAc;MACxC,EACJ;MACD,OAAO,IAAI,CAACjH,KAAK,CAACoE,OAAO,gBAAG3G,MAAA,YAAA2J,aAAA,CAACxJ,MAAA,WAAK,EAAKoC,KAAK,EAAG,IAAI,CAACA,KAAK,CAACmI,QAAgB,CAAC,GAAG,IAAI;IACtF;EAAC;EAAA,OAAA1E,QAAA;AAAA,EA9JkB2E,iBAAK,CAACC,SAAS;AAgKtC5E,QAAQ,CAAC6E,IAAI,GAAGC,iBAAK,CAACD,IAAI;AAC1B7E,QAAQ,CAAC+E,OAAO,GAAGD,iBAAK,CAACC,OAAO;AAChC/E,QAAQ,CAACmC,KAAK,GAAG2C,iBAAK,CAAC3C,KAAK;AAC5BnC,QAAQ,CAACgF,OAAO,GAAGF,iBAAK,CAACE,OAAO;AAChChF,QAAQ,CAACiF,OAAO,GAAGH,iBAAK,CAACG,OAAO;AAAC,IAAAC,QAAA,GAAAC,OAAA,cAElBnF,QAAQ"}
|
|
@@ -0,0 +1,338 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
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
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
exports["default"] = void 0;
|
|
8
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
9
|
+
var _map = _interopRequireDefault(require("../map"));
|
|
10
|
+
var _featureDraw = _interopRequireDefault(require("../feature-draw"));
|
|
11
|
+
var _VtxModal = _interopRequireDefault(require("./VtxModal"));
|
|
12
|
+
var _button = _interopRequireDefault(require("antd/lib/button"));
|
|
13
|
+
var _location = _interopRequireDefault(require("../assets/location.png"));
|
|
14
|
+
var _noLocation = _interopRequireDefault(require("../assets/noLocation.png"));
|
|
15
|
+
var _icons = require("@ant-design/icons");
|
|
16
|
+
var _ol = require("ol");
|
|
17
|
+
var _geom = require("ol/geom");
|
|
18
|
+
var _Marker = _interopRequireDefault(require("../marker/Marker"));
|
|
19
|
+
var _Polygon = _interopRequireDefault(require("../polygon/Polygon"));
|
|
20
|
+
var _Circle = _interopRequireDefault(require("../circle/Circle"));
|
|
21
|
+
var _Polyline = _interopRequireDefault(require("../polyline/Polyline"));
|
|
22
|
+
var _Search = _interopRequireDefault(require("../poi-search/Search"));
|
|
23
|
+
var _PoiList = _interopRequireDefault(require("../poi-search/PoiList"));
|
|
24
|
+
var _FeatureLayer = _interopRequireDefault(require("../feature-layer/FeatureLayer"));
|
|
25
|
+
var _search = require("../_util/search");
|
|
26
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
27
|
+
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); }
|
|
28
|
+
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; }
|
|
29
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
30
|
+
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."); }
|
|
31
|
+
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); }
|
|
32
|
+
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; }
|
|
33
|
+
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; } }
|
|
34
|
+
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
35
|
+
var styles = {
|
|
36
|
+
searchModal: 'vtx-ui-searchmap-searchmodal',
|
|
37
|
+
searchMap: 'vtx-ui-searchmap-searchmap',
|
|
38
|
+
top: 'vtx-ui-searchmap-top',
|
|
39
|
+
bottom: 'vtx-ui-searchmap-bottom',
|
|
40
|
+
content: 'vtx-ui-searchmap-content',
|
|
41
|
+
content_right: 'vtx-ui-searchmap-content_right'
|
|
42
|
+
};
|
|
43
|
+
var _default = exports["default"] = function _default(props) {
|
|
44
|
+
var mapRef = (0, _react.useRef)();
|
|
45
|
+
var _props$mapCenter = props.mapCenter,
|
|
46
|
+
mapCenter = _props$mapCenter === void 0 ? [116.391349, 39.907375] : _props$mapCenter,
|
|
47
|
+
_props$modalVisible = props.modalVisible,
|
|
48
|
+
modalVisible = _props$modalVisible === void 0 ? false : _props$modalVisible,
|
|
49
|
+
graphicType = props.graphicType,
|
|
50
|
+
closeModal = props.closeModal,
|
|
51
|
+
callback = props.callback,
|
|
52
|
+
editParam = props.editParam,
|
|
53
|
+
drawParameter = props.drawParameter;
|
|
54
|
+
var _useState = (0, _react.useState)(null),
|
|
55
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
56
|
+
feature = _useState2[0],
|
|
57
|
+
setFeature = _useState2[1];
|
|
58
|
+
var _useState3 = (0, _react.useState)([]),
|
|
59
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
|
60
|
+
callbackData = _useState4[0],
|
|
61
|
+
setCallbackData = _useState4[1];
|
|
62
|
+
var _useState5 = (0, _react.useState)(0),
|
|
63
|
+
_useState6 = _slicedToArray(_useState5, 2),
|
|
64
|
+
refresh = _useState6[0],
|
|
65
|
+
setRefresh = _useState6[1];
|
|
66
|
+
var _useState7 = (0, _react.useState)(graphicType),
|
|
67
|
+
_useState8 = _slicedToArray(_useState7, 2),
|
|
68
|
+
drawType = _useState8[0],
|
|
69
|
+
setDrawType = _useState8[1];
|
|
70
|
+
var _useState9 = (0, _react.useState)({}),
|
|
71
|
+
_useState10 = _slicedToArray(_useState9, 2),
|
|
72
|
+
poi = _useState10[0],
|
|
73
|
+
setPoi = _useState10[1];
|
|
74
|
+
var _useState11 = (0, _react.useState)(0),
|
|
75
|
+
_useState12 = _slicedToArray(_useState11, 2),
|
|
76
|
+
clearFlag = _useState12[0],
|
|
77
|
+
setClearFlag = _useState12[1];
|
|
78
|
+
(0, _react.useEffect)(function () {
|
|
79
|
+
setDrawType(graphicType);
|
|
80
|
+
}, [graphicType]);
|
|
81
|
+
(0, _react.useEffect)(function () {
|
|
82
|
+
if (mapRef !== null && mapRef !== void 0 && mapRef.current && graphicType && editParam) {
|
|
83
|
+
switch (graphicType) {
|
|
84
|
+
case 'Marker':
|
|
85
|
+
var featureA = new _ol.Feature();
|
|
86
|
+
var geometryA = new _geom.Point(editParam);
|
|
87
|
+
setCallbackData(editParam);
|
|
88
|
+
featureA.setGeometry(geometryA);
|
|
89
|
+
featureA.setStyle(new _Marker["default"]({
|
|
90
|
+
image: _location["default"],
|
|
91
|
+
scale: 1
|
|
92
|
+
}));
|
|
93
|
+
setFeature(featureA);
|
|
94
|
+
break;
|
|
95
|
+
case 'DragBox':
|
|
96
|
+
case 'Polygon':
|
|
97
|
+
var featureB = new _ol.Feature();
|
|
98
|
+
var geometryB = new _geom.Polygon(editParam);
|
|
99
|
+
setCallbackData(editParam);
|
|
100
|
+
featureB.setGeometry(geometryB);
|
|
101
|
+
if (drawParameter) {
|
|
102
|
+
featureB.setStyle(new _Polygon["default"](drawParameter));
|
|
103
|
+
}
|
|
104
|
+
setFeature(featureB);
|
|
105
|
+
break;
|
|
106
|
+
case 'Circle':
|
|
107
|
+
var featureC = new _ol.Feature();
|
|
108
|
+
if ((editParam === null || editParam === void 0 ? void 0 : editParam.length) == 3) {
|
|
109
|
+
var metersPerUnit = mapRef.current.getView().getProjection().getMetersPerUnit();
|
|
110
|
+
var geometryC = new _geom.Circle([editParam[0], editParam[1]], editParam[2] / metersPerUnit, 'XY');
|
|
111
|
+
setCallbackData(editParam);
|
|
112
|
+
featureC.setGeometry(geometryC);
|
|
113
|
+
}
|
|
114
|
+
if (drawParameter) {
|
|
115
|
+
featureC.setStyle(new _Circle["default"](drawParameter));
|
|
116
|
+
}
|
|
117
|
+
setFeature(featureC);
|
|
118
|
+
break;
|
|
119
|
+
case 'LineString':
|
|
120
|
+
var featureD = new _ol.Feature();
|
|
121
|
+
var geometryD = new _geom.LineString(editParam);
|
|
122
|
+
setCallbackData(editParam);
|
|
123
|
+
featureD.setGeometry(geometryD);
|
|
124
|
+
if (drawParameter) {
|
|
125
|
+
featureD.setStyle(new _Polyline["default"](drawParameter));
|
|
126
|
+
}
|
|
127
|
+
setFeature(featureD);
|
|
128
|
+
break;
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
}, [refresh]);
|
|
132
|
+
(0, _react.useEffect)(function () {
|
|
133
|
+
if (!modalVisible) {
|
|
134
|
+
setFeature(null);
|
|
135
|
+
setPoi({});
|
|
136
|
+
}
|
|
137
|
+
}, [modalVisible]);
|
|
138
|
+
var onCancel = function onCancel() {
|
|
139
|
+
closeModal && closeModal();
|
|
140
|
+
};
|
|
141
|
+
var submit = function submit() {
|
|
142
|
+
if (graphicType == 'Marker') {
|
|
143
|
+
(0, _search.regeoSearch)({
|
|
144
|
+
location: callbackData,
|
|
145
|
+
extensions: 'all'
|
|
146
|
+
}).then(function (res) {
|
|
147
|
+
callback && callback(callbackData, res);
|
|
148
|
+
});
|
|
149
|
+
} else {
|
|
150
|
+
callback && callback(callbackData);
|
|
151
|
+
}
|
|
152
|
+
};
|
|
153
|
+
var redraw = function redraw() {
|
|
154
|
+
setFeature(null);
|
|
155
|
+
setDrawType('');
|
|
156
|
+
setTimeout(function () {
|
|
157
|
+
setDrawType(graphicType);
|
|
158
|
+
}, 100);
|
|
159
|
+
};
|
|
160
|
+
var onListClick = function onListClick(data) {
|
|
161
|
+
if (graphicType == 'Marker') {
|
|
162
|
+
var _data$geometryInfo$ln, _data$geometryInfo$ln2;
|
|
163
|
+
var _feature = new _ol.Feature();
|
|
164
|
+
var geometry = new _geom.Point((_data$geometryInfo$ln = data.geometryInfo.lngLats) === null || _data$geometryInfo$ln === void 0 ? void 0 : _data$geometryInfo$ln.split(','));
|
|
165
|
+
setCallbackData((_data$geometryInfo$ln2 = data.geometryInfo.lngLats) === null || _data$geometryInfo$ln2 === void 0 ? void 0 : _data$geometryInfo$ln2.split(','));
|
|
166
|
+
_feature.setGeometry(geometry);
|
|
167
|
+
_feature.setStyle(new _Marker["default"]({
|
|
168
|
+
image: _location["default"],
|
|
169
|
+
scale: 1
|
|
170
|
+
}));
|
|
171
|
+
setFeature(_feature);
|
|
172
|
+
} else {
|
|
173
|
+
var selectLayer = mapRef.current.getLayerByKey('SELECT_LOCATION');
|
|
174
|
+
selectLayer.loadData(data);
|
|
175
|
+
}
|
|
176
|
+
};
|
|
177
|
+
var createdMap = function createdMap(map) {
|
|
178
|
+
var layer = new _FeatureLayer["default"]({
|
|
179
|
+
key: 'LOCATION',
|
|
180
|
+
style: {
|
|
181
|
+
mode: 'Simple',
|
|
182
|
+
render: {
|
|
183
|
+
type: 'Marker',
|
|
184
|
+
style: {
|
|
185
|
+
image: _noLocation["default"],
|
|
186
|
+
scale: 1
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
},
|
|
190
|
+
labelField: 'name'
|
|
191
|
+
});
|
|
192
|
+
map.addLayer(layer);
|
|
193
|
+
var selectLayer = new _FeatureLayer["default"]({
|
|
194
|
+
key: 'SELECT_LOCATION',
|
|
195
|
+
style: {
|
|
196
|
+
mode: 'Simple',
|
|
197
|
+
render: {
|
|
198
|
+
type: 'Marker',
|
|
199
|
+
style: {
|
|
200
|
+
image: _location["default"],
|
|
201
|
+
scale: 1
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
}
|
|
205
|
+
});
|
|
206
|
+
map.addLayer(selectLayer);
|
|
207
|
+
mapRef.current = map;
|
|
208
|
+
setRefresh(Math.random());
|
|
209
|
+
};
|
|
210
|
+
var pairArray = function pairArray(arr) {
|
|
211
|
+
return arr.reduce(function (acc, curr, index) {
|
|
212
|
+
if (index % 2 === 0) {
|
|
213
|
+
acc.push([curr]);
|
|
214
|
+
} else {
|
|
215
|
+
acc[acc.length - 1].push(curr);
|
|
216
|
+
}
|
|
217
|
+
return acc;
|
|
218
|
+
}, []);
|
|
219
|
+
};
|
|
220
|
+
var onDrawEnd = function onDrawEnd(feature, distance) {
|
|
221
|
+
var _feature$getGeometry$, _feature$getGeometry$2, _feature$getGeometry$3;
|
|
222
|
+
console.log(feature, feature.getGeometry(), distance);
|
|
223
|
+
switch (graphicType) {
|
|
224
|
+
case 'Marker':
|
|
225
|
+
setCallbackData(feature.getGeometry().flatCoordinates);
|
|
226
|
+
break;
|
|
227
|
+
case 'DragBox':
|
|
228
|
+
var dataB = (_feature$getGeometry$ = feature.getGeometry().flatCoordinates) === null || _feature$getGeometry$ === void 0 ? void 0 : _feature$getGeometry$.slice(0, -2);
|
|
229
|
+
setCallbackData([pairArray(dataB)]);
|
|
230
|
+
break;
|
|
231
|
+
case 'Polygon':
|
|
232
|
+
var dataC = (_feature$getGeometry$2 = feature.getGeometry().flatCoordinates) === null || _feature$getGeometry$2 === void 0 ? void 0 : _feature$getGeometry$2.slice(0, -2);
|
|
233
|
+
setCallbackData([pairArray(dataC)]);
|
|
234
|
+
break;
|
|
235
|
+
case 'Circle':
|
|
236
|
+
var dataD = (_feature$getGeometry$3 = feature.getGeometry().flatCoordinates) === null || _feature$getGeometry$3 === void 0 ? void 0 : _feature$getGeometry$3.slice(0, -2);
|
|
237
|
+
var metersPerUnit = mapRef.current.getView().getProjection().getMetersPerUnit();
|
|
238
|
+
var radius = feature.getGeometry().getRadius() * metersPerUnit;
|
|
239
|
+
dataD.push(radius);
|
|
240
|
+
setCallbackData(dataD);
|
|
241
|
+
break;
|
|
242
|
+
case 'LineString':
|
|
243
|
+
var dataE = feature.getGeometry().flatCoordinates;
|
|
244
|
+
setCallbackData(pairArray(dataE));
|
|
245
|
+
break;
|
|
246
|
+
}
|
|
247
|
+
};
|
|
248
|
+
var closeSearch = function closeSearch() {
|
|
249
|
+
setPoi({});
|
|
250
|
+
setClearFlag(Math.random());
|
|
251
|
+
var selectLayer = mapRef.current.getLayerByKey('SELECT_LOCATION');
|
|
252
|
+
var noSelectLayer = mapRef.current.getLayerByKey('LOCATION');
|
|
253
|
+
selectLayer.loadData({});
|
|
254
|
+
noSelectLayer.loadData({});
|
|
255
|
+
};
|
|
256
|
+
var checkPoint = function checkPoint() {
|
|
257
|
+
var center = mapRef.current.getView().getCenter();
|
|
258
|
+
var feature = new _ol.Feature();
|
|
259
|
+
var geometry = new _geom.Point(center);
|
|
260
|
+
setCallbackData(center);
|
|
261
|
+
feature.setGeometry(geometry);
|
|
262
|
+
feature.setStyle(new _Marker["default"]({
|
|
263
|
+
image: _location["default"],
|
|
264
|
+
scale: 1
|
|
265
|
+
}));
|
|
266
|
+
setFeature(feature);
|
|
267
|
+
};
|
|
268
|
+
return modalVisible ? /*#__PURE__*/_react["default"].createElement(_VtxModal["default"], {
|
|
269
|
+
title: graphicType == 'point' ? '定位' : '绘制',
|
|
270
|
+
style: {
|
|
271
|
+
top: 50
|
|
272
|
+
},
|
|
273
|
+
visible: modalVisible,
|
|
274
|
+
maximize: false,
|
|
275
|
+
isNotMoving: true,
|
|
276
|
+
wrapClassName: styles.searchModal,
|
|
277
|
+
bodyStyle: {
|
|
278
|
+
height: "".concat(window.innerHeight * 0.7, "px")
|
|
279
|
+
},
|
|
280
|
+
maskClosable: false,
|
|
281
|
+
onCancel: onCancel,
|
|
282
|
+
footer: /*#__PURE__*/_react["default"].createElement("div", {
|
|
283
|
+
className: styles.bottom
|
|
284
|
+
}, /*#__PURE__*/_react["default"].createElement(_button["default"], {
|
|
285
|
+
type: "primary",
|
|
286
|
+
icon: /*#__PURE__*/_react["default"].createElement(_icons.CheckOutlined, null),
|
|
287
|
+
onClick: submit
|
|
288
|
+
}, "\u786E\u5B9A"), /*#__PURE__*/_react["default"].createElement(_button["default"], {
|
|
289
|
+
icon: /*#__PURE__*/_react["default"].createElement(_icons.CloseOutlined, null),
|
|
290
|
+
onClick: onCancel
|
|
291
|
+
}, "\u5173\u95ED"))
|
|
292
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
293
|
+
className: styles.searchMap
|
|
294
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
295
|
+
className: styles.top
|
|
296
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
297
|
+
style: {
|
|
298
|
+
width: '350px'
|
|
299
|
+
}
|
|
300
|
+
}, /*#__PURE__*/_react["default"].createElement(_Search["default"], {
|
|
301
|
+
onConfirm: setPoi,
|
|
302
|
+
clearFlag: clearFlag
|
|
303
|
+
})), /*#__PURE__*/_react["default"].createElement(_button["default"], {
|
|
304
|
+
key: "3",
|
|
305
|
+
icon: /*#__PURE__*/_react["default"].createElement(_icons.CloseOutlined, null),
|
|
306
|
+
onClick: closeSearch
|
|
307
|
+
}, "\u6E05\u7A7A"), graphicType == 'Marker' ? /*#__PURE__*/_react["default"].createElement(_button["default"], {
|
|
308
|
+
icon: /*#__PURE__*/_react["default"].createElement(_icons.EnvironmentOutlined, null),
|
|
309
|
+
onClick: checkPoint
|
|
310
|
+
}, "\u6821\u6B63") : /*#__PURE__*/_react["default"].createElement(_button["default"], {
|
|
311
|
+
icon: /*#__PURE__*/_react["default"].createElement(_icons.EditOutlined, null),
|
|
312
|
+
onClick: redraw
|
|
313
|
+
}, "\u91CD\u65B0\u7ED8\u5236")), /*#__PURE__*/_react["default"].createElement("div", {
|
|
314
|
+
className: styles.content
|
|
315
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
316
|
+
className: styles.content_right
|
|
317
|
+
}, /*#__PURE__*/_react["default"].createElement(_map["default"], {
|
|
318
|
+
height: {
|
|
319
|
+
height: "".concat(window.innerHeight * 0.7, "px")
|
|
320
|
+
},
|
|
321
|
+
center: mapCenter,
|
|
322
|
+
zoom: 10,
|
|
323
|
+
tk: "1adbb6e47668cb33757cd799548bf1f4",
|
|
324
|
+
createdMap: createdMap
|
|
325
|
+
}, /*#__PURE__*/_react["default"].createElement(_featureDraw["default"], {
|
|
326
|
+
feature: feature,
|
|
327
|
+
drawType: drawType,
|
|
328
|
+
onDrawEnd: onDrawEnd,
|
|
329
|
+
markerStyle: {
|
|
330
|
+
image: _location["default"],
|
|
331
|
+
scale: 1
|
|
332
|
+
}
|
|
333
|
+
}), (poi === null || poi === void 0 ? void 0 : poi.address) && /*#__PURE__*/_react["default"].createElement(_PoiList["default"], {
|
|
334
|
+
poi: poi,
|
|
335
|
+
onClick: onListClick
|
|
336
|
+
})))))) : null;
|
|
337
|
+
};
|
|
338
|
+
//# sourceMappingURL=index.js.map
|