mirror of
https://github.com/googlemaps/android-samples.git
synced 2025-12-08 18:02:20 +00:00
Fix bug in BasicMapDemo
This commit is contained in:
parent
e041f1827b
commit
bc62c4209d
@ -48,7 +48,8 @@ class BasicMapDemoActivity :
|
||||
* This is where we can add markers or lines, add listeners or move the camera. In this case,
|
||||
* we just move the camera to Sydney and add a marker in Sydney.
|
||||
*/
|
||||
override fun onMapReady(googleMap: GoogleMap) {
|
||||
override fun onMapReady(googleMap: GoogleMap?) {
|
||||
googleMap ?: return
|
||||
with(googleMap) {
|
||||
moveCamera(CameraUpdateFactory.newLatLngZoom(SYDNEY, ZOOM_LEVEL))
|
||||
addMarker(MarkerOptions().position(SYDNEY))
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user