@antv/l7-map 2.20.20 → 2.21.0

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.
@@ -36,8 +36,6 @@ var TwoTouchHandler = /*#__PURE__*/function () {
36
36
  }, {
37
37
  key: "touchstart",
38
38
  value: function touchstart(e, points, mapTouches) {
39
- // console.log(e.target, e.targetTouches.length ? e.targetTouches[0].target : null);
40
- // log('touchstart', points, e.target.innerHTML, e.targetTouches.length ? e.targetTouches[0].target.innerHTML: undefined);
41
39
  if (this.firstTwoTouches || mapTouches.length < 2) {
42
40
  return;
43
41
  }
package/es/map.d.ts CHANGED
@@ -40,6 +40,7 @@ export declare class Map extends Camera {
40
40
  getContainer(): HTMLElement;
41
41
  getCanvas(): HTMLCanvasElement;
42
42
  getCanvasContainer(): HTMLElement;
43
+ getCanvasOverlays(): HTMLElement;
43
44
  project(lngLat: LngLatLike): Point;
44
45
  unproject(point: PointLike): LngLat;
45
46
  getBounds(): LngLatBounds;
package/es/map.js CHANGED
@@ -186,6 +186,11 @@ export var Map = /*#__PURE__*/function (_Camera) {
186
186
  value: function getCanvasContainer() {
187
187
  return this.canvasContainer;
188
188
  }
189
+ }, {
190
+ key: "getCanvasOverlays",
191
+ value: function getCanvasOverlays() {
192
+ return this.getCanvasContainer();
193
+ }
189
194
  }, {
190
195
  key: "project",
191
196
  value: function project(lngLat) {
@@ -42,8 +42,6 @@ var TwoTouchHandler = exports.default = /*#__PURE__*/function () {
42
42
  }, {
43
43
  key: "touchstart",
44
44
  value: function touchstart(e, points, mapTouches) {
45
- // console.log(e.target, e.targetTouches.length ? e.targetTouches[0].target : null);
46
- // log('touchstart', points, e.target.innerHTML, e.targetTouches.length ? e.targetTouches[0].target.innerHTML: undefined);
47
45
  if (this.firstTwoTouches || mapTouches.length < 2) {
48
46
  return;
49
47
  }
package/lib/map.js CHANGED
@@ -191,6 +191,11 @@ var Map = exports.Map = /*#__PURE__*/function (_Camera) {
191
191
  value: function getCanvasContainer() {
192
192
  return this.canvasContainer;
193
193
  }
194
+ }, {
195
+ key: "getCanvasOverlays",
196
+ value: function getCanvasOverlays() {
197
+ return this.getCanvasContainer();
198
+ }
194
199
  }, {
195
200
  key: "project",
196
201
  value: function project(lngLat) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@antv/l7-map",
3
- "version": "2.20.20",
3
+ "version": "2.21.0",
4
4
  "description": "l7 map",
5
5
  "keywords": [],
6
6
  "author": "thinkinggis <lzx199065@gmail.com>",
@@ -40,7 +40,7 @@
40
40
  },
41
41
  "homepage": "https://github.com/antvis/L7#readme",
42
42
  "dependencies": {
43
- "@antv/l7-utils": "2.20.20",
43
+ "@antv/l7-utils": "2.21.0",
44
44
  "@babel/runtime": "^7.7.7",
45
45
  "@mapbox/point-geometry": "^0.1.0",
46
46
  "@mapbox/unitbezier": "^0.0.0",
@@ -48,5 +48,5 @@
48
48
  "gl-matrix": "^3.1.0",
49
49
  "lodash-es": "^4.17.21"
50
50
  },
51
- "gitHead": "1966dbadf9efee8d69d22beb4d89947c158da634"
51
+ "gitHead": "7fa1b00b5262c98bb4cceef4eaf87a7b10af7e29"
52
52
  }