On Jan 30, 4:38 pm, jsprague <[email protected]> wrote: > > Now the map covers the whole "canvas" and I got rid of the info > bubble, but the pin is still in the upper left corner. Did I add the > checkResize in the right place?
Yes, but there are oddities in how the map is centred. I would suggest adding map.setCenter(marker.getLatLng()); after the checkResize(); statement -- between its semicolon and the very next } AND changing googlemaps.js so that there is var map=false; var marker; and marker = new GMarker(point); so that you move the "var" statement into global scope. That will make the marker accessible so you can use it set the map centre correctly. None of this is tested, I'm afraid. It's very difficult to do that when all the scripting is spread around separate files. Andrew --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
