Layers order

Topics: General
Oct 20, 2011 at 8:33 PM

Hi everybody.

I created a GmapControl, with several layers. I.E.: if a draw a square in the first layer, it will be overlapped with a circle that i draw in the second layer. Its possible to "change the order" of a Layer? (or something like layer.BringTofront/layer.BringtoBack). I know that i can change the way of draw things (drawing the circle in the first layer and square in the second). But, when i have somehting like 6 layers or more (they are created programmatically), its very troublesome to control this. I need the first layer always stay at top of the rest.



Oct 20, 2011 at 9:02 PM


Oct 20, 2011 at 10:40 PM
Edited Oct 20, 2011 at 10:44 PM

Gmapcontrol.Overlays.Move ask for a oldIndex and newIndex (integer). How can obtain these index for a layer? Sorry for disturbing you


Ops! I Get it: gmapcontrol.overlays.Indexof(MyLayer)

(This returns the index of my layer)