MapView

open class MapView @JvmOverloads constructor(context: Context, attrs: AttributeSet? = null, gestureOptions: GestureOptions = GestureOptions(), onGestureListener: OnGestureListener? = null, onStateChanged: suspend (newState: MapState) -> Unit = {}, callback: OnMapReadyCallback? = null) : GLMapView, TwoFingersGestureDetector.OnTwoFingersGestureListener

The MapView can be manipulated only after the OnMapReadyCallback triggers the onMapReady method.

Parameters

context

the context used for the MapView.

gestureOptions

used to define the gestures status (enabled or disabled). By default, all gestures are enabled if nothing is passed for this optional argument.

onGestureListener

used to be notified about gestures performed on the MapView (optional).

callback

the OnMapReadyCallback to be notified when the map is ready to be manipulated, or if the map initialization encountered an error.

Constructors

Link copied to clipboard
constructor(context: Context, attrs: AttributeSet? = null, gestureOptions: GestureOptions = GestureOptions(), onGestureListener: OnGestureListener? = null, onStateChanged: suspend (newState: MapState) -> Unit = {}, callback: OnMapReadyCallback? = null)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open var alpha: Float
Link copied to clipboard
open var animation: Animation?
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open val autofillHints: Array<out String?>??
Link copied to clipboard
Link copied to clipboard
open val autofillType: Int
Link copied to clipboard
Link copied to clipboard
open var background: Drawable?
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open val baseline: Int
Link copied to clipboard
Link copied to clipboard
var bottom: Int
Link copied to clipboard
Link copied to clipboard

Returns the current 2D-center point of the view.

Link copied to clipboard
open var clipBounds: Rect?
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open var debugFlags: Int
Link copied to clipboard

the default size in meters for a POI when zoomLevel corresponds to maxZoomLevel (used for calculating the dynamic search radius. See getDynamicSearchRadius)

Link copied to clipboard
open val display: Display?
Link copied to clipboard

defines the scale of the zoom when MapView is double tapped.

Link copied to clipboard

defines the speed of the zoom animation when the map is double tapped. If you want to reduce the speed of the animation, specify a lower value. If you want to increase the speed of the animation, specify a higher value. (default value is 0.1)

Link copied to clipboard
Link copied to clipboard
open val drawingCache: Bitmap?
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open val drawingTime: Long
Link copied to clipboard
open var elevation: Float
Link copied to clipboard
open val explicitStyle: Int
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open var focusable: Int
Link copied to clipboard
open var foreground: Drawable?
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open val handler: Handler?
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val height: Int
Link copied to clipboard
Link copied to clipboard

Returns the y screen coordinate of the horizon (in pixel).

Link copied to clipboard
Link copied to clipboard
open val hostToken: IBinder?
Link copied to clipboard
open var id: Int
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open val isDirty: Boolean
Link copied to clipboard
Link copied to clipboard
open var isEnabled: Boolean
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open val isFocused: Boolean
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open var isHovered: Boolean
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open val isLaidOut: Boolean
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open val isOpaque: Boolean
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open var isPressed: Boolean
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open val isShown: Boolean
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open var labelFor: Int
Link copied to clipboard
open val layerType: Int
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
var left: Int
Link copied to clipboard

defines the state of the map's center regarding user's location. This state can be used to handle the re-center button's behavior in an application. (default value is MapCenterState.NOT_CENTERED, its value has to be changed by the application).

Link copied to clipboard
open val matrix: Matrix?
Link copied to clipboard

