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

# Class TGMMap

Description
Hierarchy
Fields
Methods
Properties

## Unit

GMLib.Map.Vcl

## 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

- TObject
- TPersistent
- TComponent
- TGMComponent
- TGMCustomMap
- TGMMap

## Overview

### Methods

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

### Properties

| `property MapOptions: TGMMapOptions read FMapOptions write FMapOptions;`

## Description

### Methods

| `constructor Create(AOwner: TComponent); override;`
Class constructor. Creates a TGMCustomMap object. ###### Parameters AOwner Owner of the object.

| `destructor Destroy; override;`
Destructor class.

| `function GetJsonFromHTMLForms: string; override;`
Reads all fields of all HTML forms and returns a Json with their values. ###### Returns Json with the info.

| `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.

| `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.

| `procedure SetCenterProperty(LatLng: TGMLatLng); override;`
Assigns the new map center value readed from HTML map code. @params LatLng The new TGMLatLng

| `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

| `procedure SetIntervalTimer(Interval: Integer); override;`
Set the interval of Timer that control de map events. Internal use only. ###### Parameters Interval Interval in miliseconds

| `procedure SetMapTypeIdProperty(MapTypeId: TGMMapTypeId); override;`
Assigns the new MapTypeId value readed from HTML map code. @params MapTypeId The new TGMMapTypeId

| `procedure SetZoomProperty(Zoom: Integer); override;`
Assigns the new Zoom value readed from HTML map code. @params Zoom The new zoom

### Properties

| `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.