mapbox / mapbox-sdk-js

A JavaScript client to Mapbox services, supporting Node, browsers, and React Native
Other
719 stars 186 forks source link

adding bbox and padding #411

Closed shabnomnom closed 3 years ago

shabnomnom commented 3 years ago

Adding BBox and Padding into the SDK. Let me know if you have any feedback!

andrewharvey commented 3 years ago

Thanks, just yesterday I wasted time implementing geo-viewport and adding in a padding to the library, because I was relying on the outdated SDK docs here instead of realising the Static API actually already supported a bbox and padding. So glad I saw this now.

shabnomnom commented 3 years ago

👋🏽 The padding and the bbox are fairly new features in the Static API too. They both were added on December 10th, 2020.

vartikaz commented 3 years ago

@vartikaz fyi