This is a static archive of our old OpenStreetMap Help Site. Please post any new questions and answers at community.osm.org.

Why is the url giving me a bigger image than the bounding box?

0

Hello,

I'm trying to access OSM through my application. Here is an example of a request I'm sending: http://pafciu17.dev.openstreetmap.org/?module=map&bbox=-111.97021484375,33.46292927417002,-111.82470703125,33.37333569698748&width=596.0&height=366.0&imgType=jpeg If you notice, the bounding box that is in the request is smaller than the image that is being returned. I'm not quite sure why this is happening? Is it a pixel issue? I'm trying to get away with using an api that does not require a zoom to be specified, that is why I went with the above api.

Thank you for any help, I appreciate any help

asked 01 Feb '13, 19:04

meburris's gravatar image

meburris
1111
accept rate: 0%


One Answer:

1

That would be this API, so be aware that your application is likely to get blocked if it places undue load on the servers as per the warning. From the links on that page it also looks like it is no longer maintained, and the images it produces seem to have an out of date attribution.

It might be worth following the recommendation on the Static Maps API page and trying staticMapLite instead?

answered 01 Feb '13, 19:44

EdLoach's gravatar image

EdLoach ♦
19.5k16156280
accept rate: 22%

ok thank you, I will look into that. I was trying to get away with using an api that didn't require a "zoom" or "scale" parameter because we use Pixels per degree and I thought it would be difficult.

(01 Feb '13, 19:47) meburris

Source code available on GitHub .