Ui Settings
Settings for the map user interface controls and gestures.
Configure which user interactions are enabled on the map.
Properties
Duration after which info windows automatically dismiss. Set to Duration.ZERO to disable auto-dismiss (default). Non-positive values are normalized to Duration.ZERO (disabled).
infoWindowAutoDismiss in milliseconds, e.g. for Java code. 0 disables auto-dismiss.
Whether the compass is shown while the map is turned, i.e. the camera bearing is not 0. It points north, and tapping it turns the map back to north up. Default is true.
Whether the edge effect (visual glow at map boundaries) is enabled. When enabled, a visual EdgeEffect glow appears when:
Whether the indoor level picker is enabled. Indoor mapping is not supported by standard OSM tiles. Always returns false.
Whether the map toolbar is enabled. The map toolbar is not implemented, see OpenMapView.openInExternalApp. Always returns false.
Whether the my-location button is shown while the my-location layer is enabled, see OpenMapView.setMyLocationEnabled. Tapping it moves the camera to the location. Default is true.
Whether rotate gestures are enabled: turning two fingers turns the map, changing the camera bearing. Default is true.
Whether scroll gestures (panning) are enabled. Default is true.
Whether scroll gestures are enabled during rotate or zoom gestures. When true, moving both fingers while pinch-zooming also pans the map; when false, the map only zooms around the fingers. Default is true.
Whether tilt gestures are enabled. Currently not implemented, always returns false.
Whether zoom controls (+/- buttons) are enabled. Default is false to avoid UI clutter.
Whether zoom gestures (pinch-to-zoom) are enabled. Default is true.