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

avoid extraneous tiles that are just outside the frame #37

Open calvinmetcalf opened 7 years ago

calvinmetcalf commented 7 years ago

Currently if you request a 256 x 256 tile that exactly lines up with an actual tile you will actually end up downloading 3 extra tiles because of an off by one error being used to calculate the needed tiles

calvinmetcalf commented 7 years ago

I don't believe the build failures are related to this pull request

calvinmetcalf commented 7 years ago

ok the build is fixed and I believe was broken ever since you upgraded the location of spherical mercator.