Before QgsMapRenderer
was deprecated if we wanted to activate OTF we used code like this:
canvas = QgsMapCanvas()
canvas.mapRenderer().setProjectionsEnabled(True)
Currently, QgsMapRenderer
is divided into two classes QgsMapSettings
and QgsMapRendererJob
. I did some research, but with no success. So how we can achieve the same now?