map is not centering
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?[


](url)
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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