2gis / 2gis/mapsapi

map is not centering

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

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
212
Forks
36
PR merge metrics
No merged PRs in 30d

Description

I failed to implement 2gis's own current locator function market.getLatLng(), then I used google's one. In javascript part I took from fragment my longitude and latitude. I made it appear on my alert, everything is working fine, but when map centers with these values, it ends up with "2gis is not supported in your area" error, but sometimes it works. Any ideas?[
Unknown
Screenshot 2019-10-07 at 16 14 38

](url)

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 with the JavaScript that calls market.getLatLng(), the Google locator, and the map-centering operation. Reproduce the intermittent "2gis is not supported in your area" result with the reported coordinates, then identify the conditions that make centering succeed or fail and document a verified fix.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend, web-dev
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 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.