Public members

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open var minimumHeight: Int
Link copied to clipboard
open var minimumWidth: Int
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open var nextFocusUpId: Int
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open val overlay: ViewOverlay?
Link copied to clipboard
Link copied to clipboard
open val paddingBottom: Int
Link copied to clipboard
open val paddingEnd: Int
Link copied to clipboard
open val paddingLeft: Int
Link copied to clipboard
open val paddingRight: Int
Link copied to clipboard
open val paddingStart: Int
Link copied to clipboard
open val paddingTop: Int
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open var pivotX: Float
Link copied to clipboard
open var pivotY: Float
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open var renderMode: Int
Link copied to clipboard
Link copied to clipboard
open val resources: Resources?
Link copied to clipboard
Link copied to clipboard
var right: Int
Link copied to clipboard
Link copied to clipboard
open val rootView: View?
Link copied to clipboard
Link copied to clipboard
open var rotation: Float
Link copied to clipboard
Link copied to clipboard
open var rotationX: Float
Link copied to clipboard
open var rotationY: Float
Link copied to clipboard
open var scaleX: Float
Link copied to clipboard
open var scaleY: Float
Link copied to clipboard
Link copied to clipboard
open var scrollBarSize: Int
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open val solidColor: Int
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
var TAG: String
Link copied to clipboard
open var tag: Any?
Link copied to clipboard
open var textAlignment: Int
Link copied to clipboard
open var textDirection: Int
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
var top: Int
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

defines if the double tap action should use the map's center instead of the tapped point when zooming

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Returns the height of the view (in pixels).

Link copied to clipboard
Link copied to clipboard

Returns the width of the view (in pixels).

Link copied to clipboard
open var visibility: Int
Link copied to clipboard
val width: Int
Link copied to clipboard
open val windowId: WindowId?
Link copied to clipboard
Link copied to clipboard
open val windowToken: IBinder?
Link copied to clipboard
Link copied to clipboard
open var x: Float
Link copied to clipboard
var xdpi: Float
Link copied to clipboard
open var y: Float
Link copied to clipboard
var ydpi: Float
Link copied to clipboard
open var z: Float
Link copied to clipboard

Returns the current zoom level.

Functions

Link copied to clipboard
open fun addChildrenForAccessibility(outChildren: ArrayList<View?>?)
Link copied to clipboard
open fun addExtraDataToAccessibilityNodeInfo(info: AccessibilityNodeInfo, extraDataKey: String, arguments: Bundle?)
Link copied to clipboard
open fun addFocusables(views: ArrayList<View?>?, direction: Int)
open fun addFocusables(views: ArrayList<View?>?, direction: Int, focusableMode: Int)
Link copied to clipboard
open fun addKeyboardNavigationClusters(views: Collection<View?>, direction: Int)
Link copied to clipboard

Callbacks of the Mapping Module

Link copied to clipboard

Callbacks of the Mapping Module

Link copied to clipboard
open fun addTouchables(views: ArrayList<View?>?)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Attach a group of dynamic layer(s) to this Map View. All geometric objects/layers will be rendered according to the current MapStyle

Link copied to clipboard
open fun autofill(values: SparseArray<AutofillValue?>)
open fun autofill(value: AutofillValue?)
Link copied to clipboard
open fun bringToFront()
Link copied to clipboard
open fun buildDrawingCache(autoScale: Boolean)
Link copied to clipboard
open fun buildLayer()
Link copied to clipboard
open fun callOnClick(): Boolean
Link copied to clipboard
Link copied to clipboard
open fun cancelLongPress()
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun canScrollHorizontally(direction: Int): Boolean
Link copied to clipboard
open fun canScrollVertically(direction: Int): Boolean
Link copied to clipboard
Link copied to clipboard
open fun clearAnimation()
Link copied to clipboard
Link copied to clipboard
open fun clearFocus()
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun computeScroll()
Link copied to clipboard
open fun computeSystemWindowInsets(in: WindowInsets?, outLocalInsets: Rect?): WindowInsets?
Link copied to clipboard
Link copied to clipboard
fun createPOICluster(name: String, classIDs: List<Int>): Boolean
fun createPOICluster(name: String, classIDs: List<Int>, image: Bitmap?): Boolean
fun createPOICluster(name: String, classIDs: List<Int>, color: Int, scale: Double): Boolean
fun createPOICluster(name: String, classIDs: List<Int>, image: Bitmap?, color: Int = 255, scale: Double = 1.0): Boolean

Create a POI cluster If a cluster already exists for the given name, the previous one will be deleted

