FYI

I _think_ I fixed it - i went back to KISS and just set each pane id
for each layer/pane to 1 - the API handles assigning the right number
and I dont need to worry about it (yet) and my infowindows float on
top

                private function resetPanes():void {

                        var layers:ArrayCollection = 
this.mapLegend.legendEntries;

                        this.layerManager.placePaneAt(tooltipLayer,1);
                        this.layerManager.placePaneAt(redlineLayer,1);

                        //reset pane order when there is a change
                        for (var j:int=0; j < layers.length; j++){
                                var layer:Layer = layers[j] as Layer;
                                this.layerManager.placePaneAt(layer.pane,1);

                        }


                }

On Jun 17, 2:22 pm, Hugely <[email protected]> wrote:
> My custom infowindows are under my other overlays
>
> same issue as that of Javier:
>
> http://s3.amazonaws.com/biodiversityatlas.com/problemwithinfowindow.png
>
> did this ever get resolved?
>
> - ver 1.18
> - using pane manager to add multiple overlays (markers, polyline,
> polygons) to multiple panes
> - reordering panes via a legend mechanism (resetPanes on a
> legendEvent):
>
>         private function resetPanes():void {
>
>                         var layers:ArrayCollection = 
> this.mapLegend.legendEntries;
>
>                         //save two spots for redlinelayer and tooltiplayer
>
>                         var topPane:int = this.layerManager.paneCount;
>                         this.layerManager.placePaneAt(redlineLayer,topPane);
>                         this.layerManager.placePaneAt(tooltipLayer,topPane);
>
>                         //save two spots for redlinelayer and tooltiplayer
>                         var maxPane:int = topPane - 2;
>
>                         //reset pane order when there is a change
>                         for (var j:int=0; j < layers.length; j++){
>                                 var layer:Layer = layers[j] as Layer;
>                                 //substract from the top
>                                 var paneIdx:int = maxPane - j;
>                                 layer.paneDepth = paneIdx;
>                                 //reset pane placement
>                                 
> this.layerManager.placePaneAt(layer.pane,layer.paneDepth);
>
>                         }
>
>                 }
>
> I think the float should always be on top not sure why it isnt (yes I
> read the API but it doesnt make sense)

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