I'm using Mapbox API to generate bitmap tiles. First of all I have generated whole world tile with zoom 1 (seems it doesn't matter 0 or 1) and resolution 1280x1280. This tile perfectly positioned from -180 to 180 lon.

Next I would want to generate 4 tiles for next zoom 2. If I correct first tile would be at -90.0,90.0 position (around North America).

But I noticed that size of resulted tile is not as I wanted. It is bigger.

So how to found appropriate zoom level or something else to get tiles for my grid like this, and then for factor 4, 8 etc.

enter image description here


Found this https://www.mapbox.com/api-documentation/#retrieve-a-static-map-from-a-style

Exactly what I needed :з

We're looking for long answers that provide some explanation and context. Don't just give a one-line answer; explain why your answer is right, ideally with citations. Answers that don't include explanations may be removed.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.