mirror of
https://github.com/danielsogl/awesome-cordova-plugins.git
synced 2025-01-31 18:49:43 +08:00
feat(google-maps): add constant for map type
This commit is contained in:
parent
c1748bbc28
commit
318ad3f4e0
@ -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 { }
|
||||
|
Loading…
Reference in New Issue
Block a user