[android] #5084 - remove addMarkerViews, renamed addMarkerView to addMarker
This commit is contained in:
@@ -147,7 +147,6 @@ public class BulkMarkerActivity extends AppCompatActivity implements AdapterView
|
||||
}
|
||||
|
||||
private void showNativeMarkers(int amount) {
|
||||
List<MarkerViewOptions> markerOptionsList = new ArrayList<>();
|
||||
DecimalFormat formatter = new DecimalFormat("#.#####");
|
||||
Random random = new Random();
|
||||
int randomIndex;
|
||||
@@ -155,14 +154,12 @@ public class BulkMarkerActivity extends AppCompatActivity implements AdapterView
|
||||
for (int i = 0; i < amount; i++) {
|
||||
randomIndex = random.nextInt(mLocations.size());
|
||||
LatLng latLng = mLocations.get(randomIndex);
|
||||
markerOptionsList.add(new MarkerViewOptions()
|
||||
mMapboxMap.addMarker(new MarkerViewOptions()
|
||||
.position(latLng)
|
||||
.title(String.valueOf(i))
|
||||
.snippet(formatter.format(latLng.getLatitude()) + ", " + formatter.format(latLng.getLongitude())));
|
||||
}
|
||||
|
||||
mMapboxMap.addMarkerViews(markerOptionsList);
|
||||
}
|
||||
}
|
||||
|
||||
private void showGlMarkers(int amount) {
|
||||
List<MarkerOptions> markerOptionsList = new ArrayList<>();
|
||||
|
||||
@@ -69,7 +69,7 @@ public class ViewMarkerAdapterActivity extends AppCompatActivity {
|
||||
|
||||
// add text markers
|
||||
for (int i = 0; i < LAT_LNGS.length; i++) {
|
||||
mMapboxMap.addMarkerView(new MarkerViewOptions()
|
||||
mMapboxMap.addMarker(new MarkerViewOptions()
|
||||
.position(LAT_LNGS[i])
|
||||
.title(String.valueOf(i))
|
||||
.infoWindowOffset(new Point(0, 86))
|
||||
@@ -89,7 +89,7 @@ public class ViewMarkerAdapterActivity extends AppCompatActivity {
|
||||
options.infoWindowOffset(new Point(0, 64));
|
||||
options.flat(true);
|
||||
|
||||
mapboxMap.addMarkerView(options);
|
||||
mapboxMap.addMarker(options);
|
||||
|
||||
// default GL marker
|
||||
mMapboxMap.addMarker(new CountryMarkerOptions()
|
||||
|
||||
Reference in New Issue
Block a user