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

Class TGMCustomMapOptions

Unit

Declaration

type TGMCustomMapOptions = class(TGMPersistentStr, IGMControlChanges)

Description

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

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

Hierarchy

Overview

Methods

Public constructor Create(AOwner: TPersistent); override;
Public destructor Destroy; override;
Protected function PropToString: string; override;
Public procedure Assign(Source: TPersistent); override;
Protected procedure PropertyChanged(Prop: TPersistent; PropName: string);

Properties

Public property APIUrl;
Protected property Center: TGMLatLng read FCenter write FCenter;
Protected property ClickableIcons: Boolean read FClickableIcons write SetClickableIcons;
Protected property DisableDoubleClickZoom: Boolean read FDisableDoubleClickZoom write SetDisableDoubleClickZoom default True;
Protected property DraggableCursor: string read FDraggableCursor write SetDraggableCursor;
Protected property DraggingCursor: string read FDraggingCursor write SetDraggingCursor;
Protected property FullScreenControl: Boolean read FFullScreenControl write SetFullScreenControl default True;
Protected property FullScreenControlOptions: TGMFullScreenControlOptions read FFullScreenControlOptions write FFullScreenControlOptions;
Protected property GestureHandling: TGMGestureHandling read FGestureHandling write SetGestureHandling;
Protected property Heading: Integer read FHeading write SetHeading default 0;
Protected property IsFractionalZoomEnabled: Boolean read FIsFractionalZoomEnabled write SetIsFractionalZoomEnabled;
Protected property KeyboardShortcuts: Boolean read FKeyboardShortcuts write SetKeyboardShortcuts default True;
Protected property MapTypeControl: Boolean read FMapTypeControl write SetMapTypeControl default True;
Protected property MapTypeControlOptions: TGMMapTypeControlOptions read FMapTypeControlOptions write FMapTypeControlOptions;
Protected property MapTypeId: TGMMapTypeId read FMapTypeId write SetMapTypeId default mtROADMAP;
Protected property MaxZoom: Integer read FMaxZoom write SetMaxZoom default 0;
Protected property MinZoom: Integer read FMinZoom write SetMinZoom default 0;
Protected property NoClear: Boolean read FNoClear write SetNoClear default False;
Protected property Restriction: TGMRestriction read FRestriction write FRestriction;
Protected property RotateControl: Boolean read FRotateControl write SetRotateControl default True;
Protected property RotateControlOptions: TGMRotateControlOptions read FRotateControlOptions write FRotateControlOptions;
Protected property ScaleControl: Boolean read FScaleControl write SetScaleControl default True;
Protected property ScaleControlOptions: TGMScaleControlOptions read FScaleControlOptions write FScaleControlOptions;
Protected property StreetViewControl: Boolean read FStreetViewControl write SetStreetViewControl default True;
Protected property StreetViewControlOptions: TGMStreetViewControlOptions read FStreetViewControlOptions write FStreetViewControlOptions;
Protected property Tilt: Integer read FTilt write SetTilt default 0;
Protected property Zoom: Integer read FZoom write SetZoom default 8;
Protected property ZoomControl: Boolean read FZoomControl write SetZoomControl default True;
Protected property ZoomControlOptions: TGMZoomControlOptions read FZoomControlOptions write FZoomControlOptions;

Description

Methods

Public constructor Create(AOwner: TPersistent); override;

Class constructor.

Creates a TGMCustomMapOptions object.

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

Destructor class.

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 PropertyChanged(Prop: TPersistent; PropName: string);

Method to call into the owner object when changes a property into the current object.

Parameters
Prop
Object property that has changed.
PropName
Name of the property that has changed.

Properties

Public property APIUrl;

URL to Google Maps API page.

Protected property Center: TGMLatLng read FCenter write FCenter;

Contains the lat/lng coordinates with the center of the map.

Protected property ClickableIcons: Boolean read FClickableIcons write SetClickableIcons;

When false, map icons are not clickable.

A map icon represents a point of interest, also known as a POI. By default map icons are clickable.

Protected property DisableDoubleClickZoom: Boolean read FDisableDoubleClickZoom write SetDisableDoubleClickZoom default True;

Enables/disables zoom and center on double click.

In order to take effect the change of this property, you must to restart the map.

Protected property DraggableCursor: string read FDraggableCursor write SetDraggableCursor;

The name or url of the cursor to display when mousing over a draggable map.

This property uses the css cursor attribute to change the icon. As with the css property, you must specify at least one fallback cursor that is not a URL. For example: draggableCursor: 'url(http://www.example.com/icon.png), auto;'.

In order to take effect the change of this property, you must to restart the map.

Protected property DraggingCursor: string read FDraggingCursor write SetDraggingCursor;

The name or url of the cursor to display when the map is being dragged.

This property uses the css cursor attribute to change the icon. As with the css property, you must specify at least one fallback cursor that is not a URL. For example: draggingCursor: 'url(http://www.example.com/icon.png), auto;'.

In order to take effect the change of this property, you must to restart the map.

Protected property FullScreenControl: Boolean read FFullScreenControl write SetFullScreenControl default True;

