Class TMapViewer
Unit
CmpMapViewer
Declaration
type TMapViewer = class()
Description
the visualization componentMethods
Overview
Description
 |
constructor Create(AOwner: TComponent); override; |
creates a MapViewer Object and sets all Fields to an initial value
 |
destructor Destroy; override; |
destroies the object
 |
procedure InitMap; |
show the initial map (needed as first action)
 |
procedure LoadMap(defBitmap: TBitmap); |
loads a bitmap into the map viewer (be carefully: it can show a wrong image or the coordinates are wrong!)
 |
procedure move(direction: Integer); |
move the map in a direction (NORTH
, EAST
, WEST
, SOUTH
)
 |
procedure pan(x0, y0, x1, y1: Integer); |
pan map (x0, y0: target position; x1, y1: start position); x0, y0, x1, y1 in pixel
 |
procedure RefreshMap; |
show the refreshed map
show the map with the settings of TEnvelope
'env'
 |
procedure StartMap; |
executes InitMap
and shows the initial map
 |
procedure ZoomIn(factor: Double); overload; |
zoom with a specified factor (centered)
 |
procedure ZoomIn(posX, posY: Integer); overload; |
zoom at a position: zoom factor is the default (ZOOMINFACTOR
); posX and posY in pixel
 |
procedure ZoomIn; overload; |
zoom (centered): zoom factor is the default (ZOOMINFACTOR
)
 |
procedure ZoomIn(minX, minY, maxX, maxY: Integer); overload; |
zoom (shows a selected part of the map); minX, maxX, minY, maxY as X/Y values
zoom (shows the selection, saved in the TEnvelope
'env')
 |
procedure ZoomOut(factor: Double); overload; |
zoom out with a factor (centered)
 |
procedure ZoomOut; overload; |
zoom out (centered): zoom factor is the default (ZOOMOUTFACTOR
)
 |
procedure ZoomOut(PosX, PosY: Integer); overload; |
zoom out at a specified position: zoom factor is the default (ZOOMOUTFACTOR
); PosX and PosY in pixel
 |
procedure ZoomToFullExtend; |
show the full extended map
Properties
Overview
Description
an event after the procedure GetInfo is executed
an event after the procedure GetMap is executed
an event after the procedure GetOverviewMap is executed
 |
property BackgroundColor: TColor; |
sets the background color of the working panel
an event before the procedure GetInfo is executed
an event before the procedure GetMap is executed
an event before the procedure GetOverviewMap is executed
the TCustomCmpClient
component to communicate with a server
 |
property MinWidthInMapUnit: Double; |
min. width of the visible image, measure in the unit of the map (meter, km, miles, radiant, ...)
 |
property NavigationButtonOn: Boolean; |
activation of the navigation panels (N, E, W, S)
 |
property NavigationImageOn: Boolean; |
activation of the navigation image
sets the navigation mode
Generated by PasDoc 0.8.7 on Mon 08. Dez 2003 10:07:52