leaflet maps

This commit is contained in:
nixa 2016-05-02 18:17:54 +03:00
parent 6cf83c8903
commit 1b2b7e42b1
13 changed files with 58 additions and 5 deletions

View file

@ -15,12 +15,11 @@ export class GoogleMaps {
constructor(private _elementRef:ElementRef) {
}
ngOnInit() {
}
ngAfterViewInit() {
let el = DOM.querySelector(this._elementRef.nativeElement, '.google-maps');
GoogleMapsLoader.load((google) => {
new google.maps.Map(DOM.querySelector(this._elementRef.nativeElement, '.google-maps'), {
new google.maps.Map(el, {
center: new google.maps.LatLng(44.5403, -78.5463),
zoom: 8,
mapTypeId: google.maps.MapTypeId.ROADMAP