I am tryign to embed a map on a web page (I have used the google maps
API in the paat mainly for gadgets)... The page is too big to post in
full here, but all it boils down to is that I have a table that has a
div in it call "map_canvas" :
<table>
<tr>
<td>
<div id='map_canvas' style='height:500px;width:400px'></div>
</td>
</tr>
</table>
And a piece of code that displays or hides that particular table.
Upon loading, this javascript executes :
var map = new GMap2(document.getElementById("map_canvas"));
map.setCenter(new GLatLng(37.4419, -122.1419), 13);
var geocoder = new GClientGeocoder();
map.setUIToDefault();
(There is some other Javascript that executes, to be sure, but that is
the only code that executes in relation to the map).
On Firefox, the map ends up seeming to position itself off to the left
and up a bit so only the lower right quarter is showing in the table
cell. On IE it displays correctly.... I can't see why that should be
and the only thing I can think of is the Map API for creating the new
map object... is there a problem with positioning it?
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---