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
LazarilloMapPadding | constructor(fromJSONObject: JSONObject ) |
Properties
bottom
var bottom: IntPadding in pixels from the bottom edge of the map view. Defaults to 0.
left
var left: IntPadding in pixels from the left edge of the map view. Defaults to 0.
right
var right: IntPadding in pixels from the right edge of the map view. Defaults to 0.
top
var top: IntPadding in pixels from the top edge of the map view. Defaults to 0.