cadetill's blog Copyright © Xavier Martínez (cadetill)

Class TGMMap

Unit

Declaration

type TGMMap = class(TGMCustomMap)

Description

Base class for google.maps.Map class.

Implements IGMExecJS and IGMControlChanges interfaces.

More information at google.maps.Map class

Hierarchy

Overview

Methods

Public constructor Create(AOwner: TComponent); override;
Public destructor Destroy; override;
Protected function GetJsonFromHTMLForms: string; override;
Protected function PropToString: string; override;
Public procedure Assign(Source: TPersistent); override;
Protected procedure SetCenterProperty(LatLng: TGMLatLng); override;
Protected procedure SetEnableTimer(State: Boolean); override;
Protected procedure SetIntervalTimer(Interval: Integer); override;
Protected procedure SetMapTypeIdProperty(MapTypeId: TGMMapTypeId); override;
Protected procedure SetZoomProperty(Zoom: Integer); override;

Properties

Protected property MapOptions: TGMMapOptions read FMapOptions write FMapOptions;

Description

Methods

Public constructor Create(AOwner: TComponent); override;

Class constructor.

Creates a TGMCustomMap object.

Parameters
AOwner
Owner of the object.
Public destructor Destroy; override;

Destructor class.

Protected function GetJsonFromHTMLForms: string; override;

Reads all fields of all HTML forms and returns a Json with their values.

Returns

Json with the info.

Protected function PropToString: string; override;

Converts all class properties values to a string separated by comma used to send values to a JavaScript function.

Returns

string with all properties.

Public procedure Assign(Source: TPersistent); override;

Call Assign to copy the properties or other attributes form an object to another.

The standard form of a call to Assign method is
     Destination.Assign(Source);
which tells the Destination object to copy the contents of the Source object to itself.

Parameters
Source
Object to copy the content.
Protected procedure SetCenterProperty(LatLng: TGMLatLng); override;

Assigns the new map center value readed from HTML map code.

@params LatLng The new TGMLatLng

Protected procedure SetEnableTimer(State: Boolean); override;

Enables or disables the Timer that controls the map events.

For internal use.

Parameters
State
Value to be set to Timer status
Protected procedure SetIntervalTimer(Interval: Integer); override;

Set the interval of Timer that control de map events.

Internal use only.

Parameters
Interval
Interval in miliseconds
Protected procedure SetMapTypeIdProperty(MapTypeId: TGMMapTypeId); override;

Assigns the new MapTypeId value readed from HTML map code.

@params MapTypeId The new TGMMapTypeId

Protected procedure SetZoomProperty(Zoom: Integer); override;

Assigns the new Zoom value readed from HTML map code.

@params Zoom The new zoom

Properties

Protected property MapOptions: TGMMapOptions read FMapOptions write FMapOptions;

Base class for google.maps.MapOptions object from Google Maps API.

This class implements IGMControlChanges interface. More information at google.maps.MapOptions interface


Generated by PasDoc 0.15.0.