[Qgis-developer] ZoomToLayer doesn't work

luca_manganelli at comune.trento.it luca_manganelli at comune.trento.it
Fri Mar 20 04:39:21 EDT 2009


Hi,

I discovered that ZoomToLayer function doesn't work if the layer with
selected features is not "selected in the list of layers".
I do this:

                    mapCanvas=self.iface.mapCanvas()
                    mapCanvas.setExtent(lay.extent())
                    mapCanvas.zoomToSelected()
                    mapCanvas.refresh()

how can I select that layer?



More information about the Qgis-developer mailing list