@antv/l7-maps
Advanced tools
Comparing version 2.21.11-beta.4 to 2.21.11-beta.5
@@ -20,4 +20,5 @@ /** | ||
init(): Promise<void>; | ||
protected creatMapContainer(id: string | HTMLDivElement): HTMLDivElement; | ||
exportMap(type: 'jpg' | 'png'): string; | ||
getCanvasOverlays(): HTMLElement | null; | ||
} |
@@ -117,2 +117,17 @@ import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2"; | ||
} | ||
creatMapContainer(id) { | ||
let wrapper = id; | ||
if (typeof id === 'string') { | ||
wrapper = document.getElementById(id); | ||
} | ||
const container = document.createElement('div'); | ||
container.style.cssText += ` | ||
position: absolute; | ||
top: 0; | ||
height: 100%; | ||
width: 100%; | ||
`; | ||
wrapper.appendChild(container); | ||
return container; | ||
} | ||
exportMap(type) { | ||
@@ -119,0 +134,0 @@ const renderCanvas = this.map.getCanvas(); |
@@ -20,4 +20,5 @@ /** | ||
init(): Promise<void>; | ||
protected creatMapContainer(id: string | HTMLDivElement): HTMLDivElement; | ||
exportMap(type: 'jpg' | 'png'): string; | ||
getCanvasOverlays(): HTMLElement | null; | ||
} |
@@ -122,2 +122,17 @@ "use strict"; | ||
} | ||
creatMapContainer(id) { | ||
let wrapper = id; | ||
if (typeof id === 'string') { | ||
wrapper = document.getElementById(id); | ||
} | ||
const container = document.createElement('div'); | ||
container.style.cssText += ` | ||
position: absolute; | ||
top: 0; | ||
height: 100%; | ||
width: 100%; | ||
`; | ||
wrapper.appendChild(container); | ||
return container; | ||
} | ||
exportMap(type) { | ||
@@ -124,0 +139,0 @@ const renderCanvas = this.map.getCanvas(); |
{ | ||
"name": "@antv/l7-maps", | ||
"version": "2.21.11-beta.4", | ||
"version": "2.21.11-beta.5", | ||
"description": "Maps for L7", | ||
@@ -28,5 +28,5 @@ "license": "MIT", | ||
"viewport-mercator-project": "^6.2.1", | ||
"@antv/l7-core": "2.21.11-beta.4", | ||
"@antv/l7-map": "2.21.11-beta.4", | ||
"@antv/l7-utils": "2.21.11-beta.4" | ||
"@antv/l7-core": "2.21.11-beta.5", | ||
"@antv/l7-map": "2.21.11-beta.5", | ||
"@antv/l7-utils": "2.21.11-beta.5" | ||
}, | ||
@@ -33,0 +33,0 @@ "devDependencies": { |
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
996353
11521
+ Added@antv/l7-core@2.21.11-beta.5(transitive)
+ Added@antv/l7-map@2.21.11-beta.5(transitive)
+ Added@antv/l7-utils@2.21.11-beta.5(transitive)
- Removed@antv/l7-core@2.21.11-beta.4(transitive)
- Removed@antv/l7-map@2.21.11-beta.4(transitive)
- Removed@antv/l7-utils@2.21.11-beta.4(transitive)
Updated@antv/l7-core@2.21.11-beta.5
Updated@antv/l7-map@2.21.11-beta.5