LazarilloMapCameraConfig
class LazarilloMapCameraConfig(fromJSONObject: JSONObject)Configuration for a LazarilloMap camera position update, parsed from a JSON object.
This class encapsulates all camera parameters needed to reposition the map view, including the center coordinate, zoom level, tilt angle, compass bearing, and animation settings. All properties are optional; only the values present in the JSON will be applied when updating the camera, leaving other camera parameters unchanged.
See also
| LazarilloMap |
Throws
| InvalidArgumentsError | If a "coordinate" is provided but missing "lat" or "lng". |
Constructors
LazarilloMapCameraConfig | constructor(fromJSONObject: JSONObject ) |
Properties
angle
var angle: Double?Camera tilt angle in degrees from the nadir (straight-down). 0 is looking directly down. Null leaves the current angle unchanged.
animate
var animate: Boolean?Whether to animate the camera transition. Null uses the default behavior.
animationDuration
var animationDuration: Int?Duration of the camera animation in milliseconds. Only used when animate is true. Null uses the default duration.
bearing
var bearing: Double?Compass bearing of the camera in degrees (0 = north, 90 = east). Null leaves the current bearing unchanged.
coordinate
var coordinate: LatLng?Types: LatLng
Geographic coordinate to center the camera on. Null leaves the current center unchanged.
zoom
var zoom: Double?Map zoom level. Higher values zoom in closer. Null leaves the current zoom unchanged.