Hi Martin, I'm sorry to ask you again. I looked up QgsRubberBand class, it has 5 Geometry types: Point, Line, Polygon, UnknownGeometry, NoGeometry. It seems there's no way to add a svg symbol as a car icon on the map, or I was on a wrong way? Here is some questions: 1, How to add a svg symbol as a instance's icon? I tried QgssvgmarkerSymbolLayerV2 class, but it didn't display. 2, How to draw a line or polygon using QgsRubberBand? I constructed a QgsRubberband instance, set some attributes, however it was not display. Sorry to bother you. Best RegardsBob > Date: Tue, 19 Aug 2014 10:44:04 +0700 > Subject: Re: [Qgis-developer] Is QGIS supports dynamic display? > From: [email protected] > To: [email protected] > CC: [email protected] > > Hi Bob > > QGIS allows you to have dynamic objects on top of map canvas. These > objects are called map canvas items, having QgsMapCanvasItem as a base > class. You can either implement your own item or use an existing > implementation, e.g. QgsRubberBand class (used for example to > highlight features when doing identification). In your case, you could > have one QgsRubberBand instance and just change its position on map > whenever appropriate. > > Cheers > Martin > > > On Mon, Aug 11, 2014 at 9:11 AM, 腾飞 牛 <[email protected]> wrote: > > Dear all, > > I'm a new developer of QGIS using C++. I am doing a project which needs > > dynamically displaying maps/layers(just like GPS,layers automatically > > refreshing with the changing of object's position).I kown ARCGIS has the > > technique called dynamic diasplay(or something like that),which supports the > > capacity to do such things. Is QGIS has this ability? Any advices would be > > appreciated! > > > > Regards > > Bob > > > > _______________________________________________ > > Qgis-developer mailing list > > [email protected] > > http://lists.osgeo.org/mailman/listinfo/qgis-developer
_______________________________________________ Qgis-developer mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/qgis-developer
