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

Map

Map.

Methods
Properties

Map instance ID, unique within the process.

Getting a camera.

Getting 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.

Get current map styles.

Get current map styles.

The 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.

The 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.

Getting the map data sources.

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

Getting attributes.

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

TODO: style properties for traffic.

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.