You may need to check out the docs for IPaneManager.createPane() Example Create a new pane lying immediately below the marker pane.
var manager:IPaneManager = map.getPaneManager(); var markerPane:IPane = manager.getPaneById(PaneId.PANE_MARKER); var markerIndex:int = manager.getPaneIndex(markerPane); var pane:IPane = manager.createPane(markerIndex); Juguang On Thu, Mar 4, 2010 at 6:53 AM, KC <[email protected]> wrote: > Hi - > > I tried search this group for the answer but can't seem to find one so > I hope you guys can help. I'm adding a directions polyline to the map > like this: > > var directionsLine:IPolyline = dir.createPolyline(); > var paneManager:IPaneManager = map.getPaneManager(); > var myPane:IPane = paneManager.createPane(paneManager.paneCount); > > myPane.addOverlay(directionsLine); > currentPaneID = myPane.id; > > I'm doing it this way because it seemed like the best way to be able > to programatically add then clear directions and polylines off the map > without redrawing everything else. This works out just fine. > > The issue is that the polyline can and does usually appear on top of > everything else already on the map including any markers or > InfoWindows. I totally understand why, its simply adding a new > overlay, but I'm wondering how I can determine the map overlay > position and place the new polyline directly above the map and shift > everything else up a level so that the polyline is simply resting > directly on top of the map as it does usually on a google map. > > Anyone know how to do this or know of a better way? I'm sure there > is!! > > Thanks so much for your help. > K_C > > -- > 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. > > -- ============= 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.
