mapbox / mapbox/leaflet-image

Fails on maps that cross the 180 line

Open
#89 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
380
Forks
140
PR merge metrics
No merged PRs in 30d

Description

Dont usually have many problems with maps on leaflet that cross the 180 degree line, but this plugin fails. Eg see attached image - fine (except for background layer missing up to the 180 line, everything messed up on the right hand side beyond that (This is near New Zealand).
![leaflet-image_error](https://cloud.githubusercontent.com/assets/225041/20073734/4baa1354-a592-11e6-8a3e-5ebe7b3814c1.png)

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 attached Leaflet map case near New Zealand, where the map crosses the 180-degree line, and trace the plugin's map-to-image rendering entry point. Compare the output with a map that does not cross the line; done means the background layer and map content render correctly on both sides.

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.