Dear,

I have this code with an example of a simple map, but I put the DIV
and the google map code inside a table and the map appears moved and
wrong.

The code is:

<html>

<body>

<table width="779" border="0" cellpadding="0" cellspacing="0" >
<tr>
<td >

<div id="map_canvas" style="width: 500px; height: 300px;"></div>
<script src="http://maps.google.com/maps?
file=api&amp;v=2&amp;key=ABQIAAAAms5aj8QmwPsBYYJPFihgzxSk6wwsctxC08Ni8bJFyFUIg8Qk-
RREY-mHi4N6YPcfoZnRZ0R7XCNowg"
            type="text/javascript"></script>
    <script type="text/javascript">

      if (GBrowserIsCompatible()) {
        var map = new GMap2(document.getElementById("map_canvas"));
        map.setCenter(new GLatLng(37.4419, -122.1419), 13);
        GEvent.addListener(map, "click", function() {
          alert("You clicked the map.");
         });
      }

    </script>

</td>
</tr>
</table>


</body></html>

--~--~---------~--~----~------------~-------~--~----~
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