MapWinGIS:AxMap LayerHandle

This is a back-up of the WIKI.
Not all links might work
We're working on a new wiki.

Main Page | Recent changes | View source | Page history | Log in / create account |

Printable version | Disclaimers | Privacy policy

LayerHandle

Gets the handle of the layer at the given position in the map. Returns -1 if there is no layer at the specified position.


VB.NET Usage

ReadOnly Property get_LayerHandle(LayerPosition As Integer) As Integer

            Parameters

LayerPosition

The position of the layer for which the layer handle is required.
ReturnValue The layer handle for the layer at the specified position.

Sample Code

    Private Sub LayerHandle()
        Dim hndl As Integer
        'Get the layer handle for the layer at position 0
        hndl = Map1.get_LayerHandle(0)
        'Use layer handle to set specified layer as visible in map
        Map1.set_LayerVisible(hndl, True)
    End Sub
  

VB 6 Usage
ReadOnly Property LayerHandle(LayerPosition As Long) As Long
            Parameters

LayerPosition

The position of the layer for which the layer handle is required.
ReturnValue The layer handle for the layer at the specified position.

Sample Code

    Private Sub LayerHandle()
        Dim hndl As Long
        'Get the layer handle for the layer at position 0
        hndl = Map1.LayerHandle(0)
        'Use layer handle to set specified layer as visible in map
        Map1.LayerVisible(hndl) = True
    End Sub

Retrieved from "http://mapwindow.org/wiki/index.php/MapWinGIS:AxMap_LayerHandle"

This page has been accessed 1,967 times. This page was last modified on 9 November 2005, at 18:49.