Results 1 to 2 of 2

Thread: google maps
      
   

  1. #1
    nick1346 is offline Major
    Join Date
    Jan 2006
    Posts
    317

    Default google maps

    Hi

    Not sure where to post this so I'll try here. Is anyone here familiar with using google maps? I'm embedding them into my pages, I can get the map centred to where I need and the controls for zooming in and out, but I keep falling down when it comes to sorting out the location icons. The google help page is superb for everything else but this. Does anyone have any ideas? A sample page can be found at:

    http://www.yourlocal.org.uk/samplenickbmap.html

    (that isn't me in the photo I'm glad to say!)

    and I'm using this code:

    <head>
    <meta http-equiv="content-type" content="text/html; charset=utf-8"/>
    <title>Google Maps JavaScript API Example</title>
    <script src="http://maps.google.com/maps?file=api...LuegfpJ_Gvwj2g"
    type="text/javascript"></script>
    <script type="text/javascript">
    //<![CDATA[
    function load() {
    if (GBrowserIsCompatible()) {
    var map = new GMap2(document.getElementById("map"));
    map.addControl(new GSmallMapControl());
    map.addControl(new GMapTypeControl());
    map.setCenter(new GLatLng(50.9040, -1.3970), 13);
    map.addOverlay(new GMarker(new GPoint(50.9040, -1.3970)));
    map.addOverlay(new GMarker(new GPoint(50.9038, -1.3961)));
    }
    }
    //]]>
    </script>
    </head>
    <body onload="load()" onunload="GUnload()">
    <div id="map" style="width: 500px; height: 300px"></div>
    </body>
    </html>

    Thanks

    Nick

  2. #2
    nick1346 is offline Major
    Join Date
    Jan 2006
    Posts
    317

    Default Re: google maps

    Victory!
    Cancel that, I've sorted it and it works perfectly
    Nick

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49