mirror of
https://github.com/akveo/ngx-admin.git
synced 2026-03-16 10:06:30 +01:00
feat(maps): add google map with access search location dropdown
This commit is contained in:
parent
cb5795b52f
commit
97c7134c77
13 changed files with 151 additions and 3 deletions
15
src/app/pages/maps/search-map/search-map.component.ts
Normal file
15
src/app/pages/maps/search-map/search-map.component.ts
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
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);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue