mirror of
https://github.com/akveo/ngx-admin.git
synced 2026-02-19 14:38:07 +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
|
||||
|
|
|
|||
|
|
@ -1,3 +1,3 @@
|
|||
<ba-card title="GoogleMaps" baCardClass="popular-app medium-card" class="viewport100">
|
||||
<ba-card title="Google Maps" baCardClass="popular-app medium-card" class="viewport100">
|
||||
<div class="google-maps"></div>
|
||||
</ba-card>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue