I update the map areas on the AmMap map, but the zoom level and position reset when I do this.
My map updating function:
function setData(data) { var parsedData = JSON.parse(data); map.dataProvider.areas = parsedData.areas; map.validateData(); }
I tried a bunch of things, but I can't get this to work.
Cheers for any help.
source share