mapbox / mapbox/mapbox-gl-geocoder

Extra line shown in the map

Open
#486 0 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

auto-triaged needs information
Dominant language
JavaScript
Stars
388
Forks
181
PR merge metrics
No merged PRs in 30d

Description

Hello everyone, I'm trying to fix a bug on a project where I'm connecting differents cities around the world by their coord.
The problem, as the images shows, is that one city always (or almost always) shows an extra horizontal line like going around the world. But if i change the longitude to a value higher than -64 this extra line disappears, like the second image, but now, the coordinates are wrong. Always happen in the same city, and it's fix only modifying longitude.
Any sugestion? Thanks in advance.

![Captura de pantalla de 2023-01-25 15-46-42](https://user-images.githubusercontent.com/96741025/214693984-8f63f59f-600b-4594-b4f8-e06fa245585a.png)
![Captura de pantalla de 2023-01-25 15-47-20](https://user-images.githubusercontent.com/96741025/214693994-39f27524-94d9-43e5-8a30-76476c9aa9c3.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

No files, tests, or entry points are named. Start by reproducing the reported city case and compare the map when its longitude is below and above -64, using the two linked screenshots as references; done means identifying why the extra horizontal line appears and confirming the issue without altering the coordinates.

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.