Feature request #12131

Assign no renderer to a layer - for label only layers

Added by Corey Burger about 2 years ago. Updated 12 months ago.

Status:Closed Start Date:02/04/2015
Priority:Normal Due date:
Assigned to:- % Done:

0%

Category:Symbology
Target version:Future Release - Nice to have
Platform: Resolution:
Platform version: Pull Request or Patch supplied:No
Status info: Tag:

Description

I am trying to create a label-only layer to show labels on another layer. However, if there are no styles shown, then the labels will not be drawn.

Associated revisions

Revision d464f862903184e94e01e4963e82e337efc4a388
Added by Nyall Dawson 12 months ago

[FEATURE] Null ("No symbol") renderer

Using this renderer no symbol will be drawn for features, but labeling,
diagrams and other non-symbol parts will still be shown.

Selections can still be made on the layer in the canvas and selected
features will be rendered with a default symbol. Features being edited
will also be shown.

This is intended as a handy shortcut for layers which you only want
to show labels or diagrams for, and avoids the need to render
symbols with totally transparent fill/border to achieve this.

(fix #12131)

History

Updated by Giovanni Manghi about 2 years ago

  • Status changed from Open to Closed
  • Resolution set to invalid

you are probably doing it wrong, see for example this

https://www.youtube.com/watch?v=Qof4oDLxcmE

please reopen if necessary. Cheers!

Updated by Corey Burger about 2 years ago

  • Status changed from Closed to Reopened

Although a low priority, I think this is a valid use case, primarily as creating discrete label-only classes is very useful at times (especially given you cannot create label classes right now).

Updated by Giovanni Manghi about 2 years ago

  • Status changed from Reopened to Feedback
  • Resolution deleted (invalid)

Corey Burger wrote:

Although a low priority, I think this is a valid use case, primarily as creating discrete label-only classes is very useful at times (especially given you cannot create label classes right now).

this is not related to the subject/description of this ticket(?). Seems more a different thing (a feature request), while you can certainly create layers with "no" symbology and use them as markers to pinpoint labels for other layers. Please leave feedback.

Updated by Corey Burger about 2 years ago

You are correct, however you have to create an empty symbology and then set it is any version of blank. Ideally, I would change the dropdown with "Single Symbol", etc. to have "No symbology" at the bottom, to make it easy to make a label-only layer.

Updated by Giovanni Manghi about 2 years ago

Corey Burger wrote:

You are correct, however you have to create an empty symbology and then set it is any version of blank. Ideally, I would change the dropdown with "Single Symbol", etc. to have "No symbology" at the bottom, to make it easy to make a label-only layer.

this is a good suggestion, but how it relates to this ticket title/description?

Updated by Corey Burger about 2 years ago

Sorry, that was a suggested implementation to the problem of needing to have a symbology defined for labels to show.

Updated by Nathan Woodrow about 2 years ago

  • Subject changed from Cannot create label-only layers to Assign no renderer to a layer - for layer only layers
  • Category set to Symbology
  • Target version set to Future Release - Nice to have

I agree this would be a handy thing to have. I have updated the ticket information. Nyall and I have talked about it in the past I don't recall there being a reason we couldn't do it.

Updated by Nathan Woodrow about 2 years ago

  • Tracker changed from Bug report to Feature request

Updated by Corey Burger about 2 years ago

Should the title be "label-only layers" not "label-only layers"?

Updated by Nathan Woodrow about 2 years ago

  • Subject changed from Assign no renderer to a layer - for layer only layers to Assign no renderer to a layer - for label only layers

Doh!

Updated by Nyall Dawson 12 months ago

  • Status changed from Feedback to Closed

Also available in: Atom