MapWinGIS:AxMap ExtentsChanged

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

ExtentsChanged

This event is fired when the extents of the map change.


VB.NET Usage

Event ExtentsChanged(Sender As Object, e As System.EventArgs)

            Parameters

Sender

The sender of the event.
e There are no event arguments accessible through this parameter for this event.

Sample Code

    Private Sub Map1_ExtentsChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles Map1.ExtentsChanged
        Dim extents As MapWinGIS.Extents
        Dim xmin As Double, ymin As Double, zmin As Double, xmax As Double, ymax As Double, zmax As Double
        'Get the new map extents
        extents = Map1.Extents
        'Get the minimum and maximum values of x and y that define the map extents
        extents.GetBounds(xmin, ymin, zmin, xmax, ymax, zmax)
        'Display a message box that tells the user the size of the extents for the map view
        MsgBox("New extents. Width:" + Str(xmax - xmin) + " Height:" + Str(ymax - ymin))
    End Sub
  

VB 6 Usage

Event ExtentsChanged()
            Parameters

None

Sample Code

    Private Sub Map1_ExtentsChanged()
        Dim extents As MapWinGIS.extents
        Dim xmin As Double, ymin As Double, zmin As Double, xmax As Double, ymax As Double, zmax As Double
        'Get the new map extents
        Set extents = Map1.extents
        'Get the minimum and maximum values of x and y that define the map extents
        extents.GetBounds xmin, ymin, zmin, xmax, ymax, zmax
        'Display a message box that tells the user the size of the extents for the map view
        MsgBox ("New extents. Width:" + Str(xmax - xmin) + " Height:" + Str(ymax - ymin))
    End Sub

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

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