How to import terikon/marker-animate-unobtrusive


#1

i have error that the marker still not moving still duplicate

import * as SlidingMarker from "../../../node_modules/marker-animate-unobtrusive";


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

drone%20marker