Skip to content
This repository has been archived by the owner on Jun 22, 2023. It is now read-only.

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

Open
timothychee opened this issue Aug 26, 2020 · 0 comments
Open

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

timothychee opened this issue Aug 26, 2020 · 0 comments

Comments

@timothychee
Copy link

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));
}

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant