Hi, thanks for your answer. Seems memory layer is the only way to go. Best regards
On Sun, 23 Sep 2018 at 22:38, Tim Sutton <[email protected]> wrote: > Hi Adam > > I think the idiomatic way to do this would be to rather make (convert > rubber bands to) a memory layer with some features that you need displayed > for printing and then remove it again after the print is done (aka a > redlining layer). > > Regards > > Tim > > On 23 Sep 2018, at 15:45, Adam Borczyk <[email protected]> > wrote: > > Hello everyone, > I'm automating map printing in PyQGIS 3 and encountered an issue with > QgsRubberband - the rubberband is not visible on map rendered from composer. > > I guess there is a good reason to not to include it, but is there a way to > do so anyway? I just need to mark a very temporary polygon on the map and > place it on exported layout, so creating a memory layer for just one, small > polygon seems to be an overkill for me. > > Currently I load a QPT file into QgsLayout and have QgsLayoutItemMap item > in there. Everything renders fine except for the rubberband. I'd appreciate > any hints on that. > > Best regards > Adam Borczyk > _______________________________________________ > QGIS-Developer mailing list > [email protected] > List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer > Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer > > > — > > > > > > > > *Tim Sutton* > > *Co-founder:* Kartoza > *Ex Project chair:* QGIS.org > > Visit http://kartoza.com to find out about open source: > > Desktop GIS programming services > Geospatial web development > GIS Training > Consulting Services > > *Skype*: timlinux > *IRC:* timlinux on #qgis at freenode.net > >
_______________________________________________ QGIS-Developer mailing list [email protected] List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer
