@vtx/map 1.2.38 → 2.0.0-beta.2

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 (60) hide show
  1. package/README.md +44 -44
  2. package/lib/VtxMap/AMap/AMap.js +37 -35
  3. package/lib/VtxMap/AMap/AMap.js.map +1 -1
  4. package/lib/VtxMap/BMap/Map.js +60 -57
  5. package/lib/VtxMap/BMap/Map.js.map +1 -1
  6. package/lib/VtxMap/GMap/Map.js +38 -39
  7. package/lib/VtxMap/GMap/Map.js.map +1 -1
  8. package/lib/VtxMap/MapToolFunction.js +0 -9
  9. package/lib/VtxMap/MapToolFunction.js.map +1 -1
  10. package/lib/VtxMap/OMap/Map.js +65 -62
  11. package/lib/VtxMap/OMap/Map.js.map +1 -1
  12. package/lib/VtxMap/OMap/Map.less +70 -70
  13. package/lib/VtxMap/OlMap/Map.js +77 -101
  14. package/lib/VtxMap/OlMap/Map.js.map +1 -1
  15. package/lib/VtxMap/OlMap/Map.less +230 -230
  16. package/lib/VtxMap/TMap/TMap.js +58 -56
  17. package/lib/VtxMap/TMap/TMap.js.map +1 -1
  18. package/lib/VtxMap/index.js +0 -18
  19. package/lib/VtxMap/index.js.map +1 -1
  20. package/lib/VtxMap/optimizingPointMap.js +21 -23
  21. package/lib/VtxMap/optimizingPointMap.js.map +1 -1
  22. package/lib/VtxModal/VtxModal.css +76 -18
  23. package/lib/VtxModal/VtxModal.js +16 -13
  24. package/lib/VtxModal/VtxModal.js.map +1 -1
  25. package/lib/VtxModal/VtxModal.less +117 -50
  26. package/lib/VtxModal/style/css.js +1 -12
  27. package/lib/VtxModal/style/css.js.map +1 -1
  28. package/lib/VtxModal/style/index.js +1 -12
  29. package/lib/VtxModal/style/index.js.map +1 -1
  30. package/lib/VtxSearchCheckMap/VtxSearchCheckMap.css +45 -63
  31. package/lib/VtxSearchCheckMap/VtxSearchCheckMap.js +35 -36
  32. package/lib/VtxSearchCheckMap/VtxSearchCheckMap.js.map +1 -1
  33. package/lib/VtxSearchCheckMap/VtxSearchCheckMap.less +73 -68
  34. package/lib/VtxSearchCheckMap/index.js.map +1 -1
  35. package/lib/VtxSearchCheckMap/mapping.js.map +1 -1
  36. package/lib/VtxSearchCheckMap/style/css.js +2 -18
  37. package/lib/VtxSearchCheckMap/style/css.js.map +1 -1
  38. package/lib/VtxSearchCheckMap/style/index.js +2 -18
  39. package/lib/VtxSearchCheckMap/style/index.js.map +1 -1
  40. package/lib/VtxSearchMap/VtxSearchMap.css +44 -60
  41. package/lib/VtxSearchMap/VtxSearchMap.js +59 -68
  42. package/lib/VtxSearchMap/VtxSearchMap.js.map +1 -1
  43. package/lib/VtxSearchMap/VtxSearchMap.less +156 -174
  44. package/lib/VtxSearchMap/index.js.map +1 -1
  45. package/lib/VtxSearchMap/mapping.js.map +1 -1
  46. package/lib/VtxSearchMap/style/css.js +3 -25
  47. package/lib/VtxSearchMap/style/css.js.map +1 -1
  48. package/lib/VtxSearchMap/style/index.js +3 -25
  49. package/lib/VtxSearchMap/style/index.js.map +1 -1
  50. package/lib/default.js +37 -13
  51. package/lib/default.js.map +1 -1
  52. package/lib/utils/util.js +0 -53
  53. package/lib/utils/util.js.map +1 -1
  54. package/package.json +67 -65
  55. package/lib/VtxModal/VtxModalAntd3.css +0 -62
  56. package/lib/VtxModal/VtxModalAntd3.less +0 -67
  57. package/lib/VtxSearchCheckMap/VtxSearchCheckMapAntd3.css +0 -0
  58. package/lib/VtxSearchCheckMap/VtxSearchCheckMapAntd3.less +0 -1
  59. package/lib/VtxSearchMap/VtxSearchMapAntd3.css +0 -0
  60. package/lib/VtxSearchMap/VtxSearchMapAntd3.less +0 -1
@@ -7,7 +7,8 @@ exports["default"] = void 0;
7
7
  var _react = _interopRequireDefault(require("react"));
8
8
  var _MapToolFunction = require("../MapToolFunction");
9
9
  var _immutable = _interopRequireDefault(require("immutable"));
10
- var _default2 = _interopRequireDefault(require("../../default"));
10
+ var _default2 = _interopRequireWildcard(require("../../default"));
11
+ 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); }
11
12
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
12
13
  function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
13
14
  function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
@@ -127,42 +128,44 @@ var ArcgisMap = /*#__PURE__*/function (_React$Component) {
127
128
  key: "loadMapJs",
128
129
  value: function loadMapJs() {
129
130
  this.loadMapComplete = new Promise(function (resolve, reject) {
130
- if (window.GMap) {
131
- resolve(window.GMap);
132
- } else {
133
- //加载 js
134
- // $.getScript('http://222.92.212.126:25048/gis/html/js/arcgis_js_api/library/3.9/3.9/init.js',()=>{
135
- $.getScript("".concat(_default2["default"].arcgisServerURL, "/html/js/arcgis_js_api/library/3.9/3.9/init.js"), function () {
136
- var Heatmap = new Promise(function (resolve, reject) {
137
- $.getScript("".concat(_default2["default"].mapServerURL, "/gisheatmap.js"), function () {
138
- resolve();
131
+ (0, _default2.ensurejQuery)().then(function () {
132
+ if (window.GMap) {
133
+ resolve(window.GMap);
134
+ } else {
135
+ //加载 js
136
+ // $.getScript('http://222.92.212.126:25048/gis/html/js/arcgis_js_api/library/3.9/3.9/init.js',()=>{
137
+ $.getScript("".concat(_default2["default"].arcgisServerURL, "/html/js/arcgis_js_api/library/3.9/3.9/init.js"), function () {
138
+ var Heatmap = new Promise(function (resolve, reject) {
139
+ $.getScript("".concat(_default2["default"].mapServerURL, "/gisheatmap.js"), function () {
140
+ resolve();
141
+ });
139
142
  });
140
- });
141
- var PointCollection = new Promise(function (resolve, reject) {
142
- $.getScript("".concat(_default2["default"].mapServerURL, "/GPointCollection.js"), function () {
143
- resolve();
143
+ var PointCollection = new Promise(function (resolve, reject) {
144
+ $.getScript("".concat(_default2["default"].mapServerURL, "/GPointCollection.js"), function () {
145
+ resolve();
146
+ });
144
147
  });
145
- });
146
- Promise.all([Heatmap, PointCollection]).then(function () {
147
- //require是关键字 这边用window区别
148
- window.require(["esri/map", "esri/layers/ArcGISTiledMapServiceLayer", "dojo/on", 'esri/geometry/Point', 'esri/symbols/SimpleMarkerSymbol', "esri/Color", "esri/graphic", "esri/domUtils", "esri/toolbars/edit", "esri/symbols/PictureMarkerSymbol", "esri/symbols/TextSymbol", "esri/symbols/SimpleLineSymbol", "esri/toolbars/draw", "esri/layers/WMTSLayer", "esri/geometry/Extent", "esri/layers/WMTSLayerInfo", "esri/geometry/Polyline", "esri/symbols/SimpleFillSymbol", "esri/geometry/Circle", "esri/layers/TileInfo", "esri/SpatialReference", "esri/dijit/BasemapToggle"], function (Map) {
149
- window.GMap = Map;
150
- resolve(window.GMap);
148
+ Promise.all([Heatmap, PointCollection]).then(function () {
149
+ //require是关键字 这边用window区别
150
+ window.require(["esri/map", "esri/layers/ArcGISTiledMapServiceLayer", "dojo/on", 'esri/geometry/Point', 'esri/symbols/SimpleMarkerSymbol', "esri/Color", "esri/graphic", "esri/domUtils", "esri/toolbars/edit", "esri/symbols/PictureMarkerSymbol", "esri/symbols/TextSymbol", "esri/symbols/SimpleLineSymbol", "esri/toolbars/draw", "esri/layers/WMTSLayer", "esri/geometry/Extent", "esri/layers/WMTSLayerInfo", "esri/geometry/Polyline", "esri/symbols/SimpleFillSymbol", "esri/geometry/Circle", "esri/layers/TileInfo", "esri/SpatialReference", "esri/dijit/BasemapToggle"], function (Map) {
151
+ window.GMap = Map;
152
+ resolve(window.GMap);
153
+ });
151
154
  });
152
155
  });
153
- });
154
- //加载 css
155
- $("<link>").attr({
156
- rel: "stylesheet",
157
- type: "text/css",
158
- href: "".concat(_default2["default"].arcgisServerURL, "/html/js/arcgis_js_api/library/3.9/3.9/js/dojo/dijit/themes/tundra/tundra.css")
159
- }).appendTo("head");
160
- $("<link>").attr({
161
- rel: "stylesheet",
162
- type: "text/css",
163
- href: "".concat(_default2["default"].arcgisServerURL, "/html/js/arcgis_js_api/library/3.9/3.9/js/esri/css/esri.css")
164
- }).appendTo("head");
165
- }
156
+ //加载 css
157
+ $("<link>").attr({
158
+ rel: "stylesheet",
159
+ type: "text/css",
160
+ href: "".concat(_default2["default"].arcgisServerURL, "/html/js/arcgis_js_api/library/3.9/3.9/js/dojo/dijit/themes/tundra/tundra.css")
161
+ }).appendTo("head");
162
+ $("<link>").attr({
163
+ rel: "stylesheet",
164
+ type: "text/css",
165
+ href: "".concat(_default2["default"].arcgisServerURL, "/html/js/arcgis_js_api/library/3.9/3.9/js/esri/css/esri.css")
166
+ }).appendTo("head");
167
+ }
168
+ });
166
169
  });
167
170
  }
168
171
  //初始化地图数据
@@ -2582,8 +2585,6 @@ var ArcgisMap = /*#__PURE__*/function (_React$Component) {
2582
2585
  t.dealLabelGraphics(eid, label);
2583
2586
  }
2584
2587
  };
2585
- console.log(t.editToolbar);
2586
-
2587
2588
  /*点位编辑事件*/
2588
2589
  //编辑关闭事件
2589
2590
  t.editToolbar.on('deactivate', function (e) {
@@ -2909,11 +2910,10 @@ var ArcgisMap = /*#__PURE__*/function (_React$Component) {
2909
2910
  }, {
2910
2911
  key: "endEdit",
2911
2912
  value: function endEdit() {
2912
- var _t$editToolbar, _t$editToolbarC;
2913
2913
  var t = this;
2914
- (_t$editToolbar = t.editToolbar) === null || _t$editToolbar === void 0 || _t$editToolbar.deactivate();
2914
+ t.editToolbar.deactivate();
2915
2915
  //单独为了圆的
2916
- (_t$editToolbarC = t.editToolbarC) === null || _t$editToolbarC === void 0 || _t$editToolbarC.deactivate();
2916
+ t.editToolbarC.deactivate();
2917
2917
  }
2918
2918
  //绘制图元
2919
2919
  }, {
@@ -3042,7 +3042,6 @@ var ArcgisMap = /*#__PURE__*/function (_React$Component) {
3042
3042
  // t.GM.setGraphicParam(t.drawParam.data.id,param);
3043
3043
  //绘制返回
3044
3044
  if ('drawEnd' in t.props && typeof t.props.drawEnd == 'function') {
3045
- console.log(param);
3046
3045
  t.props.drawEnd(param);
3047
3046
  }
3048
3047
  });