Submit Your Article Forum Rules

Results 1 to 3 of 3

Thread: Google Maps API Woes

  1. #1
    WebProWorld MVP dharrison's Avatar
    Join Date
    May 2005
    Location
    Essex UK
    Posts
    1,334

    Google Maps API Woes

    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
    Deb Harrison
    Essex Web Design | DVH Design Blog
    If I have helped please add to my Reputation

  2. The following user agrees with dharrison:
  3. #2
    Senior Member Web Res's Avatar
    Join Date
    Apr 2007
    Location
    Byron Bay, Australia
    Posts
    146
    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.

  4. #3
    WebProWorld MVP dharrison's Avatar
    Join Date
    May 2005
    Location
    Essex UK
    Posts
    1,334
    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
    Deb Harrison
    Essex Web Design | DVH Design Blog
    If I have helped please add to my Reputation

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •