mirror of
https://github.com/danielsogl/awesome-cordova-plugins.git
synced 2025-02-01 02:53:03 +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'
|
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
|
* @name Google Maps
|
||||||
* @description This plugin uses the native Google Maps SDK
|
* @description This plugin uses the native Google Maps SDK
|
||||||
@ -48,7 +57,8 @@ export const GoogleMapsAnimation = {
|
|||||||
* GoogleMapsLatLng,
|
* GoogleMapsLatLng,
|
||||||
* CameraPosition,
|
* CameraPosition,
|
||||||
* GoogleMapsMarkerOptions,
|
* GoogleMapsMarkerOptions,
|
||||||
* GoogleMapsMarker
|
* GoogleMapsMarker,
|
||||||
|
* GoogleMapsMapTypeId
|
||||||
* } from 'ionic-native';
|
* } from 'ionic-native';
|
||||||
*
|
*
|
||||||
* export class MapPage {
|
* export class MapPage {
|
||||||
@ -259,7 +269,7 @@ export class GoogleMap {
|
|||||||
setZoom(zoomLevel: number): void { }
|
setZoom(zoomLevel: number): void { }
|
||||||
|
|
||||||
@CordovaInstance({ sync: true })
|
@CordovaInstance({ sync: true })
|
||||||
setMapTypeId(typeId: string): void { }
|
setMapTypeId(mapTypeId: string): void { }
|
||||||
|
|
||||||
@CordovaInstance({ sync: true })
|
@CordovaInstance({ sync: true })
|
||||||
setTilt(tiltLevel: number): void { }
|
setTilt(tiltLevel: number): void { }
|
||||||
|
Loading…
Reference in New Issue
Block a user