2
votes

I am exploring replacing a Google Maps Static Maps call with MapBox. With Google, you can retrieve a static map w/o specifying a center or a zoom level, and it will find the zoom level and center that fits your markers. I am looking for the same with MapBox but am unable to find it. Does anyone know how to make this work. I'm also open to calculating extents and figuring out the zoom level if anyone has a solution for that.

1

1 Answers

1
votes

Sure, see the geo-viewport and geojson-extent examples for turning extents into URLs for the Mapbox Static API.