How do I set the mapType
using Ionic 2 and google maps native
import {
GoogleMaps,
GoogleMap,
GoogleMapsEvent,
GoogleMapOptions,
CameraPosition,
MarkerOptions,
Marker
} from '@ionic-native/google-maps';
constructor(public navCtrl: NavController, public googleMaps: GoogleMaps) { }
let mapOptions: GoogleMapOptions = {
camera: {
target: {
lat: 43.0741904,
lng: -89.3809802
},
zoom: 18,
tilt: 30
},
'mapType': this.googleMaps.MapTypeId.ROADMAP
};
Error:Property 'MapTypeId' does not exist on type 'GoogleMaps'.
From the documentation it states map.setMapTypeId(plugin.google.maps.MapTypeId.HYBRID);
But I can’t figure out what type plugin
is?