Printable versions
This Page
All Pages
PDF (2.0MB)

Index

Component
GpsViewNET

Class
Icon

Properties
ID
Name
Position
Height
Width
OffsetX
OffsetY
Zoom
Rotation

Icon GpsTools v2.00 and later

An Icon object is used to draw a developer defined bitmap on a Map. The object can only be created with the Map.NewIcon method. Use the Icon.Position property to position the Icon on the map.

Icons are defined using GpsTools Studio, or by zMapLib or by using icons in the predefined MapLibs that is included in GpsTools SDK 2.20 IconOne.

Remember that you must call Map.Update after you have made updates to objects that are placed on a map or else the updates will not be displayed. For best performance make all updates at once and then call Update.

To remove an object (e.g. Icon) from a map use Map.Delete.

Use Icon.ID to map an Icon on a map to a database record.

Visual Basic sample to use an Icon:
' objPos and Map1 is defined elsewhere
' (see SimpleMap sample in the SDK.)

Dim objIcon As Icon
Set objIcon = Map1.NewIcon("car")
Set objIcon.Position = objPos ' Position

Map1.Update ' Update map view



100% managed code
© 2016 Franson Technology AB, All rights reserved, Contact | | Affiliate | Login