-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
Label that has data defined position is rendered even if it is outside the map canvas #42990
Comments
@Forna73 please attach a sample project+sample data that can be used to replicate locally what you show here above. |
@gioman This is quite a classic case, have any maps with data defined labels, when the coordinate of the label is outside of the canvas and the geometry is within, the label will use the center point but the callout line will remain. |
labels_along_borders.zip |
It's seems like:
|
I just tested my files with old Qgis 3.10.8.... and it doesn't show this behavior. |
@Forna73 I'm getting the expected result by disabling "show all labels for this layer (including colliding labels)". Please try. |
I can't do that, because in that way qgis doesn't show labels that I need. |
Use an expression to control label render if the option is too much. |
@Forna73 the change could have been introduced by design. I suggest you to raise the question on the developers mailing list. |
I don't know how to proceed....
Don't know how to do.... |
@Forna73 https://lists.osgeo.org/mailman/listinfo/qgis-developer |
@gioman I think gis stackexchange would be a better place to search and ask to search and ask for such things. As it would benefit other users with this issue. |
@roya0045 about the expression, yes. What I meant is that is better to write in the list to understand of the change was introduced by design. |
HI... I wrote to the mailing list and gis stackexchange. I've also found this... I thinks it's related to this problem I'm still trying to understand but I think that some kind of bug in this automatic behavior? |
@Forna73 I have seen the message. Suggestion: next time describe the problem in the message rather than just linking the Github ticket, this would raise your chances that someone will answer you (not saying that no one will).
Your labels position is data defined, so that option(s) are likely to be ignored. |
It seems nobody is interested in this problem... |
@Forna73 what you are expecting? if this is issue is blocking for your workflow you should think about hiring a dev that can fix it for you, unless you can propose a patch. And this is assuming that this change was not introduced by design (something I'm not really sure about). |
@gioman I think this is an intended fallback. This is why I think an expression would be adequate to bypass the fallback. |
Can you give me any example? |
|
mhm... i can't figure out how to apply such kind of expression... I'm not so good... |
The QGIS project highly values your report and would love to see it addressed. However, this issue has been left in feedback mode for the last 14 days and is being automatically marked as "stale". |
While we hate to see this happen, this issue has been automatically closed because it has not had any activity in the last 42 days despite being marked as feedback. If this issue should be reconsidered, please follow the guidelines in the previous comment and reopen this issue. |
Hi!
![A](https://user-images.githubusercontent.com/12034365/116277227-8e9bdb80-a785-11eb-8d8f-ff63d6305617.jpg)
I'm on QGis 3.16.6.
I'm sorry but I don't know how to classify this post, if a feature request, a bug or something else...
I'm using labels set in a way that their positions are determined by X,Y coordinates, because I need them in THAT position to avoid overlap with TENs of other labels (not included in the pic below to simplify the explanation of this behavior).
I created a map windows in Print Layout as you can see in A
If I shift the map windows content it could happens that some labels are outside the borders, and they should disappear from the map window bacause their X,Y position, but Qgis still shows them if the related geometry is still present in the map window, and put without even trying to prevent them from overlapping each other (LIP333 along North border, LIP88A, LIP88B along south border). and also in way it seems around the centroid of the visible polygon (LIR82 along East border, LIP3 along West border), all regardless of the chosen positioning mode (Horizontal, offset, etc...)
![B](https://user-images.githubusercontent.com/12034365/116277525-da4e8500-a785-11eb-97cb-03b65f326c76.jpg)
Is there a way to prevent this behavior? I'd like to let labels out of the map window if their positions aren't included. What is the use of setting coordinates if Qgis does what it wants?
The text was updated successfully, but these errors were encountered: