--- layout: example.html title: View Padding shortdesc: This example demonstrates the use of the view's padding option. docs: > This example demonstrates how a map's view can be configured to accommodate for viewport space covered by other elements. If the map viewport is partially covered with other content (overlays) along its edges, the `padding` option allows to shift the center of the viewport away from that content. The shifted viewport center will also be the anchor for zooming in and out with the Zoom controls, and for rotating.

Use Alt+Shift+Drag to rotate the map.

tags: "center, padding, view, shift" ---