ru.dgis.sdk.map.Map | Android SDK | 2GIS Documentation
Android SDK

Map

Map.

Methods
Properties

Map instance ID, unique within the process.

Gets a camera.

Gets a floor plan manager.

Notification about the state of data loading to the map.

When tracking the camera position, the map state is always MapDataLoadingState::Loading.

Notification about the state of data loading to the map.

When tracking the camera position, the map state is always MapDataLoadingState::Loading.

Gets current map styles.

Gets current map styles.

Icon and font size multiplier received from the application.

The size of icons and fonts is specified in logical pixels (see LogicalPixel) and multiplied by the font and icon size multiplier.

Icon and font size multiplier received from the application.

The size of icons and fonts is specified in logical pixels (see LogicalPixel) and multiplied by the font and icon size multiplier.

Gets map data sources.

Occurs asynchronously. The method can be called from any thread, it is thread safe.

Gets attributes.

The following properties must be specified: "theme"="day|night" "navigatorOn"="true|false"

Map interactivity. Interactivity means that the user has the ability to interact with the map. If interactivity is disabled, the map stops responding to input events obtained from the user. Controls for working with the map (zooming in and moving to the current position) also stop working. It remains possible to work with the map via set_position/move. Unfinished gestures are reset upon transition to the non-interactive state. By default, the map is interactive (interactive == true).

The function can be called from any thread.

Map interactivity. Interactivity means that the user has the ability to interact with the map. If interactivity is disabled, the map stops responding to input events obtained from the user. Controls for working with the map (zooming in and moving to the current position) also stop working. It remains possible to work with the map via set_position/move. Unfinished gestures are reset upon transition to the non-interactive state. By default, the map is interactive (interactive == true).

The function can be called from any thread.

Gets the recommended graphic mode for the given device.

Gets the recommended graphic mode for the given device.

Gets the graphic mode. In case of null, the recommended mode is used. If the recommended mode cannot be defined, the Normal one is used.

Gets the graphic mode. In case of null, the recommended mode is used. If the recommended mode cannot be defined, the Normal one is used.