mirror of
https://github.com/akveo/ngx-admin.git
synced 2025-12-18 08:20:13 +01:00
TODO for google maps
This commit is contained in:
parent
ad19b36dde
commit
0239c17766
1 changed files with 1 additions and 0 deletions
|
|
@ -18,6 +18,7 @@ export class GoogleMaps {
|
||||||
ngAfterViewInit() {
|
ngAfterViewInit() {
|
||||||
let el = DOM.querySelector(this._elementRef.nativeElement, '.google-maps');
|
let el = DOM.querySelector(this._elementRef.nativeElement, '.google-maps');
|
||||||
|
|
||||||
|
// TODO: do not load this each time as we already have the library after first attempt
|
||||||
GoogleMapsLoader.load((google) => {
|
GoogleMapsLoader.load((google) => {
|
||||||
new google.maps.Map(el, {
|
new google.maps.Map(el, {
|
||||||
center: new google.maps.LatLng(44.5403, -78.5463),
|
center: new google.maps.LatLng(44.5403, -78.5463),
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue