FMX.Maps.TMapLayerOption

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

TMapLayerOption = (PointsOfInterest, Buildings, UserLocation, Traffic);

C++

enum class DECLSPEC_DENUM TMapLayerOption : unsigned char { PointsOfInterest, Buildings, UserLocation, Traffic };

Properties

Type Visibility Source Unit Parent
enum public
FMX.Maps.pas
FMX.Maps.hpp
FMX.Maps FMX.Maps

Description

Extra map layers.

The available values for TMapLayerOption are:

  • PointsOfInterest
  • Buildings
  • UserLocation
  • Traffic

Platform Support and Screenshots

TMapLayerOption Android iOS
Comment Screenshot Comment Screenshot

PointsOfInterest

Not supported.

Shows the points of interest on the map.

Maps iOs POI.jpg

Buildings

Shows the 3D buildings on the map.

Notes:

  • This option only toggles the 3D buildings. The 2D silhouettes of buildings always show.
  • The 3D buildings are only available in some cities. See Google Maps 3D Buildings for a list of the supported cities.
  • Only works if the TMapType is Normal and zoom is 17 or higher.

Maps Android Buildings.png

Shows the 2D silhouettes of buildings on the map.

Notes:

  • This option toggles only the 2D silhouettes of buildings. The 3D buildings are not supported.
  • Only works if the TMapType is Normal and zoom is 18 or higher.
  • No buildings:

Maps iOs NoBuildings.png

  • Buildings:

Maps iOs Buildings.png

UserLocation

Displays the location of the user. The surrounding circle denotes the estimated accuracy of the location. The accuracy depends on your device and the available sensors that are used to determine the location (such as GPS sensor, Wi-Fi network).

Maps Android UserLocation.png

Displays the location of the user. The surrounding circle denotes the estimated accuracy of the location. The accuracy depends on your device and the available sensors that are used to determine the location (such as GPS sensor, Wi-Fi network).

Note: You must explicitly trigger a request for location data on iOS in order to show the system dialog that allows you to grant permission for location data to your application. See Mobile Tutorial: Using Location Sensors (iOS and Android) for an example.

Maps iOS UserLocation.png

Traffic

Displays the traffic information overlay.

Maps Android Traffic.png

Not supported.

See Also