Я устанавливаю маркер следующим образом , и я могу видеть маркер на карте
if (googleMap != null && mapFragment != null && googleMap.getProjection() != null) {
googleMap.addMarker(new MarkerOptions().position(new LatLng(
Double.parseDouble(storesWithDistance.getLatitude() + ""), Double.parseDouble(storesWithDistance.getLongitude() + "")
)).title(storesWithDistance.getStoreName() + "").snippet(i + ""));
}
`marker.getTitle()` is returning `null` ..... Why is it happening ?
@Override
public boolean onMarkerClick(Marker marker) {
try {
if (googleMap != null && mapFragment != null && googleMap.getProjection() != null) {
String title = marker.getTitle();
String snippet = marker.getSnippet();
Log.d("","");
}
} catch (Exception e) {
e.printStackTrace();
}
return true;
}