// *********************************************************************//
// DispIntf: _DiwMapViewCtrl
// Flags: (4112) Hidden Dispatchable
// GUID: {357CEE48-2FD4-4311-9E92-1050A4429D8C}
// *********************************************************************//
_DiwMapViewCtrl =
dispinterface
['
{357CEE48-2FD4-4311-9E92-1050A4429D8C}']
property MapDescriptionFilename: WideString
dispid 1;
property FullExtent: IiwGeoRect
dispid 2;
property Extent: IiwGeoRect
dispid 3;
property Appearance: Smallint
dispid -520;
property BackColor: OLE_COLOR
dispid 4;
property BorderStyle: Smallint
dispid 5;
property ZoomFactor: Double
dispid 6;
property Scale: Integer
dispid 7;
property MouseMode: Smallint
dispid 8;
property MapLimits: IiwGeoRect
dispid 9;
property MapLimitMode: Smallint
dispid 10;
property IdentifyRadius: Double
dispid 11;
property IdentifyRadiusUnit: Smallint
dispid 12;
property IdentifyLayerNames: WideString
dispid 13;
property IdentifyGetBorderPolygons: Smallint
dispid 14;
property RefreshCount: Integer
dispid 15;
property Enabled: Shortint
dispid -514;
property BorderStyleCE: Smallint
dispid -504;
function ZoomIn: Integer;
dispid 101;
function ZoomOut: Integer;
dispid 102;
function ZoomToPoints(
const geopoints: IiwGeoPoints; xMarginPercent: Integer;
yMarginPercent: Integer; minWidth: Double; minHeight: Double): Integer;
dispid 103;
function ZoomByFactor(factor: Double): Integer;
dispid 104;
function Pan(
const geopoint: IiwGeoPoint): Integer;
dispid 105;
function ToMapPoint(xval: Integer; yval: Integer;
const geopoint: IiwGeoPoint): Integer;
dispid 106;
function FromMapPoint(
const geopoint: IiwGeoPoint;
var xval: Integer;
var yval: Integer): Integer;
dispid 107;
function SetFullExtent: Integer;
dispid 108;
function ActivateDynamicLayer(
const key: WideString;
const keyvalue: WideString): Integer;
dispid 109;
function DeactivateDynamicLayer(
const key: WideString): Integer;
dispid 110;
function PrintMap(hdc: OLE_HANDLE; x: Integer; y: Integer; width: Integer; height: Integer): Integer;
dispid 111;
function RefreshMap: Integer;
dispid 112;
function GetErrorDesc(error: Integer;
var description: WideString): Integer;
dispid 113;
function IdentifyVisibleObjects(identifyX: Smallint; identifyY: Smallint;
radiusInPixel: Integer;
const IdentifyLayerNames: WideString;
getBorderPolygons: Smallint;
var xmlResult: WideString): Integer;
dispid 114;
function IdentifyVisibleObjects1(
const maprect: IiwGeoRect; viewWidth: Smallint;
viewHeight: Smallint; identifyX: Smallint;
identifyY: Smallint; radiusInPixel: Integer;
const IdentifyLayerNames: WideString;
getBorderPolygons: Smallint;
var xmlResult: WideString): Integer;
dispid 115;
function GetDataProjectionName(
var name: WideString): Integer;
dispid 116;
function OutputMap(hdc: OLE_HANDLE; x: Integer; y: Integer; width: Integer; height: Integer): Integer;
dispid 117;
function EventHandled: Integer;
dispid 118;
function GetMapDC(
var hdc: OLE_HANDLE): Integer;
dispid 119;
function ReleaseMapDC(hdc: OLE_HANDLE): Integer;
dispid 120;
function SetNextDrawMode(mode: Integer): Integer;
dispid 121;
function SetSecurityKey(
const filename: WideString;
const key: WideString): Integer;
dispid 10000;
function SetRotationCenterAndAngle(x: Double; y: Double; angle: Double): Integer;
dispid 10100;
function SetLayerVisibility(
const layername: WideString; value: Integer): Integer;
dispid 10300;
function SetWaitCursorMode(value: Integer): Integer;
dispid 10301;
function SetErrorHandlingMode(mode: Integer): Integer;
dispid 10304;
function SetLayerGroupVisibility(
const groupvalue: WideString; value: Integer): Integer;
dispid 10305;
function SetImageQuality(mode: Integer): Integer;
dispid 10306;
function CreateMap(hdc: OLE_HANDLE; dpi: Integer;
const Extent: IiwGeoRect; width: Integer;
height: Integer): Integer;
dispid 10500;
procedure AboutBox;
dispid -552;
end;
//[... Es folgen ein paar Events...]
TiwMapViewCtrl =
class(TOleControl)
private
FOnAfterAllLayerDraw: TiwMapViewCtrlAfterAllLayerDraw;
FOnPopupMenu: TiwMapViewCtrlPopupMenu;
FOnCustomMenuCommand: TiwMapViewCtrlCustomMenuCommand;
FOnMapViewError: TiwMapViewCtrlMapViewError;
FOnFireIdentifyResult: TiwMapViewCtrlFireIdentifyResult;
FOnSetCursor: TNotifyEvent;
FOnMeasureDistance: TiwMapViewCtrlMeasureDistance;
FOnAfterUserDraw: TiwMapViewCtrlAfterUserDraw;
FOnProgress: TiwMapViewCtrlProgress;
FIntf: _DiwMapViewCtrl;
function GetControlInterface: _DiwMapViewCtrl;
protected
procedure CreateControl;
procedure InitControlData;
override;
function Get_FullExtent: IiwGeoRect;
procedure Set_FullExtent(
const Value: IiwGeoRect);
function Get_Extent: IiwGeoRect;
procedure Set_Extent(
const Value: IiwGeoRect);
function Get_MapLimits: IiwGeoRect;
procedure Set_MapLimits(
const Value: IiwGeoRect);
public
function ZoomIn: Integer;
function ZoomOut: Integer;
function ZoomToPoints(
const geopoints: IiwGeoPoints; xMarginPercent: Integer;
yMarginPercent: Integer; minWidth: Double; minHeight: Double): Integer;
function ZoomByFactor(factor: Double): Integer;
function Pan(
const geopoint: IiwGeoPoint): Integer;
function ToMapPoint(xval: Integer; yval: Integer;
const geopoint: IiwGeoPoint): Integer;
function FromMapPoint(
const geopoint: IiwGeoPoint;
var xval: Integer;
var yval: Integer): Integer;
function SetFullExtent: Integer;
function ActivateDynamicLayer(
const key: WideString;
const keyvalue: WideString): Integer;
function DeactivateDynamicLayer(
const key: WideString): Integer;
function PrintMap(hdc: OLE_HANDLE; x: Integer; y: Integer; width: Integer; height: Integer): Integer;
function RefreshMap: Integer;
function GetErrorDesc(error: Integer;
var description: WideString): Integer;
function IdentifyVisibleObjects(identifyX: Smallint; identifyY: Smallint;
radiusInPixel: Integer;
const IdentifyLayerNames: WideString;
getBorderPolygons: Smallint;
var xmlResult: WideString): Integer;
function IdentifyVisibleObjects1(
const maprect: IiwGeoRect; viewWidth: Smallint;
viewHeight: Smallint; identifyX: Smallint;
identifyY: Smallint; radiusInPixel: Integer;
const IdentifyLayerNames: WideString;
getBorderPolygons: Smallint;
var xmlResult: WideString): Integer;
function GetDataProjectionName(
var name: WideString): Integer;
function OutputMap(hdc: OLE_HANDLE; x: Integer; y: Integer; width: Integer; height: Integer): Integer;
function EventHandled: Integer;
function GetMapDC(
var hdc: OLE_HANDLE): Integer;
function ReleaseMapDC(hdc: OLE_HANDLE): Integer;
function SetNextDrawMode(mode: Integer): Integer;
function SetSecurityKey(
const filename: WideString;
const key: WideString): Integer;
function SetRotationCenterAndAngle(x: Double; y: Double; angle: Double): Integer;
function SetLayerVisibility(
const layername: WideString; value: Integer): Integer;
function SetWaitCursorMode(value: Integer): Integer;
function SetErrorHandlingMode(mode: Integer): Integer;
function SetLayerGroupVisibility(
const groupvalue: WideString; value: Integer): Integer;
function SetImageQuality(mode: Integer): Integer;
function CreateMap(hdc: OLE_HANDLE; dpi: Integer;
const Extent: IiwGeoRect; width: Integer;
height: Integer): Integer;
procedure AboutBox;
property ControlInterface: _DiwMapViewCtrl
read GetControlInterface;
property DefaultInterface: _DiwMapViewCtrl
read GetControlInterface;
published
property Anchors;
property TabStop;
property Align;
property DragCursor;
property DragMode;
property ParentShowHint;
property PopupMenu;
property ShowHint;
property TabOrder;
property Visible;
property OnDragDrop;
property OnDragOver;
property OnEndDrag;
property OnEnter;
property OnExit;
property OnStartDrag;
property OnMouseUp;
property OnMouseMove;
property OnMouseDown;
property MapDescriptionFilename: WideString
index 1
read GetWideStringProp
write SetWideStringProp
stored False;
public
property FullExtent: IiwGeoRect
read Get_FullExtent
write Set_FullExtent
stored False;
published
public
property Extent: IiwGeoRect
read Get_Extent
write Set_Extent
stored False;
published
property Appearance: Smallint
index -520
read GetSmallintProp
write SetSmallintProp
stored False;
property BackColor: TColor
index 4
read GetTColorProp
write SetTColorProp
stored False;
property BorderStyle: Smallint
index 5
read GetSmallintProp
write SetSmallintProp
stored False;
property ZoomFactor: Double
index 6
read GetDoubleProp
write SetDoubleProp
stored False;
property Scale: Integer
index 7
read GetIntegerProp
write SetIntegerProp
stored False;
property MouseMode: Smallint
index 8
read GetSmallintProp
write SetSmallintProp
stored False;
public
property MapLimits: IiwGeoRect
read Get_MapLimits
write Set_MapLimits
stored False;
published
property MapLimitMode: Smallint
index 10
read GetSmallintProp
write SetSmallintProp
stored False;
property IdentifyRadius: Double
index 11
read GetDoubleProp
write SetDoubleProp
stored False;
property IdentifyRadiusUnit: Smallint
index 12
read GetSmallintProp
write SetSmallintProp
stored False;
property IdentifyLayerNames: WideString
index 13
read GetWideStringProp
write SetWideStringProp
stored False;
property IdentifyGetBorderPolygons: Smallint
index 14
read GetSmallintProp
write SetSmallintProp
stored False;
property RefreshCount: Integer
index 15
read GetIntegerProp
write SetIntegerProp
stored False;
property Enabled: Shortint
index -514
read GetShortintProp
write SetShortintProp
stored False;
property BorderStyleCE: Smallint
index -504
read GetSmallintProp
write SetSmallintProp
stored False;
property OnAfterAllLayerDraw: TiwMapViewCtrlAfterAllLayerDraw
read FOnAfterAllLayerDraw
write FOnAfterAllLayerDraw;
property OnPopupMenu: TiwMapViewCtrlPopupMenu
read FOnPopupMenu
write FOnPopupMenu;
property OnCustomMenuCommand: TiwMapViewCtrlCustomMenuCommand
read FOnCustomMenuCommand
write FOnCustomMenuCommand;
property OnMapViewError: TiwMapViewCtrlMapViewError
read FOnMapViewError
write FOnMapViewError;
property OnFireIdentifyResult: TiwMapViewCtrlFireIdentifyResult
read FOnFireIdentifyResult
write FOnFireIdentifyResult;
property OnSetCursor: TNotifyEvent
read FOnSetCursor
write FOnSetCursor;
property OnMeasureDistance: TiwMapViewCtrlMeasureDistance
read FOnMeasureDistance
write FOnMeasureDistance;
property OnAfterUserDraw: TiwMapViewCtrlAfterUserDraw
read FOnAfterUserDraw
write FOnAfterUserDraw;
property OnProgress: TiwMapViewCtrlProgress
read FOnProgress
write FOnProgress;
end;