chore: Move sydney within region tag.

This commit is contained in:
Chris Arriola 2021-08-13 09:31:47 -07:00
parent 1a48f1e704
commit 4a5af72995
2 changed files with 6 additions and 8 deletions

View File

@ -41,8 +41,6 @@ public class MainActivity extends AppCompatActivity implements OnMapReadyCallbac
AmbientModeSupport.AmbientCallbackProvider {
// [START_EXCLUDE silent]
private static final LatLng SYDNEY = new LatLng(-33.85704, 151.21522);
private SupportMapFragment mapFragment;
// [END_EXCLUDE]
@ -79,6 +77,8 @@ public class MainActivity extends AppCompatActivity implements OnMapReadyCallbac
// [START_EXCLUDE]
// [START maps_wear_os_on_map_ready]
private static final LatLng SYDNEY = new LatLng(-33.85704, 151.21522);
@Override
public void onMapReady(@NonNull GoogleMap googleMap) {
// Add a marker with a title that is shown in its info window.

View File

@ -70,15 +70,17 @@ class MainActivity : AppCompatActivity(), OnMapReadyCallback,
// [START_EXCLUDE]
// [START maps_wear_os_on_map_ready]
private val sydney = LatLng(-33.85704, 151.21522)
override fun onMapReady(googleMap: GoogleMap) {
// Add a marker with a title that is shown in its info window.
googleMap.addMarker(
MarkerOptions().position(SYDNEY)
MarkerOptions().position(sydney)
.title("Sydney Opera House")
)
// Move the camera to show the marker.
googleMap.moveCamera(CameraUpdateFactory.newLatLngZoom(SYDNEY, 10f))
googleMap.moveCamera(CameraUpdateFactory.newLatLngZoom(sydney, 10f))
}
// [END maps_wear_os_on_map_ready]
@ -104,10 +106,6 @@ class MainActivity : AppCompatActivity(), OnMapReadyCallback,
}
}
}
companion object {
private val SYDNEY = LatLng(-33.85704, 151.21522)
}
// [END_EXCLUDE]
}
// [END maps_wear_os_swipe_dismiss_callback]