@vtx/map 1.1.6 → 1.1.9
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/VtxMap/AMap/AMap.js +3287 -2990
- package/lib/VtxMap/AMap/AMap.js.map +1 -0
- package/lib/VtxMap/BMap/Map.js +3517 -3146
- package/lib/VtxMap/BMap/Map.js.map +1 -0
- package/lib/VtxMap/GMap/Map.js +4572 -4021
- package/lib/VtxMap/GMap/Map.js.map +1 -0
- package/lib/VtxMap/Map.js +77 -63
- package/lib/VtxMap/Map.js.map +1 -0
- package/lib/VtxMap/MapToolFunction.js +422 -370
- package/lib/VtxMap/MapToolFunction.js.map +1 -0
- package/lib/VtxMap/OMap/Map.css +2 -2
- package/lib/VtxMap/OMap/Map.js +4345 -3782
- package/lib/VtxMap/OMap/Map.js.map +1 -0
- package/lib/VtxMap/OlMap/Map.css +4 -1
- package/lib/VtxMap/OlMap/Map.js +3921 -3181
- package/lib/VtxMap/OlMap/Map.js.map +1 -0
- package/lib/VtxMap/TMap/TMap.css +0 -1
- package/lib/VtxMap/TMap/TMap.js +3475 -3139
- package/lib/VtxMap/TMap/TMap.js.map +1 -0
- package/lib/VtxMap/index.js +37 -24
- package/lib/VtxMap/index.js.map +1 -0
- package/lib/VtxMap/mapPlayer.js +353 -308
- package/lib/VtxMap/mapPlayer.js.map +1 -0
- package/lib/VtxMap/optimizingPointMap.js +245 -205
- package/lib/VtxMap/optimizingPointMap.js.map +1 -0
- package/lib/VtxMap/style/css.js +16 -0
- package/lib/VtxMap/style/css.js.map +1 -0
- package/lib/VtxMap/style/index.js +16 -0
- package/lib/VtxMap/style/index.js.map +1 -0
- package/lib/VtxMap/zoomMap.js +120 -101
- package/lib/VtxMap/zoomMap.js.map +1 -0
- package/lib/VtxModal/VtxModal.css +62 -0
- package/lib/VtxModal/VtxModal.js +223 -213
- package/lib/VtxModal/VtxModal.js.map +1 -0
- package/lib/VtxModal/VtxModal.less +2 -2
- package/lib/VtxModal/VtxModalAntd3.css +62 -0
- package/lib/VtxModal/VtxModalAntd3.less +67 -0
- package/lib/VtxModal/draggableModal.js +138 -119
- package/lib/VtxModal/draggableModal.js.map +1 -0
- package/lib/VtxModal/index.js +21 -14
- package/lib/VtxModal/index.js.map +1 -0
- package/lib/VtxModal/style/css.js +21 -0
- package/lib/VtxModal/style/css.js.map +1 -0
- package/lib/VtxModal/style/index.js +21 -0
- package/lib/VtxModal/style/index.js.map +1 -0
- package/lib/VtxSearchMap/VtxSearchMap.css +171 -0
- package/lib/VtxSearchMap/VtxSearchMap.js +864 -819
- package/lib/VtxSearchMap/VtxSearchMap.js.map +1 -0
- package/lib/VtxSearchMap/VtxSearchMapAntd3.css +0 -0
- package/lib/VtxSearchMap/VtxSearchMapAntd3.less +1 -0
- package/lib/VtxSearchMap/index.js +9 -9
- package/lib/VtxSearchMap/index.js.map +1 -0
- package/lib/VtxSearchMap/mapping.js +15 -12
- package/lib/VtxSearchMap/mapping.js.map +1 -0
- package/lib/VtxSearchMap/style/css.js +47 -0
- package/lib/VtxSearchMap/style/css.js.map +1 -0
- package/lib/VtxSearchMap/style/index.js +47 -0
- package/lib/VtxSearchMap/style/index.js.map +1 -0
- package/lib/default.js +32 -27
- package/lib/default.js.map +1 -0
- package/lib/index.js +9 -10
- package/lib/index.js.map +1 -0
- package/package.json +25 -4
package/lib/VtxMap/Map.js
CHANGED
|
@@ -1,90 +1,104 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
2
4
|
|
|
3
5
|
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
|
|
6
|
+
value: true
|
|
5
7
|
});
|
|
8
|
+
exports["default"] = void 0;
|
|
9
|
+
|
|
10
|
+
var _react = _interopRequireDefault(require("react"));
|
|
6
11
|
|
|
7
|
-
var
|
|
12
|
+
var _AMap = _interopRequireDefault(require("./AMap/AMap"));
|
|
8
13
|
|
|
9
|
-
var
|
|
14
|
+
var _Map = _interopRequireDefault(require("./BMap/Map"));
|
|
10
15
|
|
|
11
|
-
var
|
|
16
|
+
var _TMap = _interopRequireDefault(require("./TMap/TMap"));
|
|
12
17
|
|
|
13
|
-
var
|
|
18
|
+
var _Map2 = _interopRequireDefault(require("./GMap/Map"));
|
|
14
19
|
|
|
15
|
-
var
|
|
20
|
+
var _Map3 = _interopRequireDefault(require("./OlMap/Map"));
|
|
16
21
|
|
|
17
|
-
var
|
|
22
|
+
var _excluded = ["mapType", "getMapInstance"];
|
|
18
23
|
|
|
19
|
-
|
|
24
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
20
25
|
|
|
21
|
-
var
|
|
26
|
+
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
22
27
|
|
|
23
|
-
var
|
|
28
|
+
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
24
29
|
|
|
25
|
-
|
|
30
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
26
31
|
|
|
27
|
-
var
|
|
32
|
+
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, descriptor.key, descriptor); } }
|
|
28
33
|
|
|
29
|
-
|
|
34
|
+
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
35
|
|
|
31
|
-
|
|
36
|
+
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); }
|
|
32
37
|
|
|
33
|
-
|
|
38
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
34
39
|
|
|
35
|
-
function
|
|
40
|
+
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); }; }
|
|
36
41
|
|
|
37
|
-
function
|
|
42
|
+
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); }
|
|
38
43
|
|
|
39
|
-
function
|
|
44
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
45
|
+
|
|
46
|
+
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; } }
|
|
47
|
+
|
|
48
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
49
|
+
|
|
50
|
+
var VtxMap = /*#__PURE__*/function (_React$Component) {
|
|
51
|
+
_inherits(VtxMap, _React$Component);
|
|
40
52
|
|
|
41
|
-
|
|
53
|
+
var _super = _createSuper(VtxMap);
|
|
42
54
|
|
|
43
|
-
function
|
|
55
|
+
function VtxMap(props) {
|
|
56
|
+
_classCallCheck(this, VtxMap);
|
|
44
57
|
|
|
45
|
-
|
|
46
|
-
|
|
58
|
+
return _super.call(this, props);
|
|
59
|
+
}
|
|
47
60
|
|
|
48
|
-
|
|
49
|
-
|
|
61
|
+
_createClass(VtxMap, [{
|
|
62
|
+
key: "render",
|
|
63
|
+
value: function render() {
|
|
64
|
+
var t = this;
|
|
50
65
|
|
|
51
|
-
|
|
66
|
+
var _t$props = t.props,
|
|
67
|
+
mapType = _t$props.mapType,
|
|
68
|
+
getMapInstance = _t$props.getMapInstance,
|
|
69
|
+
newProps = _objectWithoutProperties(_t$props, _excluded);
|
|
70
|
+
|
|
71
|
+
if (typeof getMapInstance == 'function') {
|
|
72
|
+
newProps.ref = function (map) {
|
|
73
|
+
if (map) {
|
|
74
|
+
getMapInstance(map);
|
|
75
|
+
}
|
|
76
|
+
};
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
switch (mapType) {
|
|
80
|
+
case 'amap':
|
|
81
|
+
return /*#__PURE__*/_react["default"].createElement(_AMap["default"], newProps);
|
|
82
|
+
|
|
83
|
+
case 'tmap':
|
|
84
|
+
return /*#__PURE__*/_react["default"].createElement(_TMap["default"], newProps);
|
|
85
|
+
|
|
86
|
+
case 'gmap':
|
|
87
|
+
return /*#__PURE__*/_react["default"].createElement(_Map2["default"], newProps);
|
|
88
|
+
|
|
89
|
+
case 'olmap':
|
|
90
|
+
return /*#__PURE__*/_react["default"].createElement(_Map3["default"], newProps);
|
|
91
|
+
|
|
92
|
+
default:
|
|
93
|
+
return /*#__PURE__*/_react["default"].createElement(_Map["default"], newProps);
|
|
94
|
+
}
|
|
52
95
|
}
|
|
96
|
+
}]);
|
|
97
|
+
|
|
98
|
+
return VtxMap;
|
|
99
|
+
}(_react["default"].Component);
|
|
53
100
|
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
var _t$props = t.props,
|
|
60
|
-
mapType = _t$props.mapType,
|
|
61
|
-
getMapInstance = _t$props.getMapInstance,
|
|
62
|
-
newProps = _objectWithoutProperties(_t$props, ['mapType', 'getMapInstance']);
|
|
63
|
-
|
|
64
|
-
if (typeof getMapInstance == 'function') {
|
|
65
|
-
newProps.ref = function (map) {
|
|
66
|
-
if (map) {
|
|
67
|
-
getMapInstance(map);
|
|
68
|
-
}
|
|
69
|
-
};
|
|
70
|
-
}
|
|
71
|
-
switch (mapType) {
|
|
72
|
-
case 'amap':
|
|
73
|
-
return _react2.default.createElement(_AMap2.default, newProps);
|
|
74
|
-
case 'tmap':
|
|
75
|
-
return _react2.default.createElement(_TMap2.default, newProps);
|
|
76
|
-
case 'gmap':
|
|
77
|
-
return _react2.default.createElement(_Map4.default, newProps);
|
|
78
|
-
case 'olmap':
|
|
79
|
-
return _react2.default.createElement(_Map6.default, newProps);
|
|
80
|
-
default:
|
|
81
|
-
return _react2.default.createElement(_Map2.default, newProps);
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
}]);
|
|
85
|
-
|
|
86
|
-
return VtxMap;
|
|
87
|
-
}(_react2.default.Component);
|
|
88
|
-
|
|
89
|
-
exports.default = VtxMap;
|
|
90
|
-
module.exports = exports['default'];
|
|
101
|
+
var _default = VtxMap;
|
|
102
|
+
exports["default"] = _default;
|
|
103
|
+
module.exports = exports["default"];
|
|
104
|
+
//# sourceMappingURL=Map.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Map.js","names":["VtxMap","props","t","mapType","getMapInstance","newProps","ref","map","React","Component"],"sources":["VtxMap/Map.js"],"sourcesContent":["import React from 'react';\r\nimport AMap from './AMap/AMap';\r\nimport BMap from './BMap/Map';\r\nimport TMap from './TMap/TMap';\r\nimport GMap from './GMap/Map';\r\nimport OlMap from './OlMap/Map';\r\n\r\nclass VtxMap extends React.Component {\r\n constructor(props){\r\n super(props);\r\n }\r\n render(){\r\n const t = this;\r\n let {mapType,getMapInstance,...newProps} = t.props;\r\n if(typeof(getMapInstance)=='function'){\r\n newProps.ref=(map)=>{\r\n if(map){\r\n getMapInstance(map);\r\n }\r\n }\r\n }\r\n switch(mapType){\r\n case 'amap':\r\n return (<AMap {...newProps}></AMap>);\r\n case 'tmap':\r\n return (<TMap {...newProps}></TMap>);\r\n case 'gmap':\r\n return (<GMap {...newProps}></GMap>);\r\n case 'olmap':\r\n return (<OlMap {...newProps}></OlMap>);\r\n default:\r\n return (<BMap {...newProps}></BMap>);\r\n }\r\n }\r\n}\r\n\r\nexport default VtxMap;"],"mappings":";;;;;;;;;AAAA;;AACA;;AACA;;AACA;;AACA;;AACA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAEMA,M;;;;;EACF,gBAAYC,KAAZ,EAAkB;IAAA;;IAAA,yBACRA,KADQ;EAEjB;;;;WACD,kBAAQ;MACJ,IAAMC,CAAC,GAAG,IAAV;;MACA,eAA2CA,CAAC,CAACD,KAA7C;MAAA,IAAKE,OAAL,YAAKA,OAAL;MAAA,IAAaC,cAAb,YAAaA,cAAb;MAAA,IAA+BC,QAA/B;;MACA,IAAG,OAAOD,cAAP,IAAwB,UAA3B,EAAsC;QAClCC,QAAQ,CAACC,GAAT,GAAa,UAACC,GAAD,EAAO;UAChB,IAAGA,GAAH,EAAO;YACHH,cAAc,CAACG,GAAD,CAAd;UACH;QACJ,CAJD;MAKH;;MACD,QAAOJ,OAAP;QACI,KAAK,MAAL;UACI,oBAAQ,gCAAC,gBAAD,EAAUE,QAAV,CAAR;;QACJ,KAAK,MAAL;UACI,oBAAQ,gCAAC,gBAAD,EAAUA,QAAV,CAAR;;QACJ,KAAK,MAAL;UACI,oBAAQ,gCAAC,gBAAD,EAAUA,QAAV,CAAR;;QACJ,KAAK,OAAL;UACI,oBAAQ,gCAAC,gBAAD,EAAWA,QAAX,CAAR;;QACJ;UACI,oBAAQ,gCAAC,eAAD,EAAUA,QAAV,CAAR;MAVR;IAYH;;;;EA1BgBG,iBAAA,CAAMC,S;;eA6BZT,M"}
|