Remove unwanted padding from static map

2 posts / 0 new
Last post
Rainer Follador
Remove unwanted padding from static map

Using the Static Maps API Bounding boxed-based URL, I need to get a PNG using defined bounds.

However, the API keeps adding a large padding area to the map.

Below is an example using following API call:

https://www.mapquestapi.com/staticmap/v5/map?key=XXX&boundingBox=47.01,9.37,46.71,9.80&size=1024,1024&shape=46.71,9.37|46.71,9.80|47.01,9.80|47.01,9.37|46.71,9.37

I would expect the path to exaclty match the image bounds, since these are the same coordinates.

 

Playing around with the margin parameter doesn't help either.


MQBrianCoakley
The static map is built using
The static map is built using the same map tiles as the interactive maps. There are only the very specific zoom levels available in those tiles. The zoom level is chosen to fit the requested bounds. There is no further processing to shave the resulting map down to only the given bounds. This is the expected functionality of the static map api.