Hi all,
I am trying to create a static GMap as follows:
var img = dec('img');
img.src = "http://maps.google.com/staticmap?center=" + map.target.lat
+ ',' + map.target.long + "&zoom=14&size=460x250&markers=" +
map.target.lat + ',' + map.target.long + '&key=' + gmapKey +
"&sensor=False/";
When I run this code locally, it works fine.
However, if you go to this page: http://www.trailbehind.com/node/1148091/,
and click the orange link on the left - "Email this Location" - the
map does not show up in the pop-up as it should.
When looking at the request in FireBug, I see that I am getting a 400
(bad request) back from Google. However, if I copy and paste the URL
that 400ed into my browser, it works fine. For example:
http://maps.google.com/staticmap?center=37.84637,-119.50903&zoom=14&size=460x250&markers=37.84637,-119.50903&key=ABQIAAAAGFSvsJjnPmsGb7IcfqoamBQxFGSDsNggDdRtUnAb8L8sJ910FhSKwoOpNaUlGCQIhyl6Dy5Cbyb0lQ&sensor=False/
So, what am I missing here? Why the 400 on www.trailbehind but not on
localhost? I'm pretty sure I'm switching GMap keys properly.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---