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
Post a Comment