Thank you for all your help.

I managed to get a map to display.

Just wondered how I could get the map to zoom further in when it's
first displayed?

At the moment the map is quite zoomed out when first displayed.

Thank you



<!DOCTYPE html "-//W3C//DTD XHTML 1.0 Strict//EN"
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd";>
<html xmlns="http://www.w3.org/1999/xhtml";>
  <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&v=2&sensor=false&key=" type="text/javascript"></
script>

    <script type="text/javascript">

    var map;

    function load() {

      if (GBrowserIsCompatible()) {

                map = new GMap2(document.getElementById("map_canvas"));

                map.addControl(new GSmallMapControl());

                map.addControl(new GMapTypeControl());

        map.setCenter(new GLatLng(51.528644, -0.128081), 13);

                map.addOverlay(createMarker(new GLatLng(51.528644, -0.128081), 
'Some
Text'))

      }
    }

        // Creates a marker at the given point with the given number label

        function createMarker(point, text) {

          var marker = new GMarker(point);



          GEvent.addListener(marker, "click", function() {

                marker.openInfoWindowHtml(text);

          });

//        marker.openInfoWindowTabsHtml(text);

          return marker;

        }

    </script>
  </head>
  <body onload="load()" onunload="GUnload()">
    <div id="map_canvas" style="width: 500px; height: 300px"></div>
  </body>
</html>



On Aug 2, 9:32 pm, Rossko <[email protected]> wrote:
> > Could I also what the
> > sensor=true_or_false  is?
>
> Seehttp://code.google.com/apis/maps/documentation/introduction.html#Load...
>
> It's to report to Google whether or not you are using some kind of
> sensor to determine the end users position.
> It must be changed from true_or_false to one or the other.
> It does not enable any sensing!ny sensing!
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to