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

# Class TGMKmlLayerOptions

Description
Hierarchy
Fields
Methods
Properties

## Unit

GMLib.Layers

## Declaration

`type TGMKmlLayerOptions = class(TGMPersistentStr)`

## Description

Class for `google.maps.KmlLayerOptions` object from Google Maps API.

This class is used to define the properties that can be set on a KmlLayer.

More information at google.maps.KmlLayerOptions interface

## Hierarchy

- TObject
- TPersistent
- TInterfacedPersistent
- TGMInterfacedOwnedPersistent
- TGMPersistent
- TGMPersistentStr
- TGMKmlLayerOptions

## Overview

### Methods

| `constructor Create(AOwner: TPersistent); override;`
| `function PropToString: string; override;`
| `procedure Assign(Source: TPersistent); override;`

### Properties

| `property APIUrl;`
| `property Clickable: Boolean read FClickable write SetClickable default True;`
| `property PreserveViewport: Boolean read FPreserveViewport write SetPreserveViewport default False;`
| `property ScreenOverlays: Boolean read FScreenOverlays write SetScreenOverlays default True;`
| `property SuppressInfoWindows: Boolean read FSuppressInfoWindows write SetSuppressInfoWindows default False;`
| `property Url: string read FUrl write SetUrl;`

## Description

### Methods

| `constructor Create(AOwner: TPersistent); override;`
Class constructor. ###### Parameters AOwner Owner of the object.

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

### Properties

| `property APIUrl;`
URL to Google Maps API page.

| `property Clickable: Boolean read FClickable write SetClickable default True;`
If `True`, the layer receives mouse events. Default `True`.

| `property PreserveViewport: Boolean read FPreserveViewport write SetPreserveViewport default False;`
If this option is set to code(True) or if the map's center and zoom were never set, the input map is centered and zoomed to the bounding box of the contents of the layer. Default `False`.

| `property ScreenOverlays: Boolean read FScreenOverlays write SetScreenOverlays default True;`
Whether to render the screen overlays. Default `True`.

| `property SuppressInfoWindows: Boolean read FSuppressInfoWindows write SetSuppressInfoWindows default False;`
Suppress the rendering of info windows when layer features are clicked. Default `False`.

| `property Url: string read FUrl write SetUrl;`
The URL of the KML document to display.

Generated by PasDoc 0.15.0.