Skip to content
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

Closed
TranThuong opened this issue Apr 28, 2017 · 1 comment
Labels
Android Mapbox Maps SDK for Android

Comments

@TranThuong
Copy link

TranThuong commented Apr 28, 2017

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.

@tobrun tobrun added the Android Mapbox Maps SDK for Android label Apr 28, 2017
@tobrun tobrun added this to the android-v5.1.0 milestone Apr 28, 2017
@tobrun
Copy link
Member

tobrun commented Apr 28, 2017

with the upcoming 5.1.0 release we are deprecating the methods mentioned in OP and introducing a newer, finer grained camera change listener system. You can read more about it in #6350 and the WIP PR in #8644. Thank you for reaching out but closing this as non-actionable as the API is going to become deprecated.

@tobrun tobrun closed this as completed Apr 28, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Android Mapbox Maps SDK for Android
Projects
None yet
Development

No branches or pull requests

2 participants