I\'m getting an IllegalArgumentException when I call this createMarker() method:
private void createMarker(GoogleMap map, MarkerOptions options, OnMarkerCrea
Caused by: java.lang.IllegalArgumentException: no position in marker options
Apparently, your MarkerOptions
does not have a position. Please call position()
to supply the position in which to place the marker.
It worked for me,
MarkerOptions mMarkerOptions = new MarkerOptions();
mMarkerOptions.position(new LatLng(lat, lang));
mMarkerOptions.anchor(0.5f, 0.5f);