File tree 1 file changed +5
-3
lines changed
lib/android/src/main/java/com/airbnb/android/react/maps
1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -300,8 +300,10 @@ public void setImage(String uri) {
300
300
301
301
public MarkerOptions getMarkerOptions () {
302
302
if (markerOptions == null ) {
303
- markerOptions = createMarkerOptions ();
303
+ markerOptions = new MarkerOptions ();
304
304
}
305
+
306
+ fillMarkerOptions (markerOptions );
305
307
return markerOptions ;
306
308
}
307
309
@@ -355,8 +357,8 @@ private BitmapDescriptor getIcon() {
355
357
}
356
358
}
357
359
358
- private MarkerOptions createMarkerOptions ( ) {
359
- MarkerOptions options = new MarkerOptions () .position (position );
360
+ private MarkerOptions fillMarkerOptions ( MarkerOptions options ) {
361
+ options .position (position );
360
362
if (anchorIsSet ) options .anchor (anchorX , anchorY );
361
363
if (calloutAnchorIsSet ) options .infoWindowAnchor (calloutAnchorX , calloutAnchorY );
362
364
options .title (title );
You can’t perform that action at this time.
0 commit comments