Class

mapkit.Padding

The values that define content padding within the map view frame.

Declaration

interface mapkit.Padding

Overview

Apply padding values to shrink the area represented by a frame. You use a Padding object when setting the map’s padding property or as an option of showItems. Positive values cause the frame to be inset (or shrunk) by the specified amount. Negative values are clipped to 0.

Topics

Creating Padding

mapkit.Padding

Creates a padding object, and initializes its inset margin properties.

PaddingConstructorOptions

Initial values of the edge insets for padding.

Padding Properties

bottom

The amount of padding, in CSS pixels, to inset the map from the bottom edge.

left

The amount of padding, in CSS pixels, to inset the map from the left edge.

right

The amount of padding, in CSS pixels, to inset the map from the right edge.

top

The amount of padding, in CSS pixels, to inset the map from the top edge.

See Also

Map View Customization

mapkit.FeatureVisibility

Constants indicating the visibility of different adaptive map features.