-
Notifications
You must be signed in to change notification settings - Fork 32
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
Polygons are deformed #93
Comments
This is still a problem in the underlying library |
Ok, I see. Thanks for the quick reply and the reference to the underlying problem. |
No worries :) but let's keep it open, as it's still a bug in this library aswell. |
I have an open pull request on the leaflet.glify repo which should solve this issue robertleeplummerjr/Leaflet.glify#138 Until this pull request gets reviewed, I have a fork of the leafgl package with this fix implemented.
|
Awesome. It works great for me. It seems to be a bit slower, but the performance is still good for several hundred thousand polygons. Just out of interest: What exactly did you change and where? Did you move the origin of the map to the center of the displayed area? |
That's good. Tbh, the performance difference really should be negligible. I may have added some other things to the fork which may be affecting performance, though I can't quite remember. You can see the changes made and explanations in the pull request links above. Essentially, normalising some of the pixel coordinates around (0, 0) in the underlying library seems to fix the issue. |
Thank you very much! |
Hi,
first of all I would like to thank you for the great libary, which significantly increases the performance of my maps.
Unfortunately, I have a small problem with the display of my polygons.
Map without LeafGL:
Map section with LeafGL:
The code I'm using looks like:
And when I'm using leafgl I just change it to "addGlPolygons" and use "leafglOutput" instead of my "leafletOutput".
Also, my highlightOptions don't work anymore when using addGlPolygons. Is there a way to make them work?
Thanks in advance!
The text was updated successfully, but these errors were encountered: