Re: [Qgis-developer] QgsRubberband does not draw polygons(python)

2013-04-08 Thread vinayan
thanks to Salvatore's help on irc, i got over this issue. apparently the 'isPolygon' method was deprected.. here is the snippet that worked.. mCanvas = iface.mapCanvas() rb = QgsRubberBand(mCanvas,QGis.Polygon) rb.addPoint(QgsPoint(300,300)) rb.addPoint(QgsPoint(400,400)) rb.addPoint(QgsPoint(40

[Qgis-developer] QgsRubberband does not draw polygons(python)

2013-04-08 Thread vinayan
Hi, I am simply stuck at a seemingly simple issue. I want to create a polygon rubberband. But even after setting the isPolygon in the constructor to 'True', it is creating a polyline rubberband. I am using latest master version. Here is what i tried in the python console. pastebin link