mapbox / abaculus

Library for creating static maps from tiles based on center or corner lng,lat coordinates. Uses node-blend.
ISC License
127 stars 38 forks source link

Fix tilesize calculation #39

Closed thesocialdev closed 1 year ago

thesocialdev commented 6 years ago

The way it is calculated makes abaculus work only for scale = 1.

Also, changing the test case with an example easier to check and to reflect the new calculations.

The inputs are the same as the following: https://maps.wikimedia.org/img/osm-intl,5,-24.405,-47.368,250x250.png

The tile outputs are the following: https://maps.wikimedia.org/osm-intl/5/11/17.png https://maps.wikimedia.org/osm-intl/5/12/17.png https://maps.wikimedia.org/osm-intl/5/11/18.png https://maps.wikimedia.org/osm-intl/5/12/18.png

WMDE-Fisch commented 1 year ago

I created an updated PR that's based on the current master. I guess this here can be abandoned. See https://github.com/mapbox/abaculus/pull/39