MapWinGIS:AxMap RemoveLayer

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

RemoveLayer

Removes the specified layer from the map.


VB.NET Usage

Sub RemoveLayer(LayerHandle As Integer)

            Parameters

LayerHandle

The handle of the layer to be removed from the map.

Sample Code

    Private Sub RemoveLayer()
        Dim hndl As Integer
        'Get layer handle for layer at position 0
        hndl = Map1.get_LayerHandle(0)
        'Remove layer at position 0 from the map
        Map1.RemoveLayer(hndl)
    End Sub
  

VB 6 Usage
Sub RemoveLayer(LayerHandle As Long)
            Parameters

LayerHandle

The handle of the layer to be removed from the map.

Sample Code

    Private Sub RemoveLayer()
        Dim hndl As Long
        'Get layer handle for layer at position 0
        hndl = Map1.LayerHandle(0)
        'Remove layer at position 0 from the map
        Map1.RemoveLayer (hndl)
    End Sub

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

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