Skip to content

Commit

Permalink
Update testapp with new annotation API
Browse files Browse the repository at this point in the history
  • Loading branch information
JonasVautherin committed Jun 22, 2023
1 parent 904a402 commit 6deebae
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ private void initMap(MapboxMap mapboxMap) {
});

mapboxMap.setStyle(new Style.Builder().fromUri(Style.getPredefinedStyle("Streets")), style -> {
symbolManager = new SymbolManager(mapView, mapboxMap, style, null, clusterOptions);
symbolManager = new SymbolManager(mapView, mapboxMap, style, null, null, clusterOptions);
symbolManager.setIconAllowOverlap(true);
loadData();
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ protected void onCreate(Bundle savedInstanceState) {
@Override
public void onMapReady(@NonNull MapboxMap map) {
map.setStyle(new Style.Builder().fromUri(Style.getPredefinedStyle("Streets")), style -> {
fillManager = new FillManager(mapView, map, style, "aerialway");
fillManager = new FillManager(mapView, map, style, "aerialway", null);
fillManager.addClickListener(fill -> {
Toast.makeText(
FillChangeActivity.this,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ protected void onCreate(Bundle savedInstanceState) {

// create symbol manager
GeoJsonOptions geoJsonOptions = new GeoJsonOptions().withTolerance(0.4f);
symbolManager = new SymbolManager(mapView, mapboxMap, style, null, geoJsonOptions);
symbolManager = new SymbolManager(mapView, mapboxMap, style, null, null, geoJsonOptions);
symbolManager.addClickListener(symbol -> {
Toast.makeText(SymbolActivity.this,
String.format("Symbol clicked %s", symbol.getId()),
Expand Down

0 comments on commit 6deebae

Please sign in to comment.