Skip to Content
API ReferenceMapLazarilloMapPadding

LazarilloMapPadding

class LazarilloMapPadding(fromJSONObject: JSONObject)

Configures map viewport padding (in pixels) to offset the visible area of a LazarilloMap.

Padding creates an inset region around the map edges where content remains visible but the effective center and zoom calculations are adjusted. This is useful when UI elements such as bottom sheets, toolbars, or side panels overlap the map, ensuring that markers, routes, and camera animations account for the obscured areas.

All values default to 0 (no padding) and are parsed from the provided JSONObject .

See also

LazarilloMap

Constructors

LazarilloMapPaddingconstructor(fromJSONObject: JSONObject )

Properties

bottom

var bottom: Int

Padding in pixels from the bottom edge of the map view. Defaults to 0.

left

var left: Int

Padding in pixels from the left edge of the map view. Defaults to 0.

var right: Int

Padding in pixels from the right edge of the map view. Defaults to 0.

top

var top: Int

Padding in pixels from the top edge of the map view. Defaults to 0.

Last updated on