Maps API for JavaScript Developer's Guide

H.map.ViewPort.Options

Type Definition Summary

Viewport initialization options.

[ For full details, see the Type Definition Details ]

Property Summary

Table 1. Properties
Properties

margin

The size in pixel of the supplemental area to render for each side of the map

padding

The padding in pixels for each side of the map

fixedCenter

Indicates whether the center of the map should remain unchanged if the viewport's size or padding has changed, default is true

Type Definition Description

Viewport initialization options.

Property Details

margin: {number=} [optional]

The size in pixel of the supplemental area to render for each side of the map

padding: {H.map.ViewPort.Padding=} [optional]

The padding in pixels for each side of the map

fixedCenter: {boolean=} [optional]

Indicates whether the center of the map should remain unchanged if the viewport's size or padding has changed, default is true