zoomToRect

fun zoomToRect(rect: GeoRect, redraw: Boolean)

Performs a zoom operation inside the specified real rectangular double precision area.

Parameters

rect

The new real rectangular limits of SVS objects to project on screen.

redraw

A flag that indicates whether the view must be redrawn or not.


fun zoomToRect(rect: GeoRect, pt1: Point, pt2: Point, inflate: Double = 1.0, redraw: Boolean)

Performs a zoom operation so that rect will be entirely visible within the screen limits defined by pt1 and pt2

Parameters

rect

The new real rectangular limits of SVS objects to project on screen.

pt1

First screen coordinate point.

pt2

Second screen coordinate point.

inflate

An inflate coefficient to apply to rect to increase (<1.0) or decrease (>1.0) it's size.

redraw

A flag that indicates whether the view must be redrawn or not.