PaddingOptions
PaddingOptions =
object
Defined in: geo/edge_insets.ts:142
Options for setting padding on calls to methods such as Map#fitBounds, Map#fitScreenCoordinates, and Map#setPadding. Adjust these options to set the amount of padding in pixels added to the edges of the canvas. Set a uniform padding on all edges or individual values for each edge. All properties of this object must be non-negative integers.
Examples
let bbox = [[-79, 43], [-73, 45]];
map.fitBounds(bbox, {
padding: {top: 10, bottom:25, left: 15, right: 5}
});
See
Properties
bottom
bottom:
number
Defined in: geo/edge_insets.ts:150
Padding in pixels from the bottom of the map canvas.
left
left:
number
Defined in: geo/edge_insets.ts:158
Padding in pixels from the right of the map canvas.
right
right:
number
Defined in: geo/edge_insets.ts:154
Padding in pixels from the left of the map canvas.
top
top:
number
Defined in: geo/edge_insets.ts:146
Padding in pixels from the top of the map canvas.