How to use the @ionic-native/google-maps.GoogleMapsAnimation.DROP function in @ionic-native/google-maps

To help you get started, we’ve selected a few @ionic-native/google-maps examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github yannbf / ion-maps / src / providers / maps / native-google-maps / native-google-maps.ts View on Github external
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);
  }
}