Created a map. Added buttons to control, but I can not find methods for zooming and centering the screen. That's about what happened:
private final Point DRIVER_POSITION = new Point(56.844213, 53.242305); private final Point CLIENT_POSITION = new Point(56.8710986, 53.2867346); private final Point SCREEN_CENTER = new Point( (DRIVER_POSITION.getLatitude() + CLIENT_POSITION.getLatitude()) / 2, (DRIVER_POSITION.getLongitude() + CLIENT_POSITION.getLongitude()) / 2); private float zoom = 11.0f, azimuth = 0.0f, tilt = 0.0f; ... @Override protected void initViews() { presenter.loadData(); mapObjects = mapView.getMap().getMapObjects().addCollection(); //createMapObjects(); zoomUp.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { mapView.getMap().move(new CameraPosition( SCREEN_CENTER, getZoom()+1, azimuth, tilt)); } }); zoomDown.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { mapView.getMap().move(new CameraPosition( SCREEN_CENTER, getZoom()-1, azimuth, tilt)); } }); positionButton.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { //// } }); } ..... @Override public void showDefaultData(String balance, String lat, String lon) { tvBalance.setText(balance); mapView.getMap().move( new CameraPosition(new Point(Double.valueOf(lat), Double.valueOf(lon)), zoom, azimuth, tilt), new Animation(Animation.Type.SMOOTH, 0), null); mapView.getMap().move(new CameraPosition( SCREEN_CENTER, zoom-6, azimuth, tilt)); drivingRouter = MapKitFactory.getInstance().createDrivingRouter(); mapObjects = mapView.getMap().getMapObjects().addCollection(); submitRequest(); showPosition(); } What am I doing wrong? I studied the documentation, but I could not figure it out;