Код: Выделить всё
mapView = findViewById(R.id.mapView)
mapView.setTileSource(TileSourceFactory.MAPNIK)
mapView.setMultiTouchControls(true)
Код: Выделить всё
thePoint = GeoPoint(lat, long)
val mapController = mapView.controller
mapController.setZoom(15.0)
mapController.setCenter(thePoint)
val marker = Marker(mapView).apply {
position = thePoint
title = label
isDraggable = true
icon = context.getDrawable(id)
setAnchor(Marker.ANCHOR_CENTER, Marker.ANCHOR_BOTTOM)
}
mapView.overlayManager.add(marker)
Подробнее здесь: https://stackoverflow.com/questions/792 ... mdroid-map
Мобильная версия