Open timothychee opened 4 years ago
https://codelabs.developers.google.com/codelabs/advanced-android-training-google-maps/index.html?index=..%2F..advanced-android-training#3
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)); }
https://codelabs.developers.google.com/codelabs/advanced-android-training-google-maps/index.html?index=..%2F..advanced-android-training#3
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)); }