On Thu, Sep 18, 2008 at 5:09 PM, warmer <[EMAIL PROTECTED]> wrote: > > I'm trying to use Flash to simply load in an image returned by this > query: > > http://maps.google.com/staticmap?center=40.714728,-73.998672&zoom=14&size=400x400&key=MAPS_API_KEY > > And it doesn't work, for whatever reason, because Google seems to > block it. > > So instead, I'd like to use a PHP proxy on my server, which would > return the image and pass it off to Flash. > > However...this isn't working either. I've tried this script: > > http://72.14.205.104/search?q=cache:http://www.abdulqabiz.com/files/proxy.php.txt > > And also the ones here: > http://www.kylebrekke.com/wordpress/2008/bypassing-crossdomainxml-files-using-a-php-proxy/ > > But it doesn't work! I get this: > > proxy.php?url=http://maps.google.com/staticmap? > center=40.714728,-73.998672&zoom=14&size=400x400&key=MAPS_API_KEY&mimeType=image/ > gif" cannot be displayed, because it contains errors.
I take it that is a copy/paste error, and you really doing something like proxy.php?url=http%3A%2F%2Fmaps.google.com%2Fstaticmap%3Fcenter%3D40.714728%2C-73.998672%26zoom%3D14%26size%3D400x400%26key%3DMAPS_API_KEY&mimeType=image/gif You need url encoding (or similar) to diffierentiate should the parameters be for your (proxy) script or params for the maps api. (php will be helpful and do the url decoding on the '$_GET['url']' variable for you. > > Am I missing something here? Does Google block this as well? If so, > why, but if not... what am I doing wrong here? > > > -- Barry - www.nearby.org.uk - www.geograph.org.uk - --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Maps API" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Maps-API?hl=en -~----------~----~----~----~------~----~------~--~---
