MapWinGIS:AxMap ExtentPad

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

ExtentPad

Gets or sets the percentage of the view used to pad the extents of a layer when zooming to a layer or maximum extents. Padding makes it so that there is a small border around the layer when you zoom to it.


VB.NET Usage

Property ExtentPad() As Double

            Parameters

ReturnValue

The amount of padding around the extents when zooming to a layer or to maximum extents.

Sample Code

    Private Sub ExtentPad()
        Dim padding As Double
        'Get extent padding for zooming
        padding = Map1.ExtentPad
        If Map1.ExtentPad = 5 Then
            'Set extent padding for zooming
            Map1.ExtentPad = 10
        Else
            'Set extent padding for zooming
            Map1.ExtentPad = 5
        End If
    End Sub
  

VB 6 Usage
Property ExtentPad() As Double
            Parameters

ReturnValue

The amount of padding around the extents when zooming to a layer or to maximum extents.

Sample Code

    Private Sub ExtentPad()
        Dim padding As Double
        'Get extent padding for zooming
        padding = Map1.ExtentPad
        If Map1.ExtentPad = 5 Then
            'Set extent padding for zooming
            Map1.ExtentPad = 10
        Else
            'Set extent padding for zooming
            Map1.ExtentPad = 5
        End If
    End Sub

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

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