mirror of
https://github.com/danielsogl/awesome-cordova-plugins.git
synced 2025-04-25 20:30:15 +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
|
* @hidden
|
||||||
*/
|
*/
|
||||||
export const GoogleMapsMapTypeId: { [mapType: string]: string; } = {
|
export const GoogleMapsMapTypeId: { [mapType: string]: MapType; } = {
|
||||||
NORMAL: 'MAP_TYPE_NORMAL',
|
NORMAL: 'MAP_TYPE_NORMAL',
|
||||||
ROADMAP: 'MAP_TYPE_ROADMAP',
|
ROADMAP: 'MAP_TYPE_ROADMAP',
|
||||||
SATELLITE: 'MAP_TYPE_SATELLITE',
|
SATELLITE: 'MAP_TYPE_SATELLITE',
|
||||||
@ -834,7 +834,7 @@ export class GoogleMap extends BaseClass {
|
|||||||
* @param mapTypeId {string}
|
* @param mapTypeId {string}
|
||||||
*/
|
*/
|
||||||
@CordovaInstance({ sync: true })
|
@CordovaInstance({ sync: true })
|
||||||
setMapTypeId(mapTypeId: string): void { }
|
setMapTypeId(mapTypeId: MapType): void { }
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Moves the camera with animation
|
* Moves the camera with animation
|
||||||
|
Loading…
x
Reference in New Issue
Block a user