camera For Geometry
Convert to a camera options from a given geometry, padding, bearing and pitch values.
In order for this method to produce correct results MapView must be already measured and inflated to have correct width and height values. Calling this method in Activity.onCreate will lead to incorrect results.
This API isn't supported by Globe projection and will return a no-op result matching the current camera center. See com.mapbox.maps.extension.style.projection.generated.setProjection and com.mapbox.maps.extension.style.projection.generated.getProjection
Return
Returns the converted camera options
Parameters
The geometry to take in account when converting
The additional padding to take in account when converting
The optional bearing to take in account when converting
The optional pitch to take in account when converting