mirror of
https://github.com/akveo/ngx-admin.git
synced 2025-12-20 09:20:12 +01:00
leaflet maps
This commit is contained in:
parent
6cf83c8903
commit
1b2b7e42b1
13 changed files with 58 additions and 5 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue