myLocationButtonEnabled property

bool myLocationButtonEnabled
final

Enables or disables the my-location button.

The my-location button causes the camera to move such that the user's location is in the center of the map. If the button is enabled, it is only shown when the my-location layer is enabled.

By default, the my-location button is enabled (and hence shown when the my-location layer is enabled).

See also:

Implementation

final bool myLocationButtonEnabled;