Hi Terry.
I did not tested my module with custom icon, until now I had the same
problem. I am innocent for this too. It appears to me, as others also
brought up, it works with 1.17, not 1.18. My custom icon one works with
1.17.
As reading the log that you also pasted above,
at mx.core::UIComponent/removeChild()[C:\autobuild\3.2.0\frameworks
\projects\framework\src\mx\core\UIComponent.as:5004]
at com.google.maps.wrappers::SpriteFactory/removeChild()
at com.google.maps.wrappers::ISpriteFactoryWrapper/removeChild()
at com.google.maps.overlays::Pane/removeOverlay()
at com.google.maps.overlays::Pane/addOverlay()
at com.google.maps.wrappers::IPaneWrapper/addOverlay()
you may find google code add overlay by first removing something first. take
guess work (since there is no source), it may remove/detach the overlay from
its previous parent. But in my case, my icon's parent is null.
Can Google share the test cases of this API? that is more reliable way to
learn how to use the API..
Cheers,
Juguang
On Sat, Jan 23, 2010 at 2:57 AM, Terry Reinert
<[email protected]>wrote:
> Thanks for the info. MarkerClusterer always barfs when using a custom
> icon. Using the hit test idea I implemented my own clusterer algorithm
> and it works great.
>
> Terry
>
> On Jan 4, 11:25 pm, Matt S <[email protected]> wrote:
> > Well, one way is to add all the individual markers, detect marker
> > overlap, and hide/remove any marker overlapping another marker while
> > saving them into relevant groups. Here's a quick example of doing
> > this for two markers:
> >
> > if(marker1.foreground.hitTestObject(marker2.foreground)) {
> > // They are overlapping, do
> something here like remove/
> > hide them and add a custom icon
> >
> > }
> >
> > That's the extreme simple example, but I think the key piece is
> > knowing how to detect overlap. The rest should be fairly simple.
> > There's examples for custom icons at the main Google Maps API for
> > Flash site.
> >
> > On Jan 4, 9:26 am, Terry Reinert <[email protected]> wrote:
> >
> > > Anyone know about this one?
>
> --
> 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]<google-maps-api-for-flash%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/google-maps-api-for-flash?hl=en.
>
>
--
=============
Juguang XIAO
Beijing, China
--
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.