Zoom to the given feature extent.

mapCanvas.setExtent(rect, ...)

Arguments

rect

the rectangular extent to zoom to (a numeric vector in the order xmin, ymin, xmax, ymax)

...

low-level parameters (such as host and auth) to be passed on to qgisremote()

Value

The new scale of the canvas (numeric).