[android] #4063 - fix update point annotation broken
This commit is contained in:
@@ -518,6 +518,7 @@ public class MapboxMap {
|
||||
public Marker addMarker(@NonNull BaseMarkerOptions markerOptions) {
|
||||
Marker marker = prepareMarker(markerOptions);
|
||||
long id = mMapView.addMarker(marker);
|
||||
marker.setMapboxMap(this);
|
||||
marker.setId(id);
|
||||
mAnnotations.put(id, marker);
|
||||
return marker;
|
||||
|
||||
@@ -48,7 +48,7 @@ public class DynamicMarkerChangeActivity extends AppCompatActivity {
|
||||
mIconFactory = IconFactory.getInstance(this);
|
||||
|
||||
mMapView = (MapView) findViewById(R.id.mapView);
|
||||
mMapView.setTag(true);
|
||||
mMapView.setTag(false);
|
||||
mMapView.setAccessToken(ApiAccess.getToken(this));
|
||||
mMapView.onCreate(savedInstanceState);
|
||||
mMapView.getMapAsync(new OnMapReadyCallback() {
|
||||
|
||||
Reference in New Issue
Block a user