Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make labels follow layer z-order #17889

Open
qgib opened this issue Jan 1, 2014 · 8 comments
Open

Make labels follow layer z-order #17889

qgib opened this issue Jan 1, 2014 · 8 comments
Labels
Feature Request Symbology Related to vector layer symbology or renderers

Comments

@qgib
Copy link
Contributor

qgib commented Jan 1, 2014

Author Name: Noone Noone (Noone Noone)
Original Redmine Issue: 9277

Redmine category:symbology


Hi, I guess I found a small bug in label rendering:

Usually a layer is hidden, if add a raster layer on top, so it's rendered below the other layer (or skip rendering). Unfortunatly, if you add a raster layer above an existing vector layer with labels enabled, the symbolizers get hidden as expected, but the labels not :(

QGIS_labels_order_2.png


@qgib
Copy link
Contributor Author

qgib commented Jan 1, 2014

Author Name: Giovanni Manghi (@gioman)


Hi,

this is not a bug but rather a feature. I guess that the main purpose is to allow show labels of features without having necessarily to show the feature or have to make a layer entirely transparent.


  • status_id was changed from Open to Closed
  • resolution was changed from to invalid

@qgib
Copy link
Contributor Author

qgib commented Jan 1, 2014

Author Name: Noone Noone (Noone Noone)


I'm ok to keep is a (optional) feature, but please be aware that this is completely unexpected behavior, as the user keeps the association layer->label and this behaviour breaks this association and so the rendering looks corrupted from this POV.

@qgib
Copy link
Contributor Author

qgib commented Jan 1, 2014

Author Name: Giovanni Manghi (@gioman)


noone noone wrote:

I'm ok to keep is a (optional) feature, but please be aware that this is completely unexpected behavior, as the user keeps the association layer->label and this behaviour breaks this association and so the rendering looks corrupted from this POV.

it is so unexpected? how other gis software works in this sense?

@qgib
Copy link
Contributor Author

qgib commented Mar 7, 2014

Author Name: Markus Straub (@EvoD)


I would like to reopen this bug since this is a feature I miss as well.

Both behaviours have their use cases.
The current behaviour (drawing labels on top of all layers) is useful for most cases.

The additionally desired behaviour of labels having the same z-order as its parent layer is useful e.g. if we want to create a background map (e.g. a street graph with street names as labels) and then draw more important data on top. The layer on top is then not be "disturbed" by low-priority street names. (This way we would be able to create a background map that behaves exactly like maps added via the OpenLayers plugin.)


  • status_id was changed from Closed to Reopened

@qgib
Copy link
Contributor Author

qgib commented Apr 30, 2017

Author Name: Giovanni Manghi (@gioman)


  • easy_fix was configured as 0
  • regression was configured as 0

@qgib
Copy link
Contributor Author

qgib commented Mar 1, 2018

Author Name: Giovanni Manghi (@gioman)


Please test with a recent QGIS release (2.18 or 3), if the issue/request is still valid change the affected version accordingly, if is fixed/implemented then close the ticket. Thanks!


  • status_id was changed from Reopened to Feedback

@qgib
Copy link
Contributor Author

qgib commented Aug 16, 2018

Author Name: Giovanni Manghi (@gioman)


  • status_id was changed from Feedback to Open
  • tracker_id was changed from 1 to 2
  • subject was changed from Labels don't follow layer z-order to Make labels follow layer z-order
  • description was changed from Hi, I guess I found a small bug in label rendering:

Usually a layer is hidden, if add a raster layer on top, so it's rendered below the other layer (or skip rendering). Unfortunatly, if you add a raster layer above an existing vector layer with labels enabled, the symbolizers get hidden as expected, but the labels not :(

!QGIS_labels_order_2.png! to Hi, I guess I found a small bug in label rendering:

Usually a layer is hidden, if add a raster layer on top, so it's rendered below the other layer (or skip rendering). Unfortunatly, if you add a raster layer above an existing vector layer with labels enabled, the symbolizers get hidden as expected, but the labels not :(

!QGIS_labels_order_2.png!

  • resolution was changed from invalid to

@qgib qgib added Feature Request Symbology Related to vector layer symbology or renderers labels May 24, 2019
@qgib qgib added this to the Future Release - High Priority milestone May 24, 2019
@pathmapper
Copy link
Contributor

Just came across this (#51448), it's kind of unexpected if the raster layer covers the whole vector layer. So an option for having the labels matching the layer order would be nice.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature Request Symbology Related to vector layer symbology or renderers
Projects
None yet
Development

No branches or pull requests

2 participants