The enabled/disabled state of the Fullscreen control.

In order to take effect the change of this property, you must to restart the map.

Protected property FullScreenControlOptions: TGMFullScreenControlOptions read FFullScreenControlOptions write FFullScreenControlOptions;

The display options for the Fullscreen control.

More info at FullscreenControlOptions interface

Protected property GestureHandling: TGMGestureHandling read FGestureHandling write SetGestureHandling;

This setting controls how the API handles gestures on the map.

Allowed values: "cooperative": Scroll events and one-finger touch gestures scroll the page, and do not zoom or pan the map. Two-finger touch gestures pan and zoom the map. Scroll events with a ctrl key or key pressed zoom the map. In this mode the map cooperates with the page. "greedy": All touch gestures and scroll events pan or zoom the map. "none": The map cannot be panned or zoomed by user gestures. "auto": (default) Gesture handling is either cooperative or greedy, depending on whether the page is scrollable or in an iframe.

Protected property Heading: Integer read FHeading write SetHeading default 0;

The heading for aerial imagery in degrees measured clockwise from cardinal direction North.

Headings are snapped to the nearest available angle for which imagery is available.

In order to take effect the change of this property, you must to restart the map.

Protected property IsFractionalZoomEnabled: Boolean read FIsFractionalZoomEnabled write SetIsFractionalZoomEnabled;

Default: true for vector maps and false for raster maps.

Protected property KeyboardShortcuts: Boolean read FKeyboardShortcuts write SetKeyboardShortcuts default True;

If false, prevents the map from being controlled by the keyboard.

In order to take effect the change of this property, you must to restart the map.

Protected property MapTypeControl: Boolean read FMapTypeControl write SetMapTypeControl default True;

The initial enabled/disabled state of the Map type control.

In order to take effect the change of this property, you must to restart the map.

Protected property MapTypeControlOptions: TGMMapTypeControlOptions read FMapTypeControlOptions write FMapTypeControlOptions;

The initial display options for the Map type control.

In order to take effect the change of this property, you must to restart the map.

More info at MapTypeControlOptions interface

Protected property MapTypeId: TGMMapTypeId read FMapTypeId write SetMapTypeId default mtROADMAP;

The initial Map mapTypeId.

Protected property MaxZoom: Integer read FMaxZoom write SetMaxZoom default 0;

The maximum zoom level which will be displayed on the map.

Protected property MinZoom: Integer read FMinZoom write SetMinZoom default 0;

The minimum zoom level which will be displayed on the map.

Protected property NoClear: Boolean read FNoClear write SetNoClear default False;

If true, do not clear the contents of the Map div.

Protected property Restriction: TGMRestriction read FRestriction write FRestriction;

Defines a boundary that restricts the area of the map accessible to users.

When set, a user can only pan and zoom while the camera view stays inside the limits of the boundary.

Protected property RotateControl: Boolean read FRotateControl write SetRotateControl default True;

The enabled/disabled state of the Rotate control.

Protected property RotateControlOptions: TGMRotateControlOptions read FRotateControlOptions write FRotateControlOptions;

The display options for the Rotate control.

More info at RotateControlOptions interface

Protected property ScaleControl: Boolean read FScaleControl write SetScaleControl default True;

The initial enabled/disabled state of the Scale control.

Protected property ScaleControlOptions: TGMScaleControlOptions read FScaleControlOptions write FScaleControlOptions;

The initial display options for the Scale control.

More info at ScaleControlOptions interface

Protected property StreetViewControl: Boolean read FStreetViewControl write SetStreetViewControl default True;

The initial enabled/disabled state of the Street View Pegman control.

This control is part of the default UI, and should be set to false when displaying a map type on which the Street View road overlay should not appear (e.g. a non-Earth map type).

Protected property StreetViewControlOptions: TGMStreetViewControlOptions read FStreetViewControlOptions write FStreetViewControlOptions;

The initial display options for the Street View Pegman control.

More info at StreetViewControlOptions interface

Protected property Tilt: Integer read FTilt write SetTilt default 0;

Controls the automatic switching behavior for the angle of incidence of the map.

The only allowed values are 0 and 45. The value 0 causes the map to always use a 0° overhead view regardless of the zoom level and viewport. The value 45 causes the tilt angle to automatically switch to 45 whenever 45° imagery is available for the current zoom level and viewport, and switch back to 0 whenever 45° imagery is not available (this is the default behavior). 45° imagery is only available for SATELLITE and HYBRID map types, within some locations, and at some zoom levels. Note: getTilt returns the current tilt angle, not the value specified by this option. Because getTilt and this option refer to different things, do not bind() the tilt property; doing so may yield unpredictable effects.

Protected property Zoom: Integer read FZoom write SetZoom default 8;

The enabled/disabled state of the Zoom control.

Protected property ZoomControl: Boolean read FZoomControl write SetZoomControl default True;

The initial Map zoom level.

Protected property ZoomControlOptions: TGMZoomControlOptions read FZoomControlOptions write FZoomControlOptions;

The display options for the Zoom control.

More info at ZoomControlOptions interface


Generated by PasDoc 0.15.0.