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
This results in incorrect maxzoom selection for non-meter source data, as the thresholds for zoom levels are defined in mercator meters. This can be fixed by simply swapping out _this.details.pixelSize[0] for pixelSize[0] above.
The source's resolution is converted to
meters
here:mapnik-omnivore/lib/raster.js
Line 162 in 29ead36
But then the resolution in native units is then used to calculate the max zoom:
mapnik-omnivore/lib/raster.js
Line 173 in 29ead36
This results in incorrect maxzoom selection for non-meter source data, as the thresholds for zoom levels are defined in mercator meters. This can be fixed by simply swapping out
_this.details.pixelSize[0]
forpixelSize[0]
above.cc @pratikyadav
The text was updated successfully, but these errors were encountered: