How to use the @ionic-native/google-maps.GoogleMapsEvent.CAMERA_MOVE_END 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 luisbahamonde / ionic-cabify-ui / src / pages / mapa / mapa.ts View on Github external
this.mapElement = document.getElementById('map');
    this.map = this.googleMaps.create(this.mapElement, mapOptions);

    this.map.on(GoogleMapsEvent.MAP_READY).subscribe(() => {

      this.map.setMyLocationEnabled(true);
      this.locateMe();

    });

    this.map.on(GoogleMapsEvent.CAMERA_MOVE_START).subscribe(() => {

      this.toggleTrans(true);
    });

    this.map.on(GoogleMapsEvent.CAMERA_MOVE_END).subscribe(() => {

      this.toggleTrans(false);
    });
  }