Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
addMarker(position, title: string, infoClickCallback, animated = true) {
const markerOptions: MarkerOptions = {
position,
title,
animation: animated ? GoogleMapsAnimation.BOUNCE : null,
infoWindowAnchor: infoClickCallback
};
return this.map.addMarker(markerOptions);
}