Last active
April 29, 2022 08:55
-
-
Save kuwapa/f2deca85fca4aac0d3bec9a9f07a78e9 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private val mapView: MapView by lazy { v.mapView } | |
private lateinit var lineManager: LineManager | |
private lateinit var map: MapboxMap | |
private val v: ActivityMainBinding by lazy { | |
ActivityTsasBinding.inflate(layoutInflater) | |
} | |
override fun onCreate(savedInstanceState: Bundle?) { | |
super.onCreate(savedInstanceState) | |
Mapbox.getInstance(this) | |
setContentView(v.root) | |
mapView.onCreate(savedInstanceState) | |
mapView.getMapAsync { | |
map = it | |
mapboxMap.setStyle(Style.OUTDOORS) { | |
lineManager = LineManager(mapView, map, map.style!!) | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment