Leaflet PIP not Returning all Results
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 202
- Forks
- 44
- PR merge metrics
- No merged PRs in 30d
Description
I have a scenario where leaflet-pip will not return any data when you click on certain polygons, but when you click on another polygon it does return correct data. All of the polygons I'm referencing are in a GeoJson layer.
An example is here: http://livestormchasing.com/dev, and try clicking on all of the polygons and some of the polygons will not work correctly. I'm logging information to the console as well to help with debugging.
I've been trying to figure this out for quite some time, just can't seem to derive a solution.
Many thanks.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the behavior at http://livestormchasing.com/dev by clicking each polygon and reviewing the console output. Compare polygons that return results with those that do not, then trace leaflet-pip's handling of the GeoJSON layer and point-in-polygon lookup. Done means the affected polygons return the expected data consistently.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100