On Aug 12, 9:32 am, Dave <dave...@gmail.com> wrote: > http://namibia.bluemarblecreative.net/map > here is the beta page.
I get an "unspecified error" in IE and don't see any polygons on that map. The map tiles are being tiled in strange ways in IE, seems to at least show the map correctly and the polygons in Firefox. You have problems with your code. At a minimum, this: var clickedLocation = new google.maps.LatLng(event.latLng); doesn't work (event.latLng is a google.maps.LatLng, the constructor, at least according to the documentations takes as a minimum two numbers, the latitude and the longitude). This (with some other modifications) gives me an infowindow: var clickedLocation = event.latLng; -- Larry > > On Aug 12, 9:11 am, "geocode...@gmail.com" <geocode...@gmail.com> > wrote: > > > > > On Aug 12, 8:27 am, Dave <dave...@gmail.com> wrote: > > > > I'm having trouble opening an InfoWindow from a Polygon click event. > > > > I have a loop of polygons (database driven) that load into the map. > > > during the loop it calls this function passing in the Polygon shape > > > and the object of data. > > > > from there it adds and eventhandler to add a infowindow? > > > > function conservancyInfoWindow(shape, conservancyobj) { > > > var thisshape = shape; > > > var conservancy = conservancyobj; > > > google.maps.event.addListener(thisshape, 'mousedown', > > > function(event) > > > { > > > //clearEnterpriseWindows(); > > > //alert(conservancy.title); > > > var clickedLocation = new > > > google.maps.LatLng(event.latLng); > > > var cwindow = new google.maps.InfoWindow({ }); > > > cwindow.setPosition(clickedLocation); > > > var thiscontent = conservancy.title; > > > cwindow.setContent(thiscontent); > > > cwindow.open(map, thisshape); > > > > }); > > > > } > > > > But it does not open the InfoWindow. What am i doing wrong? > > > Any help is appreciated! > > > Not enough information. Where is your map where you tried to > > implement this? > > > -- Larry- 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.