[Qgis-developer] Rendering a map in QgsComposition on Win 7 / 8

Nyall Dawson nyall.dawson at gmail.com
Thu May 8 03:39:48 PDT 2014


On 8 May 2014 20:23, pgierski <pgierski at o2.pl> wrote:

>
> composerMap = QgsComposerMap(c,
> 14.7026,113.85,map_width_on_print_mm,map_height_on_print_mm)
> composerMap.setFrameEnabled(True)
> composerMap.setFrameOutlineWidth(0.5)
> c.addItem(composerMap)

What if you try explicitly setting composerMap's extent here? ie,
composerMap.setNewExtent(rect)

Nyall


More information about the Qgis-developer mailing list