Link copied to clipboard

Computes real coordinates of a screen point.

Link copied to clipboard
Link copied to clipboard

Remove the current attached group of dynamic layer(s) from this MapView.

Link copied to clipboard

Disables inertia process

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun dispatchDisplayHint(hint: Int)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun dispatchKeyEvent(event: KeyEvent?): Boolean
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun dispatchNestedFling(velocityX: Float, velocityY: Float, consumed: Boolean): Boolean
Link copied to clipboard
open fun dispatchNestedPreFling(velocityX: Float, velocityY: Float): Boolean
Link copied to clipboard
open fun dispatchNestedPreScroll(dx: Int, dy: Int, consumed: IntArray?, offsetInWindow: IntArray?): Boolean
Link copied to clipboard
open fun dispatchNestedScroll(dxConsumed: Int, dyConsumed: Int, dxUnconsumed: Int, dyUnconsumed: Int, offsetInWindow: IntArray?): Boolean
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun dispatchScrollCaptureSearch(localVisibleRect: Rect, windowOffset: Point, targets: Consumer<ScrollCaptureTarget?>)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun dispatchUnhandledMove(focused: View?, direction: Int): Boolean
Link copied to clipboard
Link copied to clipboard
open fun dispatchWindowVisibilityChanged(visibility: Int)
Link copied to clipboard
fun doubleTapAction(zoomOnMapCenter: Boolean = useMapCenterForDoubleTap)

Performs a sequence of zoom actions (animation) on the center of the MapView Override this method to change the map behavior when a double tap event happens

Link copied to clipboard
open fun draw(canvas: Canvas)
Link copied to clipboard
Link copied to clipboard
fun enableInertia(duration: Int = 500): Boolean

Enables inertia process while moving the map.

Link copied to clipboard
open fun findFocus(): View?
Link copied to clipboard
fun <T : View?> findViewById(id: Int): T?
Link copied to clipboard
open fun findViewsWithText(outViews: ArrayList<View?>?, searched: CharSequence?, flags: Int)
Link copied to clipboard
fun <T : View?> findViewWithTag(tag: Any?): T?
Link copied to clipboard
open fun focusSearch(direction: Int): View?
Link copied to clipboard
open fun forceHasOverlappingRendering(hasOverlappingRendering: Boolean)
Link copied to clipboard
open fun forceLayout()
Link copied to clipboard
Link copied to clipboard
open fun generateDisplayHash(hashAlgorithm: String, bounds: Rect?, executor: Executor, callback: DisplayHashResultCallback)
Link copied to clipboard
Link copied to clipboard

Gets the current MapState of the MapView

Link copied to clipboard

Returns the euclidian distance (in meters) between screen points.

Link copied to clipboard
open fun getDrawingRect(outRect: Rect?)
Link copied to clipboard
fun getDynamicSearchRadius(poiSize: Double = defaultPOISize): Double

Calculates the search radius for touched POIs depending on current zoomLevel and passed poiSize

Link copied to clipboard
open fun getFocusables(direction: Int): ArrayList<View?>?
Link copied to clipboard
open fun getFocusedRect(r: Rect?)
Link copied to clipboard
open fun getGlobalVisibleRect(r: Rect?, globalOffset: Point?): Boolean
Link copied to clipboard
open fun getHitRect(outRect: Rect?)
Link copied to clipboard
Link copied to clipboard
open fun getLocationInSurface(location: IntArray)
Link copied to clipboard
open fun getLocationInWindow(outLocation: IntArray?)
Link copied to clipboard
open fun getLocationOnScreen(outLocation: IntArray?)
Link copied to clipboard

