MapWinGIS:AxMap ZoomToLayer

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

ZoomToLayer

Zooms the map display to the specified layer.


VB.NET Usage

Sub ZoomToLayer(LayerHandle As Integer)

            Parameters

LayerHandle

The handle of the layer to zoom to.

Sample Code

    Private Sub ZoomToLayer()
        Dim hndl As Integer
        'Get handle for layer at position 0 in map
        hndl = Map1.get_LayerHandle(0)
        'Zoom to the layer at position 0 in the map
        Map1.ZoomToLayer(hndl)
    End Sub
  

VB 6 Usage
Sub ZoomToLayer(LayerHandle As Long)
            Parameters

LayerHandle

The handle of the layer to zoom to.

Sample Code

    Private Sub ZoomToLayer()
        Dim hndl As Long
        'Get handle for layer at position 0 in map
        hndl = Map1.LayerHandle(0)
        'Zoom to the layer at position 0 in the map
        Map1.ZoomToLayer (hndl)
    End Sub

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

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