refactor(google-maps): use MapType interface instead of string

This commit is contained in:
Ibby Hadeed 2017-07-08 08:45:09 -04:00
parent aff653de2e
commit 01ae8e11fc
No known key found for this signature in database
GPG Key ID: FAFF5A8210728800

View File

@ -294,7 +294,7 @@ export const GoogleMapsAnimation: { [animationName: string]: string; } = {
/**
* @hidden
*/
export const GoogleMapsMapTypeId: { [mapType: string]: string; } = {
export const GoogleMapsMapTypeId: { [mapType: string]: MapType; } = {
NORMAL: 'MAP_TYPE_NORMAL',
ROADMAP: 'MAP_TYPE_ROADMAP',
SATELLITE: 'MAP_TYPE_SATELLITE',
@ -834,7 +834,7 @@ export class GoogleMap extends BaseClass {
* @param mapTypeId {string}
*/
@CordovaInstance({ sync: true })
setMapTypeId(mapTypeId: string): void { }
setMapTypeId(mapTypeId: MapType): void { }
/**
* Moves the camera with animation