Skip to content

Camera Control

There are multiple ways to control the Camera Position in Mappls SDKs. Following are the methods tha you can use:

Move To Target

This method allows to move the camera towards the target location.

controller.moveCamera(CameraUpdate.newLatLng(LatLng(latitude, longitude)));

Move To Target with Zoom

This method allows to move the camera towards the target location with a fixed zoom.

controller.moveCamera(CameraUpdate.newLatLngZoom(LatLng(latitude, longitude), zoom));

Move To Bound

This method allows to move the camera towards the target location with view bounds.

const bounds = LatLngBounds(northeast: LatLng(x1!, y1!), southwest: LatLng(x0!, y0!));
controller.moveCamera(CameraUpdate.newLatLngBounds(bounds, top: 40, left: 40, bottom: 40, right: 40));

Zoom To

This method allows to zoom the camera to a particular zoom-level. Example, 18/14 etc.

controller.moveCamera(CameraUpdate.zoomTo(zoom));

Zoom By

This method allows to zoom the camera to a particular zoom by some amount of zoom level

controller.moveCamera(CameraUpdate.zoomBy(zoom));

Zoom In

This method allows to zoom in.

controller.moveCamera(CameraUpdate.zoomIn());

Zoom Out

This method allows to zoom out.

controller.moveCamera(CameraUpdate.zoomOut());

For any queries and support, please contact:

Email us at apisupport@mappls.com

Support Need support? contact us!



@ Copyright 2025 CE Info Systems Ltd. All Rights Reserved.