PDA

View Full Version : Google Maps API InfoWindowOptions not working


MikeHovey
10-01-2008, 08:42 PM
I can't seem to get the InfoWindow to work properly. Here's my code:

private function showInfoWindow(e:MapMouseEvent):void
{
var options:InfoWindowOptions = new InfoWindowOptions({customContent: new CustomInfoWindow(),
customOffset: new Point(0, 10),
customCloseRect: new Rectangle(65, -110, 20, 20)});

e.currentTarget.openInfoWindow(options);
}

And here's the error i'm getting:

TypeError: Error #1034: Type Coercion failed: cannot convert com.google.maps::InfoWindowOptions@1f3a7e81 to com.google.maps.InfoWindowOptions.

Anyone have any ideas what's going on?