I read from the documentation something about --
google.maps.event.trigger(map, 'resize') .
But I dont know how to load or incorporate it inside my code to make
it work. I've been at it for 3 days in row now =[
Im not a pro about this so I really dont know how to trigger that
resize once div is loaded.
Any assistance as what to put in and where ?
Here's the part that loads the map:
<script type="text/javascript">
function initialize() {
var LatLng = new google.maps.LatLng(40.7471279, -73.6719630);
var settings = {
zoom: 14,
center: LatLng,
mapTypeControlOptions: {style:
google.maps.MapTypeControlStyle.DROPDOWN_MENU},
navigationControl: true,
navigationControlOptions: {style:
google.maps.NavigationControlStyle.SMALL},
mapTypeId: google.maps.MapTypeId.ROADMAP };
var map = new google.maps.Map(document.getElementById("map_canvas"),
settings);
var companyLogo = new google.maps.MarkerImage('images/map_ar_sh.png',
new google.maps.Size(100,50),
new google.maps.Point(0,0),
new google.maps.Point(45,35)
);
var companyPos = new google.maps.LatLng(40.7471279, -73.6719630);
var companyMarker = new google.maps.Marker({position: companyPos, map:
map, icon: companyLogo,
title:"Arjay Wireless" });
}
google.maps.event.addDomListener(window,'load', initialize);
</script>
Thanks by the way !
> Run the maps resize method when revealing it.
http://groups.google.com/group/google-maps-js-api-v3/search?group=goo...