Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
addMarker(marker: IonMarker) {
const { lat, lng, iconUrl, title,
animated, draggable, visible,
zIndex } = marker;
const markerOptions: MarkerOptions = {
position: new LatLng(lat, lng),
title,
icon: iconUrl,
animation: animated ? GoogleMapsAnimation.DROP : null,
zIndex,
draggable,
visible
};
return this.map.addMarker(markerOptions);
}
}