Skip to content

Commit

Permalink
fix marker creation after search
Browse files Browse the repository at this point in the history
  • Loading branch information
flopp committed Feb 3, 2023
1 parent 4cb8903 commit 5bdcdcc
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
15 changes: 15 additions & 0 deletions src/components/news_dialog.ts
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,21 @@ const news_articles: NewsArticle[] = [
- GPX Export von Karten mit Linien korrigiert.
Beste Grüße,
Florian aka. Flopp`,
),
new NewsArticle(
"2023-02-03",
`Another small update:
- Fix marker creation after location search; thanks to Alex for reporting this issue!)
Best regards,
Florian aka. Flopp`,
`Ein weiteres kleines Update:
- Markererzeugung direkt nach einer Suche funktioniert jetzt wieder korrekt - vielen Dank an Alex für den Fehlerreport!
Beste Grüße,
Florian aka. Flopp`,
),
Expand Down
2 changes: 1 addition & 1 deletion src/components/sidebar_search.ts
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ export class SidebarSearch extends SidebarItem {
json_data.forEach((element: any) => {
results.push({
name: element.display_name,
coordinates: new Coordinates(element.lat, element.lon),
coordinates: new Coordinates(parseFloat(element.lat), parseFloat(element.lon)),
});
});
} else {
Expand Down

0 comments on commit 5bdcdcc

Please sign in to comment.