mirror of
https://github.com/meshtastic/Meshtastic-Android.git
synced 2026-04-20 22:23:37 +00:00
feat: add custom map navigation icon
This commit is contained in:
parent
2fa01b4c4c
commit
944a6a5569
3 changed files with 17 additions and 2 deletions
|
|
@ -157,10 +157,14 @@ fun MapView(model: UIViewModel = viewModel()) {
|
|||
myLocationOverlay = MyLocationNewOverlay(this).apply {
|
||||
enableMyLocation()
|
||||
enableFollowLocation()
|
||||
AppCompatResources.getDrawable(context, R.drawable.ic_location_dot_24)?.let {
|
||||
AppCompatResources.getDrawable(context, R.drawable.ic_map_location_dot_24)?.let {
|
||||
setPersonIcon(it.toBitmap())
|
||||
setPersonAnchor(0.5f, 0.5f)
|
||||
}
|
||||
AppCompatResources.getDrawable(context, R.drawable.ic_map_navigation_24)?.let {
|
||||
setDirectionIcon(it.toBitmap())
|
||||
setDirectionAnchor(0.5f, 0.5f)
|
||||
}
|
||||
}
|
||||
overlays.add(myLocationOverlay)
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue