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

# Unit GMLib.Events

Description
Uses
Classes, Interfaces, Objects and Records
Functions and Procedures
Types
Constants
Variables

## Description

Events definition for GMLib.

The GMLib.Events unit provides access to all events fired for GMLib components.

## Uses

- GMLib.LatLngBounds
- GMLib.LatLng
- GMLib.Sets

## Overview

### Types

`TGMPropertyChangesEvent = procedure(Owner: TObject; PropName: string) of object;`
`TGMBoundsChangedEvent = procedure(Sender: TObject; NewBounds: TGMLatLngBounds) of object;`
`TGMLatLngEvent = procedure(Sender: TObject; LatLng: TGMLatLng; X, Y: Double) of object;`
`TGMMapTypeIdChangedEvent = procedure(Sender: TObject; NewMapTypeId: TGMMapTypeId) of object;`
`TGMZoomChangedEvent = procedure(Sender: TObject; NewZoom: Integer) of object;`
`TGMAfterPageLoaded = procedure(Sender: TObject; First: Boolean) of object;`

## Description

### Types

`TGMPropertyChangesEvent = procedure(Owner: TObject; PropName: string) of object;`
Event fired when a property from and object changes. ###### Parameters Owner Owner of property. PropName Property name.

`TGMBoundsChangedEvent = procedure(Sender: TObject; NewBounds: TGMLatLngBounds) of object;`
OnBoundsChanged event is fired when the bounds of map changed. ###### Parameters Sender Owner object. NewBounds New map bounds.

`TGMLatLngEvent = procedure(Sender: TObject; LatLng: TGMLatLng; X, Y: Double) of object;`
TGMLatLngEvent is used for events that return a lat/lng formatted in LatLng and a X and Y. ###### Parameters Sender Owner object. LatLng Lat/lng coordinates. X X Coordinate. Y Y Coordinate.

`TGMMapTypeIdChangedEvent = procedure(Sender: TObject; NewMapTypeId: TGMMapTypeId) of object;`
This event is fired when the mapTypeId property changes. ###### Parameters Sender Owner object. NewMapTypeId The new TGMMapTypeId.

`TGMZoomChangedEvent = procedure(Sender: TObject; NewZoom: Integer) of object;`
This event is fired when the map zoom property changes. ###### Parameters Sender Owner object. NewZoom The new zoom.

`TGMAfterPageLoaded = procedure(Sender: TObject; First: Boolean) of object;`
AfterPageLoaded event is fired when the base HTML code es loaded (`First` param is `True`) or map is loaded (`First` param is `False`). ###### Parameters Sender Owner object. First True when HTML code loaded. False when Google Maps map loaded.

## Author

- Xavier Martinez (cadetill) <cadetill@gmail.com>

## Created

August 2, 2022

## Last Modified

August 21, 2022

Generated by PasDoc 0.15.0.