keepViewportWithinData property

bool get keepViewportWithinData

Keeps the scale and translate sane if true (default).

Setting this to false disables some pan/zoom protections that prevent you from going beyond the data extent.

Implementation

bool get keepViewportWithinData;
set keepViewportWithinData (bool keep)

Implementation

set keepViewportWithinData(bool keep);