@antv/l7-component 2.20.17 → 2.20.18

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/es/marker.js CHANGED
@@ -109,7 +109,7 @@ var Marker = /*#__PURE__*/function (_EventEmitter) {
109
109
  this.mapsService.getMarkerContainer().appendChild(element);
110
110
  this.registerMarkerEvent(element);
111
111
  //天地图仅监听zoomchange 不注册camerachane,对于平移,在mapsService中实现
112
- this.mapsService.on('zoomchange', this.updatePositionWhenZoom);
112
+ // this.mapsService.on('zoomchange', this.updatePositionWhenZoom);
113
113
  this.mapsService.on('camerachange', this.update); // 注册高德1.x 的地图事件监听
114
114
  this.update();
115
115
  this.updateDraggable();
@@ -124,7 +124,7 @@ var Marker = /*#__PURE__*/function (_EventEmitter) {
124
124
  this.mapsService.off('click', this.onMapClick);
125
125
  this.mapsService.off('move', this.update);
126
126
  this.mapsService.off('moveend', this.update);
127
- this.mapsService.off('zoomchange', this.update);
127
+ // this.mapsService.off('zoomchange', this.update);
128
128
  this.mapsService.off('camerachange', this.update);
129
129
  }
130
130
  this.unRegisterMarkerEvent();
@@ -309,9 +309,6 @@ var Marker = /*#__PURE__*/function (_EventEmitter) {
309
309
  return;
310
310
  }
311
311
  var map = ev.map;
312
- var viewHalf = map.getSize();
313
- viewHalf.x = viewHalf.x / 2;
314
- viewHalf.y = viewHalf.y / 2;
315
312
  var center = ev.center;
316
313
  var zoom = ev.zoom;
317
314
  var projectedCenter = map.DE(this.lngLat, zoom, center);
package/lib/marker.js CHANGED
@@ -116,7 +116,7 @@ var Marker = exports.default = /*#__PURE__*/function (_EventEmitter) {
116
116
  this.mapsService.getMarkerContainer().appendChild(element);
117
117
  this.registerMarkerEvent(element);
118
118
  //天地图仅监听zoomchange 不注册camerachane,对于平移,在mapsService中实现
119
- this.mapsService.on('zoomchange', this.updatePositionWhenZoom);
119
+ // this.mapsService.on('zoomchange', this.updatePositionWhenZoom);
120
120
  this.mapsService.on('camerachange', this.update); // 注册高德1.x 的地图事件监听
121
121
  this.update();
122
122
  this.updateDraggable();
@@ -131,7 +131,7 @@ var Marker = exports.default = /*#__PURE__*/function (_EventEmitter) {
131
131
  this.mapsService.off('click', this.onMapClick);
132
132
  this.mapsService.off('move', this.update);
133
133
  this.mapsService.off('moveend', this.update);
134
- this.mapsService.off('zoomchange', this.update);
134
+ // this.mapsService.off('zoomchange', this.update);
135
135
  this.mapsService.off('camerachange', this.update);
136
136
  }
137
137
  this.unRegisterMarkerEvent();
@@ -316,9 +316,6 @@ var Marker = exports.default = /*#__PURE__*/function (_EventEmitter) {
316
316
  return;
317
317
  }
318
318
  var map = ev.map;
319
- var viewHalf = map.getSize();
320
- viewHalf.x = viewHalf.x / 2;
321
- viewHalf.y = viewHalf.y / 2;
322
319
  var center = ev.center;
323
320
  var zoom = ev.zoom;
324
321
  var projectedCenter = map.DE(this.lngLat, zoom, center);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@antv/l7-component",
3
- "version": "2.20.17",
3
+ "version": "2.20.18",
4
4
  "description": "",
5
5
  "main": "lib/index.js",
6
6
  "module": "es/index.js",
@@ -26,8 +26,8 @@
26
26
  "author": "lzxue",
27
27
  "license": "ISC",
28
28
  "dependencies": {
29
- "@antv/l7-core": "2.20.17",
30
- "@antv/l7-utils": "2.20.17",
29
+ "@antv/l7-core": "2.20.18",
30
+ "@antv/l7-utils": "2.20.18",
31
31
  "@babel/runtime": "^7.7.7",
32
32
  "eventemitter3": "^4.0.0",
33
33
  "inversify": "^5.0.1",
@@ -35,12 +35,12 @@
35
35
  "supercluster": "^7.0.0"
36
36
  },
37
37
  "devDependencies": {
38
- "@antv/l7-layers": "2.20.17",
39
- "@antv/l7-test-utils": "2.20.17",
38
+ "@antv/l7-layers": "2.20.18",
39
+ "@antv/l7-test-utils": "2.20.18",
40
40
  "gcoord": "^0.3.2",
41
41
  "less": "^4.1.3"
42
42
  },
43
- "gitHead": "e37d5cc24eec17a0949b827d76d1ac7c97a8fef3",
43
+ "gitHead": "6a24ed4f930e1fc37c01a1705c5253076b97d518",
44
44
  "publishConfig": {
45
45
  "access": "public"
46
46
  }