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

Very poor performance with KML transparency #241

Open
f00dl3 opened this issue Aug 25, 2016 · 4 comments
Open

Very poor performance with KML transparency #241

f00dl3 opened this issue Aug 25, 2016 · 4 comments
Labels

Comments

@f00dl3
Copy link

f00dl3 commented Aug 25, 2016

When setting a KML to have a alpha color value, the L.KML will render the KML layer transparent, but it suffers severe performance issues.

If the KML is referencing a animated GIF, the animation is not smooth - even on a 8-core 4790k w/ 16 GBs of RAM and Ubuntu 16.04. Performance is even worse on Android. Without the override in the KML, performance is smooth. It's the alpha transparency that causes the issues.

Let me know what if any logs could be of use to help isolate why KML transparency / alpha is such a CPU hog...

@brunob
Copy link
Collaborator

brunob commented Aug 26, 2016

Do you play with a simple placemark icon or a groundoverlay ? I think it would be same if you put your gif as a simple image overlay since it's what is doing the kml script on leaflet map.

@f00dl3
Copy link
Author

f00dl3 commented Aug 26, 2016

@brunob
Copy link
Collaborator

brunob commented Aug 26, 2016

As i said, groundoverlay use a simple image overlay, so i'm pretty sure that your map would be laggy with the same image as a leaflet image overlay. Can you try this on a fiddle ?

@brunob
Copy link
Collaborator

brunob commented Aug 26, 2016

Just tested your kml, and from my side it works well and smoothly...

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