By rotation, it was done for my location and, as it were, represents internal functionality.
The problem you have in turning is that the center point of rotation is not set. But all these APIs are alas closed for now.
223 aload_0 [this] 224 invokevirtual ru.yandex.yandexmapkit.overlay.location.MyLocationOverlay.f() : boolean [168] 227 ifeq 258 230 aload_0 [this] 231 getfield ru.yandex.yandexmapkit.overlay.location.MyLocationOverlay.y : al [78] 234 aload_0 [this] 235 invokevirtual ru.yandex.yandexmapkit.overlay.location.MyLocationOverlay.getMyLocationItem() : ru.yandex.yandexmapkit.overlay.location.MyLocationItem [171] 238 invokevirtual ru.yandex.yandexmapkit.overlay.location.MyLocationItem.getBearing() : float [154] 241 invokevirtual al.a(float) : void [79] 244 aload_0 [this] 245 getfield ru.yandex.yandexmapkit.overlay.location.MyLocationOverlay.y : al [78] 248 aload_0 [this] 249 invokevirtual ru.yandex.yandexmapkit.overlay.location.MyLocationOverlay.getMyLocationItem() : ru.yandex.yandexmapkit.overlay.location.MyLocationItem [171] 252 invokevirtual ru.yandex.yandexmapkit.overlay.location.MyLocationItem.getPoint() : cp [156] 255 invokevirtual al.a(cp) : void [80] 258 aload_0 [this] 259 invokevirtual ru.yandex.yandexmapkit.overlay.location.MyLocationOverlay.getMapController() : ru.yandex.yandexmapkit.MapController [170] 262 invokevirtual ru.yandex.yandexmapkit.MapController.notifyRepaint() : void [140]
GeoPoint geoPoint = mMapController.getMapCenter(); // OverlayItem overlayItem = new OverlayItem(geoPoint, null); // cp, mMapController.getMapRotator().a(bearing); // mMapController.getMapRotator().a(overlayItem.getPoint()); //
MapController mMapController; MapView mMapView; mMapView = (MapView) findViewById(R.id.map); mMapController = mMapView.getMapController(); mMapController.getMapRotator().a(true); //
Source: https://habr.com/ru/post/167807/
All Articles