Returns the current attached MapStyle

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun hasFocus(): Boolean
Link copied to clipboard
open fun hasFocusable(): Boolean
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun invalidate()
open fun invalidate(dirty: Rect?)
open fun invalidate(l: Int, t: Int, r: Int, b: Int)
Link copied to clipboard
open fun invalidateDrawable(drawable: Drawable)
Link copied to clipboard
Link copied to clipboard
fun isPOIVisible(geopoint: GeoPoint, classID: Long): Boolean
Link copied to clipboard
open fun isVisibleToUserForAutofill(virtualId: Int): Boolean
Link copied to clipboard
Link copied to clipboard
open fun keyboardNavigationClusterSearch(currentCluster: View?, direction: Int): View?
Link copied to clipboard
open fun layout(l: Int, t: Int, r: Int, b: Int)
Link copied to clipboard
fun measure(widthMeasureSpec: Int, heightMeasureSpec: Int)
Link copied to clipboard
fun move(from: PointF, to: PointF, redraw: Boolean)

Translates the view by a vector defined by screen points.

Link copied to clipboard
open override fun notifyOnMapDestroyedObservers()
Link copied to clipboard
open override fun notifyOnMapReadyObservers(error: Error?)
Link copied to clipboard
open fun offsetLeftAndRight(offset: Int)
Link copied to clipboard
open fun offsetTopAndBottom(offset: Int)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override fun onCoreInitError(error: Error)
Link copied to clipboard
open override fun onCoreInitException(exception: Exception)
Link copied to clipboard
open override fun onCoreReady()

Called by Core's init broadcast once Core is ready, for a view that subscribed before Core finished initializing (see the constructor).

Link copied to clipboard
open override fun onCreate(owner: LifecycleOwner)
Link copied to clipboard
Link copied to clipboard
open fun onCreateViewTranslationRequest(supportedFormats: IntArray, requestsCollector: Consumer<ViewTranslationRequest?>)
Link copied to clipboard
open fun onCreateVirtualViewTranslationRequests(virtualIds: LongArray, supportedFormats: IntArray, requestsCollector: Consumer<ViewTranslationRequest?>)
Link copied to clipboard
fun onDestroy()

Destroys the view: stops its ready notifications, unsubscribes it from Core's init broadcast, notifies the map-destroyed observers and releases its native map. Call it on the main thread.

open override fun onDestroy(owner: LifecycleOwner)
Link copied to clipboard
open fun onDragEvent(event: DragEvent?): Boolean
Link copied to clipboard
open fun onDrawForeground(canvas: Canvas)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun onHoverChanged(hovered: Boolean)
Link copied to clipboard
open fun onHoverEvent(event: MotionEvent?): Boolean
Link copied to clipboard
open fun onKeyDown(keyCode: Int, event: KeyEvent?): Boolean
Link copied to clipboard
open fun onKeyLongPress(keyCode: Int, event: KeyEvent?): Boolean
Link copied to clipboard
open fun onKeyMultiple(keyCode: Int, repeatCount: Int, event: KeyEvent?): Boolean
Link copied to clipboard
open fun onKeyPreIme(keyCode: Int, event: KeyEvent?): Boolean
Link copied to clipboard
open fun onKeyShortcut(keyCode: Int, event: KeyEvent?): Boolean
Link copied to clipboard
open fun onKeyUp(keyCode: Int, event: KeyEvent?): Boolean
Link copied to clipboard
open fun onPause()
open override fun onPause(owner: LifecycleOwner)
Link copied to clipboard
open fun onPointerCaptureChange(hasCapture: Boolean)
Link copied to clipboard
open fun onProvideAutofillStructure(structure: ViewStructure?, flags: Int)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun onProvideStructure(structure: ViewStructure?)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun onRefreshNeeded(centerXLon: Double, centerYLat: Double, tilt: Double, zoomLevel: Double, orientation: Double)

Internal method called in JNI by RedrawNotifyFunc (when the core SDK finished drawing the map)

