Add Google map on your page

Hi,
have look at the follownig code . it adds
Google map on the page . Its easy . The are
other google map libraries available for additional features….(Click here)..

<script src=”http://maps.google.com/maps?file=api&amp;v=4
            type=”text/javascript”></script>
    <script type=”text/javascript”>

    function initialize() {
      if (GBrowserIsCompatible()) {
        var map = new GMap2(document.getElementById(“map_canvas”));
        map.setCenter(new GLatLng(37.4419, -122.1419), 15);
        var show= GMap2.getInfoWindow();
         show.show();

      }
    }

    </script>

 <body onload=”initialize()” onunload=”GUnload()”>
    <div id=”map_canvas” style=”width: 500px; height: 300px”></div>
  </body>
Advertisements

One thought on “Add Google map on your page

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s