cameraForCoordinateBounds

Convenience method that returns the `camera options` object for given parameters.

Return

The `camera options` object representing the provided parameters.

Parameters

bounds

The `coordinate bounds` of the camera.

padding

The amount of padding in pixels to add to the given bounds.

bearing

The bearing of the camera.

pitch

The pitch of the camera.

maxZoom

The maximum zoom level allowed in the returned camera options.

offset

The center of the given bounds relative to map center in pixels.