mapbox / mapbox/utfgrid-spec

UTFGrid with Swipe Layers

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

Nobody has claimed this yet.

Dominant language
No language data
Stars
153
Forks
26
PR merge metrics
No merged PRs in 30d

Description

I am using leaflet to create a set of swipable layers. Mapbox has an example of this: https://www.mapbox.com/mapbox.js/example/v1.0.0/swipe-layers/ My issue is that when a layer is getting clipped UTFGrid does not respect it. So it still gives the UTFGrid data for the last added layer. When hovering the other layer. Hopefully this make sense.

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

Start by reproducing the Mapbox swipe-layers example linked in the issue with Leaflet and clipped layers, then observe which UTFGrid data is returned while hovering each layer. Done means UTFGrid interaction respects the visible clipped layer instead of returning data from the last-added layer.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend, web-dev
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.