mirror of
https://github.com/danielsogl/awesome-cordova-plugins.git
synced 2025-02-21 00:23:00 +08:00
refactor(google-maps): use MapType interface instead of string
This commit is contained in:
parent
aff653de2e
commit
01ae8e11fc
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user