displaying a google static map

Does anyone know how to get a google static map to display. i’ve been using the sample code file “SimpleImageDownload” to display images on a remote server, but for some reason the google static map doesn’t work. my only guess is that it doesn’t work because the url doesn’t end in a file type suffix. does anyone have any ideas to get around that?
here is an example of the url that i’m trying to display:
http://maps.google.com/maps/api/staticmap?center=37,-122&zoom=5&size=200x200&key=ABQIAAAA8YBiJ7Gpz7yfnFwNv5JWDRS5Tcvw2w9u7J2kruX8KbdoJpfG2BTNSJuFpY6XrxOvgPEZv4csvDe7jg&sensor=true

here’s the code that i’m using(ripped from the SimpleImageDownload file):

mapURL=“http://maps.google.com/maps/api/staticmap?center=37,-122&zoom=5&size=200x200&key=ABQIAAAA8YBiJ7Gpz7yfnFwNv5JWDRS5Tcvw2w9u7J2kruX8KbdoJpfG2BTNSJuFpY6XrxOvgPEZv4csvDe7jg&sensor=true”;

local path = system.pathForFile( “map.png”, system.DocumentsDirectory )
myFile = io.open( path, “w+b” )
– Request remote file and save data to
http.request{
url = mapURL,
sink = ltn12.sink.file(myFile),
}
– Display local file
testImage = display.newImage(“map.png”,system.DocumentsDirectory,60,50);

thank you for any suggestions! [import]uid: 2773 topic_id: 421 reply_id: 300421[/import]

After sensor=true, add

format=png32

&sensor=true&format=png32  

or any other format found on the api that is not 8 bit.

* png32 specifies the 32-bit PNG format.
* jpg specifies the JPEG compression format.
* jpg-baseline specifies a non-progressive JPEG compression format.
That worked for me right now.

Carlos [import]uid: 24 topic_id: 421 reply_id: 786[/import]

Don’t think you can use Google Static Maps in an app. The Google Maps Terms says you are only allowed to implement Static Maps in web browsers.
Would be a nice (and hopefully temporary) alternative to the Map Kit though… :wink: [import]uid: 4298 topic_id: 421 reply_id: 789[/import]

does the current MapView of cornaSDK cover the google maps terms? [import]uid: 190 topic_id: 421 reply_id: 17491[/import]