Answer the question
In order to leave comments, you need to log in
How to dynamically change coordinates in 2gis?
Hello. In the site settings there is a city coordinates item, the city will be determined by these coordinates, but I did not find how to change coordinates in 2gis in api. Only in advance if you write
map = DG.map('map-company', {
center: [51.1796,71.4475],
zoom: 11,
});
Answer the question
In order to leave comments, you need to log in
2gis uses a slightly tweaked Leaflet under the hood. To be honest, I'm too lazy to go into the documentation now, but as far as I remember, the card has the setCenter and setZoom methods or something like that.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question