mirror of
https://github.com/akveo/ngx-admin.git
synced 2026-03-16 01:56:31 +01:00
Fix search-map component using @angular/google-maps
This commit is contained in:
parent
398c8c2a87
commit
1b75ccfb40
10 changed files with 56 additions and 61 deletions
|
|
@ -1,15 +1,14 @@
|
|||
import { Component } from '@angular/core';
|
||||
import { Location } from './entity/Location';
|
||||
import { PositionModel } from './entity/position.model';
|
||||
|
||||
@Component({
|
||||
selector: 'ngx-search-map',
|
||||
templateUrl: './search-map.component.html',
|
||||
})
|
||||
export class SearchMapComponent {
|
||||
public searchedPosition: PositionModel = new PositionModel();
|
||||
|
||||
searchedLocation: Location = new Location();
|
||||
|
||||
updateLocation(event: Location) {
|
||||
this.searchedLocation = new Location(event.latitude, event.longitude);
|
||||
public setPosition(position: PositionModel): void {
|
||||
this.searchedPosition = position;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue