【问题标题】:Check if location layer was changed. Yandex MapKit 3.0检查位置图层是否已更改。 Yandex MapKit 3.0
【发布时间】:2018-12-03 08:11:37
【问题描述】:

如何检查我是否更改相机位置以禁用锚点? 我在examplesdocs 中没有看到解决方案。

【问题讨论】:

    标签: android geolocation mapkit yandex yandex-maps


    【解决方案1】:

    我找到了解决办法。

    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) {
        ...
      }
    }
    

    【讨论】:

      猜你喜欢
      • 2019-02-18
      • 1970-01-01
      • 1970-01-01
      • 2019-02-09
      • 1970-01-01
      • 1970-01-01
      • 2013-06-14
      • 2018-09-13
      • 1970-01-01
      相关资源
      最近更新 更多