mapbox / mapbox/mapbox-gl-geocoder

Geocode does not work with SwiperJS

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

Nobody has claimed this yet.

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

Description

Take a look at this JSFiddle: https://jsfiddle.net/e59toaz4/

Make sure you expand the preview window so that you can see the geocode input. If you type/enter a place and click one of the suggestions, the map is not auto-positioned. However, if you hit return/enter after entering a place, it works as expected.

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 in the linked JSFiddle, expanding the preview so the geocode input is visible. Compare selecting a suggestion with pressing Enter, and trace the geocoder selection path to determine why the map is not repositioned; done means both interactions auto-position the map.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.