FMX.Maps.TMapControlOptions

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

TMapControlOptions = set of TMapControlOption;

C++

typedef System::Set<TMapControlOption, _DELPHI_SET_ENUMERATOR(TMapControlOption::Zoom), _DELPHI_SET_ENUMERATOR(TMapControlOption::MyLocation)> TMapControlOptions;

Properties

Type Visibility Source Unit Parent
set
typedef
public
FMX.Maps.pas
FMX.Maps.hpp
FMX.Maps FMX.Maps

Description

A set of TMapControlOption.

Platform Support and Screenshots

TMapControlOption Android iOS Notes
Toggle Default Screenshot Toggle Default Screenshot

Zoom

YesC++11Feature.png
YesC++11Feature.png

Maps Android Zoom.png

Not supported

Compass

YesC++11Feature.png
YesC++11Feature.png

Maps Android Compass.png

Always shows

Maps iOS Compass.jpg

The compass icon automatically hides while the map view is in its default position (rotation and tilt are 0).

If you click the compass icon:

  • Android: The tilt and the rotation of the map view reset to default position.
  • iOS: The rotation of the map view resets to default position.

MyLocation

YesC++11Feature.png
YesC++11Feature.png

Maps Android MyLocation.png

Not supported

To show this overlay, you need to enable the TMapLayerOption.UserLocation layer.

When Android is the active target platform, the TMapLayerOption.UserLocation layer is actually enabled only if the user has granted the location permission (either ACCESS_COARSE_LOCATION or ACCESS_FINE_LOCATION). Go to Android Permission Model for support on how to request the location permission at runtime.

See Also