cordova - Ionic 2 Google Maps Native Map Type -


how set maptype using ionic 2 , google maps native

import {  googlemaps,  googlemap,  googlemapsevent,  googlemapoptions,  cameraposition,  markeroptions,  marker } '@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' not exist on type 'googlemaps'.

from documentation states map.setmaptypeid(plugin.google.maps.maptypeid.hybrid); can't figure out type plugin is?


Comments

Popular posts from this blog

angular - Ionic slides - dynamically add slides before and after -

minify - Minimizing css files -

Add a dynamic header in angular 2 http provider -