feat(google-maps): add constant for map type

This commit is contained in:
Andrew Martin 2017-03-02 01:57:44 +00:00 committed by Ibby Hadeed
parent c1748bbc28
commit 318ad3f4e0

View File

@ -37,6 +37,15 @@ export const GoogleMapsAnimation = {
DROP: 'DROP'
};
export const GoogleMapsMapTypeId = {
HYBRID: 'MAP_TYPE_HYBRID',
NONE: 'MAP_TYPE_NONE',
NORMAL: 'MAP_TYPE_NORMAL',
ROADMAP: 'MAP_TYPE_ROADMAP',
SATELLITE: 'MAP_TYPE_SATELLITE',
TERAIN: 'MAP_TYPE_TERRAIN'
};
/**
* @name Google Maps
* @description This plugin uses the native Google Maps SDK
@ -48,7 +57,8 @@ export const GoogleMapsAnimation = {
* GoogleMapsLatLng,
* CameraPosition,
* GoogleMapsMarkerOptions,
* GoogleMapsMarker
* GoogleMapsMarker,
* GoogleMapsMapTypeId
* } from 'ionic-native';
*
* export class MapPage {
@ -259,7 +269,7 @@ export class GoogleMap {
setZoom(zoomLevel: number): void { }
@CordovaInstance({ sync: true })
setMapTypeId(typeId: string): void { }
setMapTypeId(mapTypeId: string): void { }
@CordovaInstance({ sync: true })
setTilt(tiltLevel: number): void { }