It creates markers by changing lat and long


Hello what happens is that I am adding a marker but when the lat is changed and lng adds me another marker.
How do I do to update only the marker and do not create me markers?

    let location : LatLng= new LatLng(lat,lng) GoogleMap('map',{


        console.log("esto es:"+marker)



  let markerOptions: MarkerOptions = {
    position: new LatLng(lat,lng),
   // title: this.chofer.ruta


How about removing the old one before adding a new one?


Why aren’t you using ionic-native?


If you have to remove the one you are using before


If I’m using native google map


I just need to update latitude and longitude without creating another new marker