-
Notifications
You must be signed in to change notification settings - Fork 117
Closed
Labels
Milestone
Description
With below code the click listeners aren't called
@Override
public void onStyleLoaded(@NonNull Style style) {
symbolManager = new SymbolManager(mapView, mapboxMap, style);
symbolManager.setIconAllowOverlap(true);
symbolManager.setTextAllowOverlap(true);
mapboxMap.addOnMapLongClickListener(point -> {
addSymbol(point);
return true;
});
mapboxMap.addOnMapClickListener(point -> {
addSymbol(point);
return true;
});
}Moving the registering of these listeners before SymbolManager creation solves the issue but the time of invocation should matter.