2016-03-29 18:50:03 +08:00
|
|
|
import {Cordova, Plugin} from "./plugin";
|
|
|
|
import {Observable} from "rxjs/Observable";
|
|
|
|
import {CordovaInstance} from "./plugin";
|
|
|
|
/**
|
|
|
|
* Created by Ibrahim on 3/29/2016.
|
|
|
|
*/
|
|
|
|
declare var plugin : any;
|
|
|
|
/**
|
|
|
|
* @name Google Maps
|
|
|
|
*/
|
|
|
|
@Plugin({
|
|
|
|
pluginRef: 'plugin.google.maps'
|
|
|
|
})
|
|
|
|
export class GoogleMaps {
|
|
|
|
|
|
|
|
private _objectInstance : any;
|
|
|
|
|
2016-03-29 18:56:21 +08:00
|
|
|
constructor (elementId : string) {
|
2016-04-30 10:47:01 +08:00
|
|
|
this._objectInstance = plugin.google.maps.Map.getMap(document.getElementById(elementId));
|
2016-03-29 18:50:03 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
@Cordova({
|
|
|
|
eventObservable: true,
|
|
|
|
event: 'plugin.google.maps.event.MAP_READY'
|
|
|
|
})
|
|
|
|
static onInit () : Observable<GoogleMaps> {return}
|
|
|
|
|
|
|
|
@CordovaInstance({
|
|
|
|
sync: true
|
|
|
|
})
|
|
|
|
setDebuggable (isDebuggable : boolean) : void {}
|
|
|
|
|
|
|
|
setClickable (isClickable : boolean) : void {}
|
|
|
|
|
2016-03-29 18:56:21 +08:00
|
|
|
}
|