mirror of
https://github.com/googlemaps/android-samples.git
synced 2025-12-08 18:02:20 +00:00
chore: Move sydney within region tag.
This commit is contained in:
parent
1a48f1e704
commit
4a5af72995
@ -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.
|
||||
|
||||
@ -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]
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user