-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
KMZ loads fine, onFeatureClick callback sometimes brings null features #742
Comments
Are you able to share the .kmz file to help us repro this? |
In order to reproduce, load it, check the feature, clear the map, remount kml, recheck feature. Repeat |
i also implemented an asynctask for rendering (constructor) and it has the same result... randomly i get no property |
Confirmed that I'm able to reproduce this issue. Digging into it 🔍 |
Seems like the issue is that the KMLLayer does not deterministically add KMLFeatures in the same order. Since your KMZ file contains overlapping polygons, this presents as an issue wherein tapping on the same region clicks different polygons (depending on which polygon was added last in an overlapping region). You can validate this by checking out the KML demo in the demo app on my branch |
Any ideas? Imma also build library from scratch in order to find something |
Do you have control over the KMZ file? Easiest workaround is to make sure there are no overlapping layers. Otherwise, the solution would be to ensure that KML parsing and adding layers to the map should be deterministic in order for the same file. |
good evening and sorry for the delayed answer. No i do not have control over the kml. Sorry |
Summary
Loading KMZ works perfectly but onFeatureClick callback, sometimes brings null property.
same kmz with same feature all the time, sometimes it says that property is null.
actually,
triggers
Environment details
Steps to reproduce
seems kinda random.thats why i cant debug it
Code example
The text was updated successfully, but these errors were encountered: