sdk-maps / com.tomtom.online.sdk.map / MapManipulationExtension / setPadding

setPadding

@DeprecatedSince(2020, 2) abstract fun setPadding(top: Double, left: Double, bottom: Double, right: Double): Unit

Sets padding for the map in pixels. Changing map padding does not have an immediate effect on the map. It will be applied with the next map operation.

Parameters

top - Double: Top map padding in pixels.

left - Double: Left map padding in pixels.

bottom - Double: Bottom map padding in pixels.

right - Double: Right map padding in pixels.

abstract fun setPadding(mapPadding: MapPadding!): Unit

Sets padding for the map in pixels using MapPadding class. Changing map padding does not have an immediate effect on the map. It will be applied with the next map operation.

Parameters

mapPadding - MapPadding!: Padding from each side of the map in pixels.