mapbox / mapbox/leaflet-pip

Leaflet PIP not Returning all Results

Open
#26 1 comment 0 reactions 0 assignees View on GitHub

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.