View Full Version : Resolved Google Static Maps help

11-16-2010, 02:46 AM
I have a google static map which I spent ages trying to work out what to put in it and now it will not work, or be valid, so I am doing something wrong? Can anyone help Have I set it out the right way, I know it is static but it is still JS I believe.

<p><img alt="google_static_map" src="http://maps.google.com/maps/api/staticmap?center=51.454863,0.011673&zoom=13&markers=United+Reformed+Church,+111+Burnt+Ash+Road,++Lee,+London+SE12+8RG,+UK&size=250x250&sensor=TRUE /></a></p>

DO I need to put in it a div? I cant do iframes. My editor does not like it at all and it is not showing on the website. I am using XHTML

Old Pedant
11-16-2010, 03:24 AM
You are missing a " mark after TRUE.

And the word must be true in lower case. Google rejected it as TRUE.

You also have a bogus </a> tag in there. You can't use </a> without <a>.


<img alt="google_static_map"
src="http://maps.google.com/maps/api/staticmap?center=51.454863,0.011673&zoom=13&markers=United+Reformed+Church,+111+Burnt+Ash+Road,++Lee,+London+SE12+8RG,+UK&size=250x250&sensor=true" />

I'll bet it then works.

Old Pedant
11-16-2010, 03:33 AM
You know, it would be more meaningful for blind people, for example, if your alt was *USEFUL*

For example:

<img alt="United Reformed Church, 111 Burnt Ash Road, Lee, London SE12 8RG, UK"
src="...." />

11-16-2010, 03:36 AM
The img alt was the wrong thing there, lost a bit of code.

(Usually feel like I am being told of here in this forum.)

Anyhow, thanks to you, it actually works like magic, who would have thought such simple things. Thanks so much.

Old Pedant
11-16-2010, 03:43 AM
It's *always* the simple things. All the really complicated things either work like magic or never work at all. <grin/>

11-16-2010, 04:04 AM
can go off to sleep now

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum