This project is read-only.

Force a layer always be on top

Nov 6, 2014 at 9:38 AM
Hi,I have a layer and I want to make it stay op top of other layer when a new layer addes.I can performe a loop when a new layer adds at first remove layer then add other layers to map and then add my layer again to map,This needs two loops I think.Is there a better way to do this?
Any suggestions ?
Thanks for your help
Nov 6, 2014 at 3:02 PM
Edited Nov 6, 2014 at 3:02 PM
  Here is the code i use to place a layer on the last spot

        Dim index As Integer
  index = Me.myMAP.Layers.Count
        If index = 0 Then
            Me.myMAP.Layers.Add(layer)
        Else
            Me.myMAP.Layers.Insert(0, layer)
        End If
I hope it helps you a bit :)
Nov 13, 2014 at 9:14 AM
Dear Joska Thanks a lot for your answer