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

Leads not drawing on map using the move function #5

Open
pelatyre opened this issue Dec 16, 2014 · 13 comments
Open

Leads not drawing on map using the move function #5

pelatyre opened this issue Dec 16, 2014 · 13 comments
Assignees
Labels

Comments

@pelatyre
Copy link

While using QGIS 2.6.1 and the EasyCustomLabeling v1.3.2 plugin - I am unable to have leads show up on the map. I am able to create the centroids with the correct label names (as per the instructions). However when I try to move the labels, the leads show up temporarily (in red) but then disappear when I place the label in the new location. I have installed the Memory Layer Saver as mentioned in the instructions. I have looked at all existing issues and have not been able to find a resolution.

I am using WIndows 7 Enterprise - 64-bit.

Thank you

@haubourg haubourg added the bug label Dec 17, 2014
@haubourg
Copy link
Owner

Thanks for your feedback, I didn't have time to solve 2.6 issues yet.

@pelatyre
Copy link
Author

Thank you for the response. As additional information, I had the same problem with previous versions of qgis. I am going to try a previous version of qgis to see if I can replicate the problem.

@pelatyre
Copy link
Author

Just as an FYI - I experience the same problem in 2.4. Thank you

@haubourg
Copy link
Owner

haubourg commented Jan 5, 2015

Hi, and happy new year,
Bug confirmed here if labeled layer is renamed to something not starting with "label_". There is a tag added in layer's metadata to identify it if layer is renamed, but it seems to fail.
temporary workaround: rename layer with "label_" at the beginningof the layer name.

haubourg pushed a commit that referenced this issue Jan 5, 2015
@haubourg
Copy link
Owner

haubourg commented Jan 5, 2015

Could you test with the new version of EasyCustomLabeling.py (just copy and overwrite existing one in your qgis profile). It solves the issue here, but it's unclear why.

@haubourg haubourg self-assigned this Jan 5, 2015
@pelatyre
Copy link
Author

pelatyre commented Jan 5, 2015

Hello and Happy New Year to you as well. I have tried the new version of EasyCustomLabeling.py but with the same results. I have not been changing the layer names. I am following the instructions very closely and I still cannot get the leaders to show. Do you have any other suggestions?

Thank you

@pelatyre
Copy link
Author

pelatyre commented Jan 5, 2015

A quick update. After some testing, I have discovered that once I move the label, then select Label Properties -> and select the "Show label" box off then back on - the label shows correctly (until I move it again). Strange behaviour. Hope this helps.

@haubourg
Copy link
Owner

haubourg commented Jan 6, 2015

Thanks for testing, I suspect some refresh problem for layer symbology, maybe coming from other interfering plugins. Could you make the following test ?

  • open layer properties / symbol properties
  • on su symbol, open "data defined properties" button
  • uncheck expression set on dashed pattern.

FYI, this expression is a trick to hide callout line if dedicated field ShowCA is set to 0.

@pelatyre
Copy link
Author

pelatyre commented Jan 6, 2015

So I tried what you suggested and when I opened the "data defined properties" the "dashed pattern" box was already unchecked. However the "color box" was checked. When I unchecked it, it worked as expected. The leaders all showed up properly without having to change the setting in the "Show Label" box. I have included a screenshot to show what the "color box" was set to.

datadefinedprop

@haubourg
Copy link
Owner

haubourg commented Jan 6, 2015

Ok, I will disable that option in next version then. Remains to understand why graphical refresh does not behave the same way on every QGIS. On what platform are you working? Launching QGIS with no plugin except EasyCustomlabeling and memory layer saver still trigger the problem?

@pelatyre
Copy link
Author

pelatyre commented Jan 7, 2015

I am working on Windows 7 Enterprise - 64-bit. I also tried your suggestion of disabling all plugins with the exception of EasyCustomLabeling nd Memory Layer Saver with the same results. It did not change anything.

@haubourg
Copy link
Owner

haubourg commented Jan 7, 2015

Sorry to have you make so much testing, I really never reproduce that since I change the code yesterday. There is a new version of EasyCustomLabeling.py now that tries to trigger better layer refresh and solves some deprecations warnings for 2.6 versions. Can you test it ?

@haubourg haubourg closed this as completed Jan 7, 2015
@haubourg haubourg reopened this Jan 7, 2015
@pelatyre
Copy link
Author

pelatyre commented Jan 7, 2015

No worries on the testing - glad to do it. I have tried the new code and the problem persists. I am quite happy with the temporary fix and can close this issue if you wish. However if you wish for me to continue testing, I am more than happy to.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants