Search code examples
javascriptvirtual-earth

How to control layer ordering in Virtual Earth


I have a mapping application that needs to draw a path, and then display icons on top of the path. I can't find a way to control the order of virtual earth layers, other than the order in which they are added.

Does anyone know how to change the z index of Virtual Earth shape layers, or force a layer to the front?


Solution

  • I think the easiest way is to iterate through the shapes in your VEShapeLayer and use the VEShape.SetZIndex method.