Printable versions
This Page
All Pages
PDF (2.0MB)

Index

Component
GpsViewXP

Class
MapData

Methods
SetScale
SetScalePolar

Properties
Name
Size

MapData.SetScale GpsTools v2.10 and later

Sets the scale for a MapData object. That is how many meters/feet/degrees a pixels represents in the real world.

Sample in VB:

Dim position1 As New GpsToolsXP.Position
Dim position2 As New GpsToolsXP.Position
Dim point1 As New GpsViewXPCtl.Point
Dim point2 As New GpsViewXPCtl.Point
    
position1.Longitude = 180
position1.Latitude = -90
    
point1.X = 1000
point1.Y = 500
    
position2.Longitude = -180
position2.Latitude = 90
    
point2.X = -1000
point2.Y = -500
    
Dim objMapData As MapData
   
' Creates and activates map, MapLib.NewMapData can also be used
Set objMapData = Map1.ActiveMapData("blank")
' Scales blank Map
objMapData.SetScale position1, point1, position2, point2, Nothing, Nothing

Syntax
objMapData.SetScale(objPos1, objPoint1, objPos2, objPoint2, objPos3, objPoint3)

Part Type Description
objMapData GpsViewXPCtl.MapData An object that evaluates to an GpsViewXPCtl.MapData object.
objPos1 GpsToolsXP.Position (Variant)
Position1.
objPoint1 GpsViewXPCtl.Point (Variant)
Point1.
objPos2 GpsToolsXP.Position (Variant)
Position2.
objPoint2 GpsViewXPCtl.Point (Variant)
Point2.
objPos3 GpsToolsXP.Position (Variant)
Position3.
objPoint3 GpsViewXPCtl.Point (Variant)
Point3.



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