mirror of
https://github.com/seanmorley15/AdventureLog.git
synced 2025-07-22 22:39:36 +02:00
created_at and updated_at fields
This commit is contained in:
parent
4abaaa5fb3
commit
c6633a17cb
11 changed files with 81 additions and 39 deletions
|
@ -10,7 +10,11 @@
|
|||
|
||||
let markers: Point[] = [];
|
||||
|
||||
let query: string = '';
|
||||
export let query: string | null = null;
|
||||
|
||||
if (query) {
|
||||
geocode();
|
||||
}
|
||||
|
||||
export let longitude: number | null = null;
|
||||
export let latitude: number | null = null;
|
||||
|
@ -43,8 +47,10 @@
|
|||
|
||||
let places: OpenStreetMapPlace[] = [];
|
||||
|
||||
async function geocode(e: Event) {
|
||||
e.preventDefault();
|
||||
async function geocode(e: Event | null) {
|
||||
if (e) {
|
||||
e.preventDefault();
|
||||
}
|
||||
if (!query) {
|
||||
alert('Please enter a location');
|
||||
return;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue