title: AmMap - keeping the same zoom level and position after updating map data
body: <p>I am updating the map areas of an AmMap map, but the zoom level and position is reset whenever I do.</p>
  
  <p>My function which is updating the map is:</p>
  
  <pre><code>function setData(data) {
      var parsedData = JSON.parse(data);
  
      map.dataProvider.areas = parsedData.areas;
      map.validateData();
  }
  </code></pre>
  
  <p>I have tried a bunch of things, but I can't get this to work.</p>
  
  <p>Cheers for any help.</p>