Alright this is definitely a bug. Here's a minimal test case: http://search.missouristate.edu/map/mobile/examples/infowindowbug.htm
This page generates a script error in Internet Explorer. Opening an InfoWindow when the map has an effective width of 0 seems to be the problem. I've filed a bug. Star the issue to both vote for it and track its progress: http://code.google.com/p/gmaps-api-issues/issues/detail?id=2536 Chad Killingsworth On Jun 28, 7:45 am, Chad Killingsworth <[email protected]> wrote: > Hmm I looked again and you are correct - InfoWindow.open takes 2 > arguments. I could have sworn it was only 1. > > However, in either case, IE is giving a JavaScript error. Here comes > the guessing stage - as I'm not easily able to make a local copy of > your site without a lot of work: > > You are opening the InfoWindow when the map is hidden and the map is > trying to verify that the info window fits within the viewport > boundaries. Try delaying the open info window until after you trigger > the resize event. Alternatively, try setting a width and a height on > the map. At the time that you open the InfoWindow, the map has an > effective width/height of 0. > > I'll try to build a minimal test case later today. > > Chad Killingsworth > > On Jun 28, 3:47 am, sisko <[email protected]> wrote: > > > > > Thanks a great deal for responding. > > > I have to say I disagree. I admit I don't know alot about google maps > > but the open(map:Map|StreetViewPanorama, anchor?:MVCObject) > > athttp://code.google.com/apis/maps/documentation/javascript/reference.h... > > clearly make provision for 2 arguments. > > > However, I tried it the way you suggested and the marker and then the > > location as lone arguments ... it made no difference. > > I then commented out the entire infoWindow code and it was still the > > same result. > > > The marker is still in the top left corner. Can you perhaps suggest a > > way to re-orient my map so that it is centered? That should also > > center my marker. > > Just how to do that ... ? > > > On Jun 27, 1:26 pm, Chad Killingsworth > > > <[email protected]> wrote: > > > There are a couple of problems with the way you create your InfoWindow > > > which is causing JavaScript errors. > > > > 1) You aren't setting the 'map' property of the InfoWindow. In your > > > case you should set this as part of the options object when you create > > > the InfoWindow. > > > > 2) Calls to InfoWindow.open() only take a single parameter - the > > > marker or location to which the InfoWindow should point. You've got 2 > > > paremeters so the second one is completely ignored. The first, map, is > > > not a valid location parameter. > > > > Chad Killingsworth > > > > On Jun 25, 6:57 am, sisko <[email protected]> wrote: > > > > > I am using css to hide my map by default and then using jquery to > > > > display it when a map button is clicked. > > > > > At the point of jquery displaying the map, there was an initial > > > > problem with the map not rendering properly. > > > > I used google.maps.event.trigger(map, 'resize') to sucessfully fix > > > > that problem. > > > > > But then I found the map center and the marker are out in the top left > > > > hand corner. > > > > If I drag the marker back to the center I also found the infoWindow is > > > > no longer working in IE > > > > > For an example check > > > > outhttp://www.test3omniforce.co.uk/venue/royal-courts-justice. > > > > Please click the map icon in the "About this venue..." box just below > > > > the navigation menu. > > > > > hoping someone can help, > > > > sisko -- 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 [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-js-api-v3?hl=en.
