Printable versions
This Page
All Pages
PDF (2.0MB)

Index

Component
GpsViewNET

Class
Map

Properties
Position
OffsetX
OffsetY
Zoom
Rotation
Background
UpdateInterval

Layers
MapLib

Events
OnObjectDown
OnObjectUp
OnMouseDown
OnMouseUp
OnMouseMove
OnDraw
OnDrawComplete

Methods
Open
Merge
Close
Update
UpdateAsync
CancelUpdate

NewMapShape
NewMapShapeFile
NewIcon
NewLine
NewRectangle
NewEllipse
NewLabel
Delete

GetByID
GetByIndex
GetByPosition
SetIndex
GetIndex

ActiveLayer
ActiveMapData

Position2Point
Point2Position

ZoomByBoundingBox

Map.OnObjectDown GpsTools v2.00 and later

This event is raised when the user clicks on an object with the mouse. The object can be an Ellipse, Rectangle, Line or Icon. The clicked object is passed as the last argument objDrawObject in the event (see below).

The event is raised when the mouse button is pressed. Map.OnObjectUp is raised when the mouse button is released.

To determine what kind of object has been clicked, use the IDrawObject interface which all objects that can be drawn on a map has. The objects ID property can also come in handy to identify the object and link it to custom database information.

NOTE! If this event is raised Map.OnMouseDown is not called.

Syntax
object_OnObjectDown(Button, Shift, objPosition, objPoint, objDrawObject)

Part Type Description
object   Name of object generating event.
Button short Mouse button pressed.
1 -> Left button
2 -> Right button.
Shift short Qualifying keys pressed.
1 -> Shift
2 -> Ctrl.
4 -> Alt.
The values can be combined if multiple qualifying keys are pressed simultaneously.
objPosition GpsToolsNET.Position
The geographic position that was clicked.
objPoint GpsViewNET.Point
Pixel position that was clicked.
objDrawObject GpsViewNET.IDrawObject
Object that was clicked.



Compact Framework
© 2016 Franson Technology AB, All rights reserved, Contact | | Affiliate | Login