Home > @magiclane/maps-sdk > GemView > viewport

GemView.viewport property

The current viewport of the map view.

Fields RectType.x and RectType.y are 0 as they are measured from the top left corner of the map view. Fields RectType.width and RectType.height are the width and height of the map view in physical pixels.

To get the associated RectangleGeographicArea, use the appropriate coordinate transformation method.

Signature:

get viewport(): RectType<number>;