keepViewportWithinData property

bool 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;
void keepViewportWithinData=(bool keep)

Implementation

set keepViewportWithinData(bool keep);