title: Here maps - how to move and animate a marker to new location along with zoom
body: <p>I am using here maps in order to show a route from point A to point B.</p>
  
  <p>Now I am trying to add a marker and update its position from a websocket, I used the Geovisualization to move the marker following this <a href="https://developer.here.com/api-explorer/geovisualization/technology_animation/animated-markers" rel="nofollow noreferrer">https://developer.here.com/api-explorer/geovisualization/technology_animation/animated-markers</a>
  (I dont really know if it is the right way to do it, but it is working) </p>
  
  <p>I can see the marker moving from position A to position B and so on, but the client wants to see the marker always on center of the map.</p>
  
  <p>How can I move and zoom the map with the marker?</p>
  
  <p>I tried to create a group with the marker's new position and then get the bounds of it but it zooms in too fast:</p>
  
  <pre><code>let marker = new H.map.DomMarker({ lat: data[0][1], lng: data[0][2] });
      let group = new H.map.Group();
      group.addObject(marker);
      map.setViewBounds(group.getBounds(), true);
  </code></pre>
  
  <p>Thanks in advance for the help</p>