satellite-view
Advanced tools
Comparing version 1.0.0 to 1.1.0
@@ -18,5 +18,2 @@ function setParams(userParams) { | ||
params.nMaps = params.maps.length; | ||
params.mapWidth = params.maps[0].canvas.width; | ||
params.mapHeight = params.maps[0].canvas.height; | ||
params.canvas = addCanvas(userParams.container); | ||
@@ -699,3 +696,3 @@ | ||
const textures = params.maps.map(map => { | ||
return initTexture(gl, params.mapWidth, params.mapHeight); | ||
return initTexture(gl, map.canvas.width, map.canvas.height); | ||
}); | ||
@@ -715,2 +712,3 @@ | ||
setPixelRatio: (ratio) => { params.getPixelRatio = () => ratio; }, | ||
destroy: () => gl.canvas.remove(), | ||
}; | ||
@@ -739,4 +737,6 @@ | ||
// Draw the globe | ||
resizeCanvasToDisplaySize(gl.canvas, params.getPixelRatio()); | ||
var resized = resizeCanvasToDisplaySize( | ||
gl.canvas, params.getPixelRatio() ); | ||
drawScene(gl, progInfo, buffers, uniforms); | ||
return resized; | ||
} | ||
@@ -743,0 +743,0 @@ } |
{ | ||
"version": "1.0.0", | ||
"version": "1.1.0", | ||
"files": [ | ||
@@ -22,3 +22,3 @@ "dist" | ||
"rollup-plugin-node-resolve": "^4.2.4", | ||
"tile-frame": "^1.0.0", | ||
"tile-frame": "^1.1.0", | ||
"tile-rack": "^0.2.1" | ||
@@ -25,0 +25,0 @@ }, |
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
626
29624