Skip to content

Commit

Permalink
feat(google-maps): add constant for map type
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrew Martin authored and ihadeed committed Mar 2, 2017
1 parent c1748bb commit 318ad3f
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions src/plugins/googlemap.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -48,7 +57,8 @@ export const GoogleMapsAnimation = {
* GoogleMapsLatLng,
* CameraPosition,
* GoogleMapsMarkerOptions,
* GoogleMapsMarker
* GoogleMapsMarker,
* GoogleMapsMapTypeId
* } from 'ionic-native';
*
* export class MapPage {
Expand Down Expand Up @@ -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 { }
Expand Down

0 comments on commit 318ad3f

Please sign in to comment.