How move the marker in google map instead duplicating it


#1

drone%20marker

droneMarker(data) {
    
    var Newlat = parseFloat(data.iss_position.latitude);
    var Newlng = parseFloat(data.iss_position.longitude);
    var latlong = [Newlat, Newlng];
   
    console.log(latlong);
    const marker = new SlidingMarker({
        position: latlong.length-1,
        map: this.map,
        icon: {
          url: 'assets/markers/drone_location.png',
          scaledSize: new google.maps.Size(80, 80)},
          
      },200);
      marker.setDuration(200);
      marker.setEasing('linear');
      marker.setPosition(new google.maps.LatLng(parseFloat(data.iss_position.latitude),
      parseFloat(data.iss_position.longitude)));
      
      return;

  }