MapWinGIS:AxMap ZoomPercent

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

ZoomPercent

Gets or sets the factor by which to zoom the view of the map in or out.


VB.NET Usage

Property ZoomPercent() As Double

            Parameters

ReturnValue

The factor used to determine how much the view of the map changes when the user zooms in or out.

Sample Code

    Private Sub ZoomIn()
        Dim zoompercent As Double
        'Set the zoom percent to 0.5 percent
        zoompercent = 0.5
        'Set the map's zoom percent
        Map1.ZoomPercent = zoompercent
        'Zoom in map view by the map's zoom percent
        Map1.ZoomIn(Map1.ZoomPercent)
        'Get the map's zoom percent
        zoompercent = Map1.ZoomPercent
    End Sub
  

VB 6 Usage
Property ZoomPercent() As Double
            Parameters

ReturnValue

The factor used to determine how much the view of the map changes when the user zooms in or out.

Sample Code

    Private Sub ZoomIn()
        Dim zoompercent As Double
        'Set the zoom percent to 0.5 percent
        zoompercent = 0.5
        'Set the map's zoom percent
        Map1.ZoomPercent = zoompercent
        'Zoom in map view by the map's zoom percent
        Map1.ZoomIn(Map1.ZoomPercent)
        'Get the map's zoom percent
        zoompercent = Map1.ZoomPercent
    End Sub

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

This page has been accessed 1,931 times. This page was last modified on 9 November 2005, at 19:07.