Hello Ian,

I'm using overlays in order to group markers that I'm drawing in the
map using Sprites. Somhow a "Layer" concept if you will.

I want to give the user the ability to re-order those layers.

Each overlay I add to the map represents a "Layer". Each of these
overlays draws visual objects inside by using Sprites.graphic
techniques. We are using this suggested approach in order to gain more
performance when we have to use multiple markers.

So the idea to change the index position in the map is to control
which layer is displayed on top of each other.

Thanks,
Fernando

On Apr 4, 7:32 pm, Ian Appleby <[email protected]> wrote:
> Why do you want to change the index?
>
> If your overlays overlap and you want to control what's on top you can
> use bringToTop (http://code.google.com/apis/maps/documentation/flash/
> reference.html#IPane.bringToTop), although if you have "sets" of
> overlays which move together, you may be better off using seperate
> IPanes.
>
> If you've got a different reason to change indicies, give a bit more
> detail and I'll try to be more helpful can't think of one right now.
>
> On Apr 4, 9:56 pm, FernandoM <[email protected]> wrote:
>
> > Hello,
>
> > I would like to know if there is any way of changing the overlay
> > indexes once those are added to the map. I'm looking for somehting
> > like this:
>
> > var o1:IOverlay = new MyOverlay();
> > var o2:IOverlay = new MyOverlay();
> > var o3:IOverlay = new MyOverlay();
>
> > map.addOverlay(o1);
> > map.addOverlay(o2);
> > map.addOverlay(o3);
>
> > map.setOverlayIndex(o1,1/*new index*/);
>
> > Thanks,
> > Fernando
>
>

-- 
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.

Reply via email to