From 318ad3f4e016aa338926db87028cca47fff3d027 Mon Sep 17 00:00:00 2001 From: Andrew Martin Date: Thu, 2 Mar 2017 01:57:44 +0000 Subject: [PATCH] feat(google-maps): add constant for map type --- src/plugins/googlemap.ts | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/src/plugins/googlemap.ts b/src/plugins/googlemap.ts index 47f840cab..769224af8 100644 --- a/src/plugins/googlemap.ts +++ b/src/plugins/googlemap.ts @@ -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 { }