setPadding

open fun setPadding(left: Int, top: Int, right: Int, bottom: Int)

Deprecated

Use padding or paddingTo instead.

Sets the distance from the edges of the map view's frame to the edges of the map view's logical viewport.

When the value of this property is equal to {0,0,0,0}, viewport properties such as 'centerCoordinate' assume a viewport that matches the map view's frame. Otherwise, those properties are inset, excluding part of the frame from the viewport. For instance, if the only the top edge is inset, the map center is effectively shifted downward.

This method sets the padding "lazily". This means that the padding is going to be applied with the next camera transformation. To apply the padding immediately use padding or paddingTo.

Parameters

left

The left margin in pixels.

top

The top margin in pixels.

right

The right margin in pixels.

bottom

The bottom margin in pixels.