Link copied to clipboard
open fun onResolvePointerIcon(event: MotionEvent?, pointerIndex: Int): PointerIcon?
Link copied to clipboard
open fun onResume()
open override fun onResume(owner: LifecycleOwner)
Link copied to clipboard
open override fun onRotation(rotationDetector: TwoFingersGestureDetector)
Link copied to clipboard
open fun onRtlPropertiesChanged(layoutDirection: Int)
Link copied to clipboard
open fun onScreenStateChanged(screenState: Int)
Link copied to clipboard
open fun onScrollCaptureSearch(localVisibleRect: Rect, windowOffset: Point, targets: Consumer<ScrollCaptureTarget?>)
Link copied to clipboard
open override fun onStart(owner: LifecycleOwner)
Link copied to clipboard
Link copied to clipboard
open override fun onStop(owner: LifecycleOwner)
Link copied to clipboard
open override fun onTilt(rotationDetector: TwoFingersGestureDetector)
Link copied to clipboard
open override fun onTouchEvent(event: MotionEvent): Boolean

Gets motion events to handle pan and save rotation/tilt state

Link copied to clipboard
Link copied to clipboard
open override fun onViewDestroyed()

Called when the opengl thread destroyed the surface and before destroying the native objects. Use it to save the view state.

Link copied to clipboard
open override fun onViewRestored()

Called when the opengl thread created a new surface and after the creation of the native view. Use it to restore the view state.

Link copied to clipboard
Link copied to clipboard
open fun onVisibilityAggregated(isVisible: Boolean)
Link copied to clipboard
open fun onWindowFocusChanged(hasWindowFocus: Boolean)
Link copied to clipboard
Link copied to clipboard
open fun performAccessibilityAction(action: Int, arguments: Bundle?): Boolean
Link copied to clipboard
open fun performClick(): Boolean
Link copied to clipboard
Link copied to clipboard
open fun performHapticFeedback(feedbackConstant: Int): Boolean
open fun performHapticFeedback(feedbackConstant: Int, flags: Int): Boolean
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun playSoundEffect(soundConstant: Int)
Link copied to clipboard
open fun post(action: Runnable?): Boolean
Link copied to clipboard
open fun postDelayed(action: Runnable?, delayMillis: Long): Boolean
Link copied to clipboard
open fun postInvalidate()
open fun postInvalidate(left: Int, top: Int, right: Int, bottom: Int)
Link copied to clipboard
open fun postInvalidateDelayed(delayMilliseconds: Long)
open fun postInvalidateDelayed(delayMilliseconds: Long, left: Int, top: Int, right: Int, bottom: Int)
Link copied to clipboard
open fun postInvalidateOnAnimation(left: Int, top: Int, right: Int, bottom: Int)
Link copied to clipboard
open fun postOnAnimation(action: Runnable?)
Link copied to clipboard
open fun postOnAnimationDelayed(action: Runnable?, delayMillis: Long)
Link copied to clipboard
fun project(point: GeoPoint): PointF?

Computes the screen coordinates of a real point.

Link copied to clipboard
open fun queueEvent(r: Runnable?)
Link copied to clipboard
fun redraw(drawTexts: Boolean, tryLock: Boolean)

Redraws the whole content of the MapView.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun removeCallbacks(action: Runnable?): Boolean
Link copied to clipboard

Adds an observer to be notified when the map view is destroyed.

Link copied to clipboard
open override fun removeOnMapReadyObserver(observer: OnMapReadyCallback)

Adds an observer to be notified when the map view is ready.

Link copied to clipboard

Remove a POI cluster

Link copied to clipboard
open fun reportAppJankStats(appJankStats: AppJankStats)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun requestFocus(direction: Int): Boolean
open fun requestFocus(direction: Int, previouslyFocusedRect: Rect?): Boolean
Link copied to clipboard
Link copied to clipboard
open fun requestLayout()
Link copied to clipboard
Link copied to clipboard
open fun requestRectangleOnScreen(rectangle: Rect?): Boolean
open fun requestRectangleOnScreen(rectangle: Rect?, immediate: Boolean): Boolean
open fun requestRectangleOnScreen(rectangle: Rect, immediate: Boolean, source: Int): Boolean
Link copied to clipboard
open fun requestRender()
Link copied to clipboard
fun <T : View?> requireViewById(id: Int): T & Any
Link copied to clipboard
open fun resetPivot()
Link copied to clipboard
fun resize(width: Int, height: Int, redraw: Boolean): Boolean

