You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It's because the maxnative zoom for google maps is 19.
A quick and dirty solution would be:
` if (zoom > 19) {
var zf = Math.pow(2,zoom);
var mf = Math.pow(2,19);
var _xmin = bounds.min.divideBy(tileSize).divideBy(zf).multiplyBy(mf);
var _xmax = bounds.max.divideBy(tileSize).divideBy(zf).multiplyBy(mf);
var bounds2 = L.bounds(_xmin,_xmax);
var tileBounds = L.bounds(_xmin._floor(),_xmax._floor()),
tiles = [],
j, i,
tileQueue = new queue(1);
} else {
var tileBounds = L.bounds(
bounds.min.divideBy(tileSize)._floor(),
bounds.max.divideBy(tileSize)._floor()),
tiles = [],
j, i,
tileQueue = new queue(1);
}`
I use leaflet-image to export image but I can not see the map on the result.
But I can see polygons, titles, and another layer.
web app:
==> result:
The text was updated successfully, but these errors were encountered: