MapView

open class MapView : NativeMethodsReceiver

A class used by an application to display a map.

Types

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

Functions

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