google-developer-training / android-advanced

Solution apps for the apps that students create as they work through the Advanced Android Development training course created by Google Developer Training.
Other
1.14k stars 1.09k forks source link

Advanced Android: [Lesson #][Step #][description] #18

Open timothychee opened 4 years ago

timothychee commented 4 years ago

https://codelabs.developers.google.com/codelabs/advanced-android-training-google-maps/index.html?index=..%2F..advanced-android-training#3

  1. Task 2. Add map types and markers

2.4 Add POI listener

public void onPoiClick(PointOfInterest poi) { Marker poiMarker = mMap.addMarker(new MarkerOptions() .position(poi.latLng) .title(poi.name); }

// ) is missing after poi.name. Correct code should be as follow:

public void onPoiClick(PointOfInterest poi) { Marker poiMarker = mMap.addMarker(new MarkerOptions() .position(poi.latLng) .title(poi.name)); }