Resizes the view to the specified dimensions.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun rotate(angle: Double, redraw: Boolean)

Sets a rotation angle around z axis in double value.

Link copied to clipboard
fun saveAttributeDataForStyleable(context: Context, styleable: IntArray, attrs: AttributeSet?, t: TypedArray, defStyleAttr: Int, defStyleRes: Int)
Link copied to clipboard
open fun saveHierarchyState(container: SparseArray<Parcelable?>?)
Link copied to clipboard
open fun scheduleDrawable(who: Drawable, what: Runnable, when: Long)
Link copied to clipboard
open fun scrollBy(x: Int, y: Int)
Link copied to clipboard
open fun scrollTo(x: Int, y: Int)
Link copied to clipboard
open fun sendAccessibilityEvent(eventType: Int)
Link copied to clipboard
open fun setAccessibilityDataSensitive(accessibilityDataSensitive: Int)
Link copied to clipboard
open fun setAllowClickWhenDisabled(clickableWhenDisabled: Boolean)
Link copied to clipboard
open fun setAllowedHandwritingDelegatePackage(allowedPackageName: String?)
Link copied to clipboard
open fun setAllowedHandwritingDelegatorPackage(allowedPackageName: String?)
Link copied to clipboard
open fun setAutofillHints(vararg autofillHints: String?)
Link copied to clipboard
open fun setBackgroundColor(color: Int)
Link copied to clipboard
open fun setBackgroundDrawable(background: Drawable?)
Link copied to clipboard
open fun setBackgroundResource(resid: Int)
Link copied to clipboard
open fun setBlurRegions(blurRegions: Collection<BlurRegion?>??)
Link copied to clipboard
open fun setDesiredHdrHeadroom(desiredHeadroom: Float)
Link copied to clipboard
open fun setEGLConfigChooser(needDepth: Boolean)
open fun setEGLConfigChooser(redSize: Int, greenSize: Int, blueSize: Int, alphaSize: Int, depthSize: Int, stencilSize: Int)
Link copied to clipboard
open fun setEGLContextClientVersion(version: Int)
Link copied to clipboard
Link copied to clipboard
open fun setFadingEdgeLength(length: Int)
Link copied to clipboard
Link copied to clipboard
open fun setHandwritingBoundsOffsets(offsetLeft: Float, offsetTop: Float, offsetRight: Float, offsetBottom: Float)
Link copied to clipboard
open fun setHasTransientState(hasTransientState: Boolean)
Link copied to clipboard
open fun setIsCredential(isCredential: Boolean)
Link copied to clipboard
open fun setIsHandwritingDelegate(isHandwritingDelegate: Boolean)
Link copied to clipboard
fun setLanguageCode(locale: Locale, doubleLanguage: Boolean)

Assigns a preferential language code for labels rendering.

Link copied to clipboard
open fun setLayerPaint(paint: Paint?)
Link copied to clipboard
open fun setLayerType(layerType: Int, paint: Paint?)
Link copied to clipboard
fun setLeftTopRightBottom(left: Int, top: Int, right: Int, bottom: Int)
Link copied to clipboard
fun setMapClickedListener(listener: OnMapClickedListener?, tap: Boolean, longPress: Boolean)

Setup the listener to receive the Address of the map clicked location.

Link copied to clipboard
fun setMapStyle(mapStyle: MapStyle)

Changes the current style of the MapView with the new one

Link copied to clipboard
fun setMaxNbText(maxNbText: Int)

Set a new value for the maximum number of texts to be displayed simultaneously

Link copied to clipboard
fun setMinTextDist(minTextDist: Int)

Set a new value for the minimum distance, in pixels, between the insertion points of two identical texts (default is 150) For example, a road can have its name displayed multiple times on the road.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun setOnReceiveContentListener(mimeTypes: Array<out String?>??, listener: OnReceiveContentListener?)
Link copied to clipboard
Link copied to clipboard
open fun setPadding(left: Int, top: Int, right: Int, bottom: Int)
Link copied to clipboard
open fun setPaddingRelative(start: Int, top: Int, end: Int, bottom: Int)
Link copied to clipboard
fun setProjParameters(rotationAngle: Double, tiltAngle: Double, inZoomLevel: Double, point: GeoPoint, pt1: Point, pt2: Point, redraw: Boolean): Boolean

