@antv/l7-component 2.20.18 → 2.20.19

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
@@ -332,7 +332,6 @@ var Marker = /*#__PURE__*/function (_EventEmitter) {
332
332
  }
333
333
  element.style.left = projectedCenter.x + 'px';
334
334
  element.style.top = projectedCenter.y + 'px';
335
- console.log(projectedCenter);
336
335
  element.style.transition = 'left 0.25s cubic-bezier(0,0,0.25,1), top 0.25s cubic-bezier(0,0,0.25,1)';
337
336
  }
338
337
  }
@@ -408,6 +407,7 @@ var Marker = /*#__PURE__*/function (_EventEmitter) {
408
407
  }
409
408
  element.style.left = pos.x + offsets[0] + 'px';
410
409
  element.style.top = pos.y - offsets[1] + 'px';
410
+ console.log(element.style.left);
411
411
  }
412
412
  }
413
413
  }, {
package/es/popup/popup.js CHANGED
@@ -199,7 +199,7 @@ var Popup = /*#__PURE__*/function (_EventEmitter) {
199
199
  this.sceneService = scene.get(TYPES.ISceneService);
200
200
  this.layerService = scene.get(TYPES.ILayerService);
201
201
  //天地图仅监听zoomchange 不注册camerachane,对于平移,在mapsService中实现
202
- this.mapsService.on('zoomchange', this.updateWhenZoom);
202
+ // this.mapsService.on('zoomchange', this.updateWhenZoom);
203
203
  this.mapsService.on('camerachange', this.update);
204
204
  this.mapsService.on('viewchange', this.update);
205
205
  this.scene = scene;
@@ -244,7 +244,7 @@ var Popup = /*#__PURE__*/function (_EventEmitter) {
244
244
  this.mapsService.off('camerachange', this.update);
245
245
  this.mapsService.off('viewchange', this.update);
246
246
  //天地图的缩放事件
247
- this.mapsService.off('zoomchange', this.updateWhenZoom);
247
+ // this.mapsService.off('zoomchange', this.updateWhenZoom);
248
248
  this.updateCloseOnClick(true);
249
249
  this.updateCloseOnEsc(true);
250
250
  this.updateFollowCursor(true);
@@ -422,10 +422,11 @@ var Popup = /*#__PURE__*/function (_EventEmitter) {
422
422
  }
423
423
  if (this.mapsService) {
424
424
  // 防止事件重复监听
425
- this.mapsService.off('zoonanim', this.updateWhenZoom);
425
+ // this.mapsService.off('zoonanim', this.updateWhenZoom);
426
426
  this.mapsService.off('camerachange', this.update);
427
427
  this.mapsService.off('viewchange', this.update);
428
- this.mapsService.on('zoonanim', this.updateWhenZoom);
428
+
429
+ // this.mapsService.on('zoonanim', this.updateWhenZoom);
429
430
  this.mapsService.on('camerachange', this.update);
430
431
  this.mapsService.on('viewchange', this.update);
431
432
  }
package/lib/marker.js CHANGED
@@ -339,7 +339,6 @@ var Marker = exports.default = /*#__PURE__*/function (_EventEmitter) {
339
339
  }
340
340
  element.style.left = projectedCenter.x + 'px';
341
341
  element.style.top = projectedCenter.y + 'px';
342
- console.log(projectedCenter);
343
342
  element.style.transition = 'left 0.25s cubic-bezier(0,0,0.25,1), top 0.25s cubic-bezier(0,0,0.25,1)';
344
343
  }
345
344
  }
@@ -415,6 +414,7 @@ var Marker = exports.default = /*#__PURE__*/function (_EventEmitter) {
415
414
  }
416
415
  element.style.left = pos.x + offsets[0] + 'px';
417
416
  element.style.top = pos.y - offsets[1] + 'px';
417
+ console.log(element.style.left);
418
418
  }
419
419
  }
420
420
  }, {
@@ -205,7 +205,7 @@ var Popup = exports.default = exports.Popup = /*#__PURE__*/function (_EventEmitt
205
205
  this.sceneService = scene.get(_l7Core.TYPES.ISceneService);
206
206
  this.layerService = scene.get(_l7Core.TYPES.ILayerService);
207
207
  //天地图仅监听zoomchange 不注册camerachane,对于平移,在mapsService中实现
208
- this.mapsService.on('zoomchange', this.updateWhenZoom);
208
+ // this.mapsService.on('zoomchange', this.updateWhenZoom);
209
209
  this.mapsService.on('camerachange', this.update);
210
210
  this.mapsService.on('viewchange', this.update);
211
211
  this.scene = scene;
@@ -250,7 +250,7 @@ var Popup = exports.default = exports.Popup = /*#__PURE__*/function (_EventEmitt
250
250
  this.mapsService.off('camerachange', this.update);
251
251
  this.mapsService.off('viewchange', this.update);
252
252
  //天地图的缩放事件
253
- this.mapsService.off('zoomchange', this.updateWhenZoom);
253
+ // this.mapsService.off('zoomchange', this.updateWhenZoom);
254
254
  this.updateCloseOnClick(true);
255
255
  this.updateCloseOnEsc(true);
256
256
  this.updateFollowCursor(true);
@@ -428,10 +428,11 @@ var Popup = exports.default = exports.Popup = /*#__PURE__*/function (_EventEmitt
428
428
  }
429
429
  if (this.mapsService) {
430
430
  // 防止事件重复监听
431
- this.mapsService.off('zoonanim', this.updateWhenZoom);
431
+ // this.mapsService.off('zoonanim', this.updateWhenZoom);
432
432
  this.mapsService.off('camerachange', this.update);
433
433
  this.mapsService.off('viewchange', this.update);
434
- this.mapsService.on('zoonanim', this.updateWhenZoom);
434
+
435
+ // this.mapsService.on('zoonanim', this.updateWhenZoom);
435
436
  this.mapsService.on('camerachange', this.update);
436
437
  this.mapsService.on('viewchange', this.update);
437
438
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@antv/l7-component",
3
- "version": "2.20.18",
3
+ "version": "2.20.19",
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.18",
30
- "@antv/l7-utils": "2.20.18",
29
+ "@antv/l7-core": "2.20.19",
30
+ "@antv/l7-utils": "2.20.19",
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.18",
39
- "@antv/l7-test-utils": "2.20.18",
38
+ "@antv/l7-layers": "2.20.19",
39
+ "@antv/l7-test-utils": "2.20.19",
40
40
  "gcoord": "^0.3.2",
41
41
  "less": "^4.1.3"
42
42
  },
43
- "gitHead": "6a24ed4f930e1fc37c01a1705c5253076b97d518",
43
+ "gitHead": "7a7fb59e506d8d970d296fa6efc7e668513a25f6",
44
44
  "publishConfig": {
45
45
  "access": "public"
46
46
  }