mirror of
https://github.com/akveo/ngx-admin.git
synced 2025-12-21 09:50:13 +01:00
16 lines
382 B
TypeScript
16 lines
382 B
TypeScript
|
|
import { Component } from '@angular/core';
|
||
|
|
import { Location } from './entity/Location';
|
||
|
|
|
||
|
|
@Component({
|
||
|
|
selector: 'ngx-search-map',
|
||
|
|
templateUrl: './search-map.component.html',
|
||
|
|
})
|
||
|
|
export class SearchMapComponent {
|
||
|
|
|
||
|
|
searchedLocation: Location = new Location();
|
||
|
|
|
||
|
|
updateLocation(event: Location) {
|
||
|
|
this.searchedLocation = new Location(event.latitude, event.longitude);
|
||
|
|
}
|
||
|
|
}
|