OmhMapImpl

class OmhMapImpl(val mapView: MapView, context: Context, myLocationIcon: ImageView = MyLocationIcon(context), polylineManager: PolylineManager = PolylineManager(mapView), polygonManager: PolygonManager = PolygonManager(mapView), logger: Logger = commonLogger) : OmhMap, IMapDragManagerDelegate, IOmhInfoWindowMapViewDelegate

Constructors

Link copied to clipboard
constructor(mapView: MapView, context: Context, myLocationIcon: ImageView = MyLocationIcon(context), polylineManager: PolylineManager = PolylineManager(mapView), polygonManager: PolygonManager = PolygonManager(mapView), logger: Logger = commonLogger)

Properties

Link copied to clipboard
open override val mapView: MapView
Link copied to clipboard
open override val providerName: String

Functions

Link copied to clipboard
open override fun addMarker(options: OmhMarkerOptions): OmhMarker
Link copied to clipboard
open override fun addPolygon(options: OmhPolygonOptions): OmhPolygon
Link copied to clipboard
open override fun addPolyline(options: OmhPolylineOptions): OmhPolyline
Link copied to clipboard
open override fun coordinateForPixel(screenCoordinate: ScreenCoordinate): Point

Converts the screen coordinate to the map position.

Link copied to clipboard
open override fun findInteractableEntities(screenCoordinate: ScreenCoordinate, validator: (predicate: ITouchInteractable) -> Boolean?): List<ITouchInteractable>

Returns an entity (if present and in draggable state) that can possibly be dragged.

Link copied to clipboard
Link copied to clipboard
open override fun getMapHeight(): Int

Returns the height of the map in pixels.

Link copied to clipboard
open override fun getMapWidth(): Int

Returns the width of the map in pixels.

Link copied to clipboard
open override fun handleDragEnd(omhCoordinate: OmhCoordinate, draggedEntity: ITouchInteractable)

Callback invoked when drag event is finished.

Link copied to clipboard
open override fun handleDragMove(omhCoordinate: OmhCoordinate, draggedEntity: ITouchInteractable)

Callback invoked when drag event is in progress, called sequentially as the user moves pointer on the screen.

Link copied to clipboard
open override fun handleDragStart(omhCoordinate: OmhCoordinate, draggedEntity: ITouchInteractable)

Callback invoked when drag event is started.

Link copied to clipboard
open override fun isMyLocationEnabled(): Boolean
Link copied to clipboard
open override fun moveCamera(coordinate: OmhCoordinate, zoomLevel: Float)
Link copied to clipboard
open override fun pixelForCoordinate(point: Point): ScreenCoordinate

Converts the map position to the screen coordinate.

Link copied to clipboard
Link copied to clipboard
open override fun setMapStyle(json: Int?)
open override fun setMapStyle(jsonString: String?)
Link copied to clipboard
open override fun setMyLocationButtonClickListener(omhOnMyLocationButtonClickListener: OmhOnMyLocationButtonClickListener)
Link copied to clipboard
@RequiresPermission(anyOf = ["android.permission.ACCESS_COARSE_LOCATION", "android.permission.ACCESS_FINE_LOCATION"])
open override fun setMyLocationEnabled(enable: Boolean)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override fun setOnMapLoadedCallback(callback: OmhMapLoadedCallback?)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override fun setRotateGesturesEnabled(enableRotateGestures: Boolean)
Link copied to clipboard
open override fun setZoomGesturesEnabled(enableZoomGestures: Boolean)
Link copied to clipboard
open override fun snapshot(omhSnapshotReadyCallback: OmhSnapshotReadyCallback)