Units
Class Hierarchy
Classes, Interfaces and Objects
Types
Variables
Constants
Functions and Procedures
Identifiers

Class TMapViewer

Unit

CmpMapViewer

Declaration

type TMapViewer = class()

Description

the visualization component

Methods

Overview

Public constructor Create(AOwner: TComponent); override;
Public destructor Destroy; override;
Public procedure InitMap;
Public procedure LoadMap(defBitmap: TBitmap);
Public procedure move(direction: Integer);
Public procedure pan(x0, y0, x1, y1: Integer);
Public procedure RefreshMap;
Public procedure Requestmap(env: TEnvelope);
Public procedure StartMap;
Public procedure ZoomIn(factor: Double); overload;
Public procedure ZoomIn(posX, posY: Integer); overload;
Public procedure ZoomIn; overload;
Public procedure ZoomIn(minX, minY, maxX, maxY: Integer); overload;
Public procedure ZoomIn(env: TEnvelope); overload;
Public procedure ZoomOut(factor: Double); overload;
Public procedure ZoomOut; overload;
Public procedure ZoomOut(PosX, PosY: Integer); overload;
Public procedure ZoomToFullExtend;

Description

Public constructor Create(AOwner: TComponent); override;

creates a MapViewer Object and sets all Fields to an initial value

Public destructor Destroy; override;

destroies the object

Public procedure InitMap;

show the initial map (needed as first action)

Public procedure LoadMap(defBitmap: TBitmap);

loads a bitmap into the map viewer (be carefully: it can show a wrong image or the coordinates are wrong!)

Public procedure move(direction: Integer);

move the map in a direction (NORTH, EAST, WEST, SOUTH)

Public procedure pan(x0, y0, x1, y1: Integer);

pan map (x0, y0: target position; x1, y1: start position); x0, y0, x1, y1 in pixel

Public procedure RefreshMap;

show the refreshed map

Public procedure Requestmap(env: TEnvelope);

show the map with the settings of TEnvelope 'env'

Public procedure StartMap;

executes InitMap and shows the initial map

Public procedure ZoomIn(factor: Double); overload;

zoom with a specified factor (centered)

Public procedure ZoomIn(posX, posY: Integer); overload;

zoom at a position: zoom factor is the default (ZOOMINFACTOR); posX and posY in pixel

Public procedure ZoomIn; overload;

zoom (centered): zoom factor is the default (ZOOMINFACTOR)

Public procedure ZoomIn(minX, minY, maxX, maxY: Integer); overload;

zoom (shows a selected part of the map); minX, maxX, minY, maxY as X/Y values

Public procedure ZoomIn(env: TEnvelope); overload;

zoom (shows the selection, saved in the TEnvelope 'env')

Public procedure ZoomOut(factor: Double); overload;

zoom out with a factor (centered)

Public procedure ZoomOut; overload;

zoom out (centered): zoom factor is the default (ZOOMOUTFACTOR)

Public procedure ZoomOut(PosX, PosY: Integer); overload;

zoom out at a specified position: zoom factor is the default (ZOOMOUTFACTOR); PosX and PosY in pixel

Public procedure ZoomToFullExtend;

show the full extended map

Properties

Overview

Published property AfterGetInfo: TAfterGetInfo;
Published property AfterGetMap: TAfterGetMap;
Published property AfterGetOverviewMap: TAfterGetOverviewMap;
Published property BackgroundColor: TColor;
Published property BeforeGetInfo: TBeforeGetInfo;
Published property BeforeGetMap: TBeforeGetMap;
Published property BeforeGetOverviewMap: TBeforeGetOverviewMap;
Published property MAPClient: TCustomCmpClient;
Published property MinWidthInMapUnit: Double;
Published property NavigationButtonOn: Boolean;
Published property NavigationImageOn: Boolean;
Published property NavigationMode: TNavMode;

Description

Published property AfterGetInfo: TAfterGetInfo;

an event after the procedure GetInfo is executed

Published property AfterGetMap: TAfterGetMap;

an event after the procedure GetMap is executed

Published property AfterGetOverviewMap: TAfterGetOverviewMap;

an event after the procedure GetOverviewMap is executed

Published property BackgroundColor: TColor;

sets the background color of the working panel

Published property BeforeGetInfo: TBeforeGetInfo;

an event before the procedure GetInfo is executed

Published property BeforeGetMap: TBeforeGetMap;

an event before the procedure GetMap is executed

Published property BeforeGetOverviewMap: TBeforeGetOverviewMap;

an event before the procedure GetOverviewMap is executed

Published property MAPClient: TCustomCmpClient;

the TCustomCmpClient component to communicate with a server

Published property MinWidthInMapUnit: Double;

min. width of the visible image, measure in the unit of the map (meter, km, miles, radiant, ...)

Published property NavigationButtonOn: Boolean;

activation of the navigation panels (N, E, W, S)

Published property NavigationImageOn: Boolean;

activation of the navigation image

Published property NavigationMode: TNavMode;

sets the navigation mode


Generated by PasDoc 0.8.7 on Mon 08. Dez 2003 10:07:52