Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

map is not centering #521

Open
garifollinad opened this issue Oct 8, 2019 · 1 comment
Open

map is not centering #521

garifollinad opened this issue Oct 8, 2019 · 1 comment

Comments

@garifollinad
Copy link

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)

@egoroof
Copy link
Contributor

egoroof commented Oct 8, 2019

Your latitude and longitude are set to 0 and zoom to 10, so you can check this location by link https://maps.api.2gis.ru/2.0/?lng=0&lat=0&zoom=10 - you will see same images.

You should get needed coordinates first then initiate the map. Or change default values.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants