-
-
Save geykel/69d0058ef9cb11290880ff44cc399166 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { Component, ViewChild, ElementRef } from '@angular/core'; | |
import { GoogleMaps } from '../../providers/google-maps/google-maps'; | |
@Component({ | |
selector: 'page-home', | |
templateUrl: 'home.html' | |
}) | |
export class HomePage { | |
@ViewChild('map') mapElement: ElementRef; | |
constructor(public maps: GoogleMaps) { | |
} | |
ionViewDidLoad() { | |
this.maps.init(this.mapElement.nativeElement, (latLng) => { | |
console.log(latLng.lat() + ', ' + latLng.lng()); | |
}).then(() => { | |
}); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment