Zoom to the extent of the selected features of current (vector) layer.

mapCanvas.zoomToSelected(layer = NULL, ...)

Arguments

layer

optionally specify different than current layer (can be either the layer ID or a qgislayer() object)

...

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

Value

The new scale of the canvas (numeric).