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
Because the tileSize is required by var sm = new SphericalMercator({ size: tileSize * s });
If s = 1, tileSize * 1= NaN = 256 everything is OK. However, when s != 1, for example 2, tileSize * 2= NaN = 256, which should be 512.
The width calculated by coordsFromBbox() is base_width * scale *scale, which should be base_width * scale. Let check out:
What I got is :
We have already get the right size from here: https://github.com/mapbox/abaculus/blob/master/index.js#L42-L43
But we enlarged the size again at here: https://github.com/mapbox/abaculus/blob/master/index.js#L50-L51
And
x: 256, y: 256
is definitely not the center ofw: 1024, h: 1024
, which proves the results calculated by coordsFromBbox is wrong.If this problem is confirmed. I will send a PR.
The text was updated successfully, but these errors were encountered: