How to use the @ionic-native/google-maps.GoogleMapsMapTypeId.NORMAL 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 / ionic3-components / src / providers / native-google-maps / native-google-maps.ts View on Github external
create(element: ElementRef) {
    const mapOptions: GoogleMapOptions = {
      camera: {
        target: {
          lat: 43.0741904,
          lng: -89.3809802
        },
        zoom: 18,
        tilt: 10
      },
      mapType: GoogleMapsMapTypeId.NORMAL,
      controls: {
        compass: true,
        myLocationButton: true,
        indoorPicker: true,
        zoom: true
      },
      gestures: {
        scroll: true,
        tilt: true,
        rotate: true,
        zoom: true
      },
      preferences: null
    };

    this.map = this.googleMaps.create(element.nativeElement, mapOptions);