ok, after defining the size of the images using google.maps.MarkerImage, the infowindow is now showing correctly inside the map area.
Thanks for your help. On Aug 18, 9:15 pm, "geocode...@gmail.com" <geocode...@gmail.com> wrote: > On Aug 18, 5:25 pm, Micah <micahs2...@gmail.com> wrote: > > > I fixed the js, so that it should work in IE and other browsers... > > Please take a look, so you can see firsthand how the top of the > > infowindow is being cutoff. > > Try defining your custom icon completely using the > google.maps.MarkerImage:http://code.google.com/apis/maps/documentation/javascript/reference.h... > > If I use the definitions from > here:http://www.geocodezip.com/v3_markers_red.html > > it works for me (at least in IE6). > > -- Larry > > > > > Thanks, > > > On Aug 18, 5:18 pm, Micah <micahs2...@gmail.com> wrote: > > > > triggering the click event actually produced the same exact results. > > > I will try to get the map working in other browsers, so you can view > > > it. > > > > On Aug 18, 5:16 pm, "geocode...@gmail.com" <geocode...@gmail.com> > > > wrote: > > > > > On Aug 18, 2:09 pm, Micah <micahs2...@gmail.com> wrote: > > > > > > I'm sorry, I forgot that the javascript wasn't working in other > > > > > browsers. I am using Firefox, and you can view the map in firefox. > > > > > > Can you trigger a click event, without actually clicking? > > > > > If you have a reference to the thing you want to click on: > > > > google.maps.event.trigger(gmarkers[i], "click"); > > > > > -- Larry > > > > > > Thanks, > > > > > > I will also try using the markerImage class > > > > > > On Aug 18, 4:07 pm, "geocode...@gmail.com" <geocode...@gmail.com> > > > > > wrote: > > > > > > > On Aug 18, 11:20 am, "geocode...@gmail.com" <geocode...@gmail.com> > > > > > > wrote: > > > > > > > > On Aug 18, 11:02 am, Micah <micahs2...@gmail.com> wrote: > > > > > > > > > Ok, thanks for your help. You can view an example > > > > > > > > here:http://micah.swellinfo.com > > > > > > > > > I first center on the marker (the marker that has the > > > > > > > > infowindow). > > > > > > > > Then, I do an call open(). > > > > > > > > FYI - Your map doesn't work in IE6, so I can't see what you are > > > > > > > talking about. > > > > > > > And in firefox I get: > > > > > > Error: initialize is not defined > > > > > > Source File:http://micah.swellinfo.com/ > > > > > > Line: 1 > > > > > > (which is the second error I get in IE, after one that looks like it > > > > > > is because for some item item.break has a problem; I suspect you > > > > > > don't > > > > > > actually need a initialize function or you have something that is > > > > > > overwriting it the body onload event for IE) > > > > > > > I still think triggering a "click" on the marker (instead of opening > > > > > > it, since that will open the infowindow and move the center of the > > > > > > map > > > > > > to fit the infowindow) will fix your original problem. > > > > > > > -- Larry > > > > > > > > Might I suggest triggering a "click" event on the marker instead? > > > > > > > > -- Larry > > > > > > > > > On Aug 18, 1:57 pm, "geocode...@gmail.com" > > > > > > > > <geocode...@gmail.com> > > > > > > > > wrote: > > > > > > > > > > On Aug 18, 10:52 am, Micah <micahs2...@gmail.com> wrote: > > > > > > > > > > > I have created a map and a marker. An infowindow is > > > > > > > > > > associated with > > > > > > > > > > the marker and pops up on startup. The infowindow > > > > > > > > > > re-centers the map > > > > > > > > > > in order to fit in the current view, but unfortunately the > > > > > > > > > > very top of > > > > > > > > > > the infowindow is still cut off. > > > > > > > > > > > This does not happen when I associate the infowindow with a > > > > > > > > > > click > > > > > > > > > > event. > > > > > > > > > > > Any ideas how to have the infowindow fit (as it does on > > > > > > > > > > click event) > > > > > > > > > > property. > > > > > > > > > > > Thank you, > > > > > > > > > > I assume that you are centering the map on the marker. If > > > > > > > > > that makes > > > > > > > > > your infowindow get cut off by the map boundary (another > > > > > > > > > assumption), > > > > > > > > > change the place that you are centering the map os the > > > > > > > > > infowindow > > > > > > > > > fits. If you want specific advice, a link would help. > > > > > > > > > > -- Larry- Hide quoted text - > > > > > > > > > - Show quoted text -- Hide quoted text - > > > > > > > > - Show quoted text -- Hide quoted text - > > > - Show quoted text - -- 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.