PDA

View Full Version : Google Maps API Woes



dharrison
04-07-2011, 02:25 AM
Hi all and help.

I was asked to change a phone number on a website and amend a Google map to read the correct address. http://edge-edge.co.uk/contact.php

However, for some ungodly reason now the map has disappeared and the form has entered again and is showing a warning as if someone had completed it.

I have restored the pages from backup and this does not seem to have worked.

Please could anyone offer any guidance as to whats gone wrong? I know basic scripting so if its a case of adding a bit of script, then I can do that no problems.

Any advice will be gratefully received and I am reputed (I hope) to give kudos to anyone's reputation to can help me in my hour of need.

TIA

Many thanks

Web Res
04-07-2011, 09:00 PM
Looks like you wiped out all the map code. It's hard to tell what you did to create the map. Some CMS systems have extensions that control maps. Others use a cut-n-paste of Google's mymaps. Without knowing more about how the map was created it's pretty hard to provide help.

When you look at the code, there is a div to control the map:
<div id="map" style="width: 280px; height: 280px; overflow: hidden;"></div>

There should be more info. What I find is that some html editors break code; so if the code was just cut-n-paste it could be the editor broke it when you saved your change. Editors can easily break javascript.

If you know how to get the code (again assuming this is not a plug-in for your CMS) then try opening the page with the editor turned off and paste it in code view and save it without switching back to html.

The fact that div says id="map" makes me think the map might be generated by the CMS. Which means the problem might not be on the page, but somewhere in the extension.

dharrison
04-08-2011, 03:28 PM
Thanks Mark, Luckily its not a CMS or extension. Whoever set this up seems to have done it through coding alone. To update the news section, is all done through PHPMyAdmin (which has a lot of people running for the hills).

Still what you suggested is insightful and certainly giving me something to think about. THanks :)