mapsapi
mapsapi copied to clipboard
map is not centering
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)
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.