@antv/l7-component 2.9.27-alpha.2 → 2.9.27-alpha.4

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.
@@ -148,11 +148,11 @@ var Layers = /*#__PURE__*/function (_Control) {
148
148
  baseLayers = _this$controlOption$b === void 0 ? {} : _this$controlOption$b,
149
149
  _this$controlOption$o = _this$controlOption.overlayers,
150
150
  overlayers = _this$controlOption$o === void 0 ? {} : _this$controlOption$o;
151
- Object.keys(baseLayers).forEach(function (name, index) {
151
+ Object.keys(baseLayers).forEach(function (name) {
152
152
  // baseLayers[name].once('inited', this.update);
153
153
  _this4.addLayer(baseLayers[name], name, false);
154
154
  });
155
- Object.keys(overlayers).forEach(function (name, index) {
155
+ Object.keys(overlayers).forEach(function (name) {
156
156
  // overlayers[name].once('inited', this.update);
157
157
  _this4.addLayer(overlayers[name], name, true);
158
158
  });
package/es/marker.js CHANGED
@@ -68,9 +68,7 @@ var Marker = /*#__PURE__*/function (_EventEmitter) {
68
68
  this.scene = scene;
69
69
  this.mapsService = scene.get(TYPES.IMapService);
70
70
  this.sceneSerive = scene.get(TYPES.ISceneService);
71
- var _this$markerOption = this.markerOption,
72
- element = _this$markerOption.element,
73
- draggable = _this$markerOption.draggable; // this.sceneSerive.getSceneContainer().appendChild(element as HTMLElement);
71
+ var element = this.markerOption.element; // this.sceneSerive.getSceneContainer().appendChild(element as HTMLElement);
74
72
 
75
73
  this.mapsService.getMarkerContainer().appendChild(element);
76
74
  this.registerMarkerEvent(element);
@@ -242,7 +240,8 @@ var Marker = /*#__PURE__*/function (_EventEmitter) {
242
240
  key: "getOffset",
243
241
  value: function getOffset() {
244
242
  return this.markerOption.offsets;
245
- }
243
+ } // eslint-disable-next-line @typescript-eslint/no-unused-vars
244
+
246
245
  }, {
247
246
  key: "setDraggable",
248
247
  value: function setDraggable(draggable) {
@@ -270,12 +269,13 @@ var Marker = /*#__PURE__*/function (_EventEmitter) {
270
269
  return;
271
270
  }
272
271
 
273
- var _this$markerOption2 = this.markerOption,
274
- element = _this$markerOption2.element,
275
- anchor = _this$markerOption2.anchor;
272
+ var _this$markerOption = this.markerOption,
273
+ element = _this$markerOption.element,
274
+ anchor = _this$markerOption.anchor;
276
275
  this.updatePosition();
277
276
  DOM.setTransform(element, "".concat(anchorTranslate[anchor]));
278
- }
277
+ } // eslint-disable-next-line @typescript-eslint/no-unused-vars
278
+
279
279
  }, {
280
280
  key: "onMapClick",
281
281
  value: function onMapClick(e) {
@@ -302,9 +302,9 @@ var Marker = /*#__PURE__*/function (_EventEmitter) {
302
302
  return;
303
303
  }
304
304
 
305
- var _this$markerOption3 = this.markerOption,
306
- element = _this$markerOption3.element,
307
- offsets = _this$markerOption3.offsets;
305
+ var _this$markerOption2 = this.markerOption,
306
+ element = _this$markerOption2.element,
307
+ offsets = _this$markerOption2.offsets;
308
308
  var _this$lngLat = this.lngLat,
309
309
  lng = _this$lngLat.lng,
310
310
  lat = _this$lngLat.lat;
@@ -351,9 +351,9 @@ var Marker = /*#__PURE__*/function (_EventEmitter) {
351
351
  var _this5 = this;
352
352
 
353
353
  var element = this.markerOption.element;
354
- var _this$markerOption4 = this.markerOption,
355
- color = _this$markerOption4.color,
356
- anchor = _this$markerOption4.anchor;
354
+ var _this$markerOption3 = this.markerOption,
355
+ color = _this$markerOption3.color,
356
+ anchor = _this$markerOption3.anchor;
357
357
 
358
358
  if (!element) {
359
359
  this.defaultMarker = true;
@@ -416,9 +416,11 @@ var Marker = /*#__PURE__*/function (_EventEmitter) {
416
416
  }
417
417
  }, {
418
418
  key: "addDragHandler",
419
- value: function addDragHandler(e) {
419
+ value: // eslint-disable-next-line @typescript-eslint/no-unused-vars
420
+ function addDragHandler(e) {
420
421
  throw new Error('Method not implemented.');
421
- }
422
+ } // eslint-disable-next-line @typescript-eslint/no-unused-vars
423
+
422
424
  }, {
423
425
  key: "onUp",
424
426
  value: function onUp(e) {
@@ -121,10 +121,10 @@ var Layers = class extends import_BaseControl.default {
121
121
  }
122
122
  initLayers() {
123
123
  const { baseLayers = {}, overlayers = {} } = this.controlOption;
124
- Object.keys(baseLayers).forEach((name, index) => {
124
+ Object.keys(baseLayers).forEach((name) => {
125
125
  this.addLayer(baseLayers[name], name, false);
126
126
  });
127
- Object.keys(overlayers).forEach((name, index) => {
127
+ Object.keys(overlayers).forEach((name) => {
128
128
  this.addLayer(overlayers[name], name, true);
129
129
  });
130
130
  }
package/lib/marker.js CHANGED
@@ -58,7 +58,7 @@ var Marker = class extends import_eventemitter3.EventEmitter {
58
58
  this.scene = scene;
59
59
  this.mapsService = scene.get(import_l7_core.TYPES.IMapService);
60
60
  this.sceneSerive = scene.get(import_l7_core.TYPES.ISceneService);
61
- const { element, draggable } = this.markerOption;
61
+ const { element } = this.markerOption;
62
62
  this.mapsService.getMarkerContainer().appendChild(element);
63
63
  this.registerMarkerEvent(element);
64
64
  this.mapsService.on("camerachange", this.update);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@antv/l7-component",
3
- "version": "2.9.27-alpha.2",
3
+ "version": "2.9.27-alpha.4",
4
4
  "description": "",
5
5
  "main": "lib/index.js",
6
6
  "module": "es/index.js",
@@ -25,8 +25,8 @@
25
25
  "author": "lzxue",
26
26
  "license": "ISC",
27
27
  "dependencies": {
28
- "@antv/l7-core": "2.9.27-alpha.2",
29
- "@antv/l7-utils": "2.9.27-alpha.2",
28
+ "@antv/l7-core": "2.9.27-alpha.4",
29
+ "@antv/l7-utils": "2.9.27-alpha.4",
30
30
  "@babel/runtime": "^7.7.7",
31
31
  "eventemitter3": "^4.0.0",
32
32
  "inversify": "^5.0.1",
@@ -35,9 +35,9 @@
35
35
  "supercluster": "^7.0.0"
36
36
  },
37
37
  "devDependencies": {
38
- "@antv/l7-test-utils": "2.9.27-alpha.2"
38
+ "@antv/l7-test-utils": "2.9.27-alpha.4"
39
39
  },
40
- "gitHead": "209f0b76af7ad1c7342f5ea21aa1c2179e8c460d",
40
+ "gitHead": "9e77012376360246d49d7b5392eecd16b43b9109",
41
41
  "publishConfig": {
42
42
  "access": "public"
43
43
  }