Skip to content

Latest commit

 

History

History
76 lines (53 loc) · 3.44 KB

File metadata and controls

76 lines (53 loc) · 3.44 KB

Camera Control

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

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

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

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

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

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));

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

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

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

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

This method allows to zoom in.

controller.moveCamera(CameraUpdate.zoomIn());

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.