This repository has been archived by the owner on Aug 8, 2023. It is now read-only.
MapboxMap.OnCameraChangeListener.onCameraChange() is called with a simple click on the map #8844
Labels
Android
Mapbox Maps SDK for Android
Milestone
Platform:ANDROID
Mapbox SDK version:5.0.2
Steps to trigger behavior
Registre the mapbox camera change listener as below
Mapbox.setOnCameraChangeListener(new MapboxMap.OnCameraChangeListener() {
@OverRide
public void onCameraChange(CameraPosition position) {
Log.d(""," onCameraChange="+position);
}
});
Start an application then click on the map or long press on the map
Expected behavior
the method onCameraChange mustn't be called in the cases of a click or a long press on the map
Actual behavior
Just a click on the map, I don't change the position of the camera, however the onCameraChange is called three time with a same position.
The text was updated successfully, but these errors were encountered: