Feature request #3008

Reimplement map decorations as annotation widgets

Added by Tim Sutton over 6 years ago. Updated almost 3 years ago.

Status:Closed Start Date:
Priority:Low Due date:
Assigned to:Tim Sutton % Done:


Category:Map Canvas
Target version:Future Release - Nice to have
Platform:All Resolution:fixed/implemented
Platform version: Pull Request or Patch supplied:No
Status info:0 Tag:


Our plugins menu is cluttered already and some of the plugins would be better suited to being implemented as core functionality (e.g. scalebar, north arrow etc. For a long time I have wanted to implement the idea of mapwidgets - small widgets that can be dragged and arbitrarily placed on the map. Marco's mapannotation tools actually take us towards that idea nicely so I thought I would start reimplementing some decorations as subclasses of QgsMapAnnotation to get a feel of how suitable the api would be for generic widget api.

I'm attaching my first proof of concept for this (warning its still rough around the edges) which implements the scalebar as a widget. My idea to build out the widgets list at the upcoming hackfest in Wroclaw, Poland.

Also we should give some thought to making the implementation more generic (e.g. a special type of plugin?) so that it is not needed to do so many changes to app and gui for each new widget type.

I welcome comments and suggestions and will update the patch (with aim including in 1.6 if I can get it all polished nicely).


scalebarwidget_v1.diff - Patch for scalebar widget generated against r14228 (69.6 kB) Tim Sutton, 09/15/2010 03:46 am


Updated by Giovanni Manghi over 5 years ago

  • Target version changed from Version 1.7.0 to Version 1.7.4

Updated by J├╝rgen Fischer about 5 years ago

  • Status changed from Open to Feedback
  • Pull Request or Patch supplied set to No

Meanwhile the plugins were integrated to app - my guess is that this is done.

Updated by Giovanni Manghi about 5 years ago

  • Target version changed from Version 1.7.4 to Version 2.0.0

Updated by Pirmin Kalberer over 4 years ago

  • Target version changed from Version 2.0.0 to Future Release - Nice to have

Updated by Giovanni Manghi almost 3 years ago

  • Status changed from Feedback to Closed
  • Resolution set to fixed/implemented

Also available in: Atom