[Qgis-developer] How to change layer without redrawing the whole
map
Martin Dobias
wonder.sk at gmail.com
Wed Nov 2 09:15:05 EDT 2011
On Wed, Nov 2, 2011 at 7:27 AM, Marco Hugentobler
<marco.hugentobler at sourcepole.ch> wrote:
> Hi Jonny
>
> One possibility to handle this is to create a subclass of QgsMapCanvasItem
> to display the car symbols. That way, the QGIS background map is not
> re-rendered if the items change position.
Right. For the start you may use QgsVertexMarker class which is
derived from QgsMapCanvasItem. Simply create it and set (and update)
the position (in map coordinates).
Martin
More information about the Qgis-developer
mailing list