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 ! On Jul 29, 4:22 pm, Rossko <ros...@culzean.clara.co.uk> wrote: > >http://www.arjaywireless.com/Temp/index2.html > > When you build your map, the div containing it is hidden. The map is > built with no meaningful, because that is what the browser tells the > maps API about it. > Run the maps resize method when revealing > it.http://groups.google.com/group/google-maps-js-api-v3/search?group=goo... -- You received this message because you are subscribed to the Google Groups "Google Maps JavaScript API v3" group. To post to this group, send email to google-maps-js-api...@googlegroups.com. To unsubscribe from this group, send email to google-maps-js-api-v3+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-maps-js-api-v3?hl=en.