依赖文件
This commit is contained in:
+46
@@ -0,0 +1,46 @@
|
||||
var event = require('cordova-plugin-googlemaps.event'),
|
||||
BaseClass = require('cordova-plugin-googlemaps.BaseClass'),
|
||||
BaseArrayClass = require('cordova-plugin-googlemaps.BaseArrayClass'),
|
||||
execCmd = require('cordova-plugin-googlemaps.commandQueueExecutor'),
|
||||
cordovaGoogleMaps = new(require('cordova-plugin-googlemaps.js_CordovaGoogleMaps'))(execCmd);
|
||||
|
||||
module.exports = {
|
||||
event: event,
|
||||
Animation: {
|
||||
BOUNCE: 'BOUNCE',
|
||||
DROP: 'DROP'
|
||||
},
|
||||
BaseClass: BaseClass,
|
||||
BaseArrayClass: BaseArrayClass,
|
||||
Map: {
|
||||
getMap: cordovaGoogleMaps.getMap.bind(cordovaGoogleMaps)
|
||||
},
|
||||
StreetView: {
|
||||
getPanorama: cordovaGoogleMaps.getPanorama.bind(cordovaGoogleMaps),
|
||||
Source: {
|
||||
DEFAULT: 'DEFAULT',
|
||||
OUTDOOR: 'OUTDOOR'
|
||||
}
|
||||
},
|
||||
HtmlInfoWindow: require('cordova-plugin-googlemaps.HtmlInfoWindow'),
|
||||
LatLng: require('cordova-plugin-googlemaps.LatLng'),
|
||||
LatLngBounds: require('cordova-plugin-googlemaps.LatLngBounds'),
|
||||
MapTypeId: require('cordova-plugin-googlemaps.MapTypeId'),
|
||||
environment: require('cordova-plugin-googlemaps.Environment'),
|
||||
Geocoder: require('cordova-plugin-googlemaps.Geocoder')(execCmd),
|
||||
LocationService: require('cordova-plugin-googlemaps.LocationService')(execCmd),
|
||||
geometry: {
|
||||
encoding: require('cordova-plugin-googlemaps.encoding'),
|
||||
spherical: require('cordova-plugin-googlemaps.spherical'),
|
||||
poly: require('cordova-plugin-googlemaps.poly')
|
||||
}
|
||||
};
|
||||
|
||||
cordova.addConstructor(function () {
|
||||
if (!window.Cordova) {
|
||||
window.Cordova = cordova;
|
||||
}
|
||||
window.plugin = window.plugin || {};
|
||||
window.plugin.google = window.plugin.google || {};
|
||||
window.plugin.google.maps = window.plugin.google.maps || module.exports;
|
||||
});
|
||||
Reference in New Issue
Block a user