padding
The map’s inset margins.
Declaration
get padding(): Padding;
set padding(padding: Padding);Mentioned in
Discussion
The padding affects the map’s controls layout. The map computes the region it draws to fit within the inset frame that the padding specifies.
MapKit JS computes the visibleMapRect to fit within the inset frame with the constraint that the entire, noninset frame needs to be able to contain map data as well. Using the showItems(items, options) method ensures that all annotations and overlays are visible within the inset frame. The map modifies the region when displaying an annotation’s callout to ensure it’s entirely visible within the inset frame.