检查位置图层是否已更改。 Yandex MapKit 3.0
Check if location layer was changed. Yandex MapKit 3.0
中没有看到解决方案
我找到了解决方案。
public class WorkFragment extends BaseFragment implements ..., CameraListener {
@Override
public void onCreate(){
...
mapView.getMap().addCameraListener(this);
....
}
@Override
public void onCameraPositionChanged(Map map, CameraPosition cameraPosition, CameraUpdateSource cameraUpdateSource, boolean b) {
if (cameraUpdateSource == CameraUpdateSource.GESTURES) {
...
}
}
我找到了解决方案。
public class WorkFragment extends BaseFragment implements ..., CameraListener {
@Override
public void onCreate(){
...
mapView.getMap().addCameraListener(this);
....
}
@Override
public void onCameraPositionChanged(Map map, CameraPosition cameraPosition, CameraUpdateSource cameraUpdateSource, boolean b) {
if (cameraUpdateSource == CameraUpdateSource.GESTURES) {
...
}
}