I try to load an image from openstreetmap into an air application using javascript and html but the image doesnt appear. I've no problems getting images from flickr. This is the image url: Map image from OSM
+1
A:
If the missing file extension is the problem, try another source for OpenStreetMap graphics.
The export tab may help you:
The following url will export you a map for the given coordinates:
Lat = 51.4641 - 51.6127
Lon = 7.3229 - 7.6127
Format = mapnik
File format = png
Scale = 110000
This URL will cause a download but if I tried this:
<img src="http://tile.openstreetmap.org/cgi-bin/export?bbox=7.3229,51.4641,7.6127,51.6127&scale=110000&format=png" alt="OSM-Map" width="100%" />
And it worked, the map was displayed. Maybe this is a simple solution to your problem
furtelwart
2009-10-22 11:07:14