Ok, so I finally figured this out. It had nothing to do with the markers, it had everything to do with a custom control I written for the map. My custom control has no visual representation on the map, so I was passing null to the constructor of ControlBase for the control position. Apparently this is bad idea as it's throwing a null obj reference in teh getControlRect method.
It would be nice if the API had a ControlPosition.NONE or something similar to represent this type of control. Bryan On Wed, Mar 4, 2009 at 8:58 AM, bryandunbar <[email protected]> wrote: > > Anybody got any ideas on this? > > On Mar 2, 11:26 pm, bryandunbar <[email protected]> wrote: > > All - I have a main application mxml that defines a map. I then have > > some sub-components that act on that map. Currently for ease of coding > > I'm passing a reference to the map to the child component. One of the > > child components creates a series of marker overlays but when I call > > openInfoWindow on one of the markers I get the following error: > > TypeError: Error #1009: Cannot access a property or method of a null > > object reference. > > at com.google.maps.core::MapImpl/getControlRect() > > at com.google.maps.core::MapImpl/calcOffsetForViewportRegion() > > at com.google.maps.core::MapImpl/panToViewportRegion() > > at com.google.maps.core::MapImpl/openInfoWindow() > > at com.google.maps.overlays::Marker/openInfoWindow() > > at com.google.maps.wrappers::IMarkerWrapper/openInfoWindow() > > at <anonymous>()[C:\Development\flex\MapsDemo\src\comp > > \PolicySearch.mxml:146] > > at <anonymous>() > > at flash.events::EventDispatcher/dispatchEventFunction() > > at flash.events::EventDispatcher/dispatchEvent() > > > > Any thoughts? > > Thanks > > Bryan > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Maps API For Flash" 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-for-flash?hl=en -~----------~----~----~----~------~----~------~--~---