Sets new projection parameters : this is equivalent to (bet faster than) successive calls to methods rotate, tilt, zoom and move.

Link copied to clipboard
open fun setRenderEffect(renderEffect: RenderEffect?)
Link copied to clipboard
open fun setRenderer(renderer: GLSurfaceView.Renderer?)
Link copied to clipboard
open fun setSecure(isSecure: Boolean)
Link copied to clipboard
open fun setSurfaceLifecycle(lifecycleStrategy: Int)
Link copied to clipboard
open fun setTransitionVisibility(visibility: Int)
Link copied to clipboard
fun setViewType(viewType: ViewType)

Updates the view type of the MapView Can only be used after the OnMapReadyCallback.onMapReady is triggered

Link copied to clipboard
open fun setWillNotCacheDrawing(willNotCacheDrawing: Boolean)
Link copied to clipboard
open fun setWillNotDraw(willNotDraw: Boolean)
Link copied to clipboard
open fun setZOrderMediaOverlay(isMediaOverlay: Boolean)
Link copied to clipboard
open fun setZOrderOnTop(onTop: Boolean)
Link copied to clipboard
Link copied to clipboard
fun showRoadRestrictions(roadRestrictions: Boolean = true, roadRestrictionsPOI: Boolean = true, profile: Profile? = null)

Show or hide display of the road restrictions.

Link copied to clipboard
Link copied to clipboard
open fun startAnimation(animation: Animation?)
Link copied to clipboard
fun startDrag(data: ClipData?, shadowBuilder: View.DragShadowBuilder?, myLocalState: Any?, flags: Int): Boolean
Link copied to clipboard
fun startDragAndDrop(data: ClipData?, shadowBuilder: View.DragShadowBuilder?, myLocalState: Any?, flags: Int): Boolean
Link copied to clipboard
open fun startNestedScroll(axes: Int): Boolean
Link copied to clipboard
open fun stopNestedScroll()
Link copied to clipboard
open fun surfaceChanged(holder: SurfaceHolder, format: Int, w: Int, h: Int)
Link copied to clipboard
open fun surfaceCreated(holder: SurfaceHolder)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun surfaceRedrawNeededAsync(holder: SurfaceHolder, finishDrawing: Runnable)
Link copied to clipboard
fun tilt(angle: Double, redraw: Boolean)

Sets a rotation angle around x axis.

Link copied to clipboard
fun to2DNorth()

Updates map orientation to 2D north (tilt and orientation set to 0)

Link copied to clipboard
Link copied to clipboard
open fun transformMatrixToLocal(matrix: Matrix)
Link copied to clipboard
open fun unscheduleDrawable(who: Drawable, what: Runnable)
Link copied to clipboard
Link copied to clipboard
fun updateMapState(mapState: MapState)

Updates the MapView with a new MapState

Link copied to clipboard
Link copied to clipboard
open fun willNotDraw(): Boolean
Link copied to clipboard
fun zoom(inZoomLevel: Double, inRedraw: Boolean)

Performs a zoom operation centered on the view

Link copied to clipboard
fun zoomIn(inZoomLevel: Double)
Link copied to clipboard
fun zoomOut(inZoomLevel: Double)
Link copied to clipboard
fun zoomTo(inZoomLevel: Double, point: GeoPoint, redraw: Boolean)

Performs a zoom operation centered on a point in real coordinates.

Link copied to clipboard
fun zoomToRect(rect: GeoRect, redraw: Boolean)

Performs a zoom operation inside the specified real rectangular double precision area.

fun zoomToRect(rect: GeoRect, pt1: Point, pt2: Point, inflate: Double = 1.0, redraw: Boolean)

Performs a zoom operation so that rect will be entirely visible within the screen limits defined by pt1 and pt2