MapView

open class MapView : NativeMethodsReceiver

A class used by an application to display a map.

Types

Link copied to clipboard
annotation class CountrySignage
Link copied to clipboard
interface DataReadyListener : NativeMethodsReceiver.NativeListener
Link copied to clipboard
annotation class DataState
Link copied to clipboard
interface GeoCoordinateToScreenPointCallback
Link copied to clipboard
enum InjectSkinResult
Link copied to clipboard
interface InjectSkinResultListener
Link copied to clipboard
abstract class MapDataModel
Link copied to clipboard
annotation class MapLayerCategory
Link copied to clipboard
interface OnInitListener : NativeMethodsReceiver.NativeListener
Link copied to clipboard
annotation class SpeedUnits
Link copied to clipboard
open class State : Parcelable
Link copied to clipboard
annotation class WarningsType

Functions

Link copied to clipboard
open fun addClusterLayer(cluster: ClusterLayer): Boolean
Add cluster of markers to map.
Link copied to clipboard
open fun addDataReadyListener(listener: MapView.DataReadyListener)
open fun addDataReadyListener(listener: MapView.DataReadyListener, @Nullable executor: Executor)
Link copied to clipboard
open fun addEglCallback(@NonNull callback: GlSurfaceListener.EglCallback)
Adds callback for underlying OpenGL calls of swap buffers.
Link copied to clipboard
open fun addMapGestureListener(listener: MapGesturesDetector.MapGestureListener)
Adds the map gesture listener.
Link copied to clipboard
open fun addValidityListener(listener: MapValidityListener)
Link copied to clipboard
open fun calculateFromMapRectangle(    @NonNull mapRectangle: MapRectangle,     @NonNull mapCenter: MapCenter,     @FloatRange(from = "-180.0", to = 180.0) rotation: Float,     tilt: Float,     @FloatRange(from = 0.0, to = Float.MAX_VALUE) maxZoomLevel: Float): CameraState.PositionOrientation
Calculates CameraState.
open fun calculateFromMapRectangle(    @NonNull mapRectangle: MapRectangle,     @NonNull mapCenter: MapCenter,     @FloatRange(from = "-180.0", to = 180.0) rotation: Float,     tilt: Float,     @FloatRange(from = 0.0, to = Float.MAX_VALUE) maxZoomLevel: Float,     @Nullable sourceState: CameraState): CameraState
Calculates CameraState to animate Camera with, given mapRectangle and camera states
Link copied to clipboard
open fun enableRendering(enable: Boolean)
Link copied to clipboard
open fun geoCoordinatesFromPoint(x: Int, y: Int): GeoCoordinates
Returns geo coordinates of the point on the map regarding of screen coordinates.
Link copied to clipboard
open fun geoCoordinatesFromPoints(@NonNull points: List<Point>): List<GeoCoordinates>
Returns geo coordinates of the points on the map regarding of screen coordinates.
Link copied to clipboard
open fun getActiveSkins(): List<String>
Returns list of names of skins which are set for current map.
Link copied to clipboard
open fun getAvailableSkins(): List<String>
Returns list of names of available skins.
Link copied to clipboard
open fun getBreadCrumbs(): BreadCrumbs
Returns the BreadCrumbs
Link copied to clipboard
open fun getCameraModel(): Camera.CameraModel
Link copied to clipboard
open fun getFpsLimit(): FpsConfig
Get current FPS limit
Link copied to clipboard
open fun getHeight(): Int
Link copied to clipboard
open fun getMapDataModel(): MapView.MapDataModel
Returns MapDataModel backing up the MapView
Link copied to clipboard
open fun getMinMaxZoomLevel(): Pair<Float, Float>
Link copied to clipboard
open fun getPositionIndicator(): PositionIndicator
Returns the PositionIndicator.
Link copied to clipboard
fun getScaling(): LowGL.ViewScaling
Link copied to clipboard
open fun getView(): View
Returns object represents display surface for OpenGL rendering It may be android.view.SurfaceView or android.view.TextureView, depends on surface type while creating fragment
Link copied to clipboard
open fun getWarningsTypeVisibilityInternal(type: Int): Boolean
Link copied to clipboard
open fun getWidth(): Int
Link copied to clipboard
open fun injectSkinDefinition(@NonNull definition: String, @NonNull listener: MapView.InjectSkinResultListener)
open fun injectSkinDefinition(    @NonNull definition: String,     @NonNull listener: MapView.InjectSkinResultListener,     @Nullable executor: Executor)
Link copied to clipboard
open fun isValid(): Boolean
Checks if Mapview is valid.
Link copied to clipboard
open fun removeClusterLayer(cluster: ClusterLayer): Boolean
Remove cluster of markers from map
Link copied to clipboard
open fun removeDataReadyListener(listener: MapView.DataReadyListener)
Link copied to clipboard
open fun removeEglCallback(@NonNull callback: GlSurfaceListener.EglCallback)
Removes callback for underlying OpenGL calls of swap buffers.
Link copied to clipboard
open fun removeMapGestureListener(listener: MapGesturesDetector.MapGestureListener): Boolean
Removes the map gesture listener.
Link copied to clipboard
open fun removeValidityListener(listener: MapValidityListener)
Link copied to clipboard
open fun requestObjectsAtPoint(    x: Float,     y: Float,     callback: RequestObjectCallback): Int
Requests the information about point on map
Link copied to clipboard
open fun scaleScreenToView(value: Float): Float
open fun scaleScreenToView(value: Int): Int
Link copied to clipboard
open fun screenPointsFromGeoCoordinates(@NonNull geoCoordinates: List<GeoCoordinates>): List<Point>
Returns geo coordinates of the point on the map regarding of screen coordinates.
Link copied to clipboard
open fun setFpsLimit(fpsConfig: FpsConfig)
Set custom FPS limit for rendering
Link copied to clipboard
open fun setIncidentWarningSettings(@NonNull settings: IncidentWarningSettings)
Link copied to clipboard
open fun setIncidentWarningSettingsInternal(@Nullable settings: IncidentWarningSettings)
Link copied to clipboard
open fun setLogisticInfoSettings(@NonNull settings: LogisticInfoSettings)
Link copied to clipboard
open fun setMapLanguage(@NonNull locale: Locale)
Sets the language for map This will affect language of displayed names on map
Link copied to clipboard
open fun setMapLanguageInternal(@NonNull locale: Locale)
Link copied to clipboard
open fun setMapLayerCategoryVisibility(category: Int, enable: Boolean)
Link copied to clipboard
open fun setMapLayerCategoryVisibilityInternal(category: Int, enable: Boolean)
Link copied to clipboard
open fun setMapSpeedUnits(units: Int)
Link copied to clipboard
open fun setMapSpeedUnitsInternal(units: Int)
Link copied to clipboard
open fun setMapWarningSettings(@NonNull settings: MapWarningSettings)
Link copied to clipboard
open fun setMapWarningSettingsInternal(@Nullable settings: MapWarningSettings)
Link copied to clipboard
open fun setPixelFormat(pixelFormat: Int)
Change pixel format for underlying GL surface.
Link copied to clipboard
open fun setRouteRestrictionSettings(@NonNull settings: RouteRestrictionSettings)
Link copied to clipboard
open fun setTrafficSignFormSettings(@NonNull settings: TrafficSignFormSettings)
Sets custom visual settings for traffic sign form
Link copied to clipboard
open fun setTrafficSignSettings(@NonNull settings: TrafficSignSettings)
Sets custom visual settings for traffic sign for specific world region
Link copied to clipboard
open fun setWarningsTypeVisibilityInternal(type: Int, enable: Boolean)
Link copied to clipboard
open fun setZOrderMediaOverlay(isMediaOverlay: Boolean)
Link copied to clipboard
open fun setZOrderOnTop(isOnTop: Boolean)