fix: add text wrap in POI list, increase search radius and exclude street_side parking
This commit is contained in:
@ -130,7 +130,7 @@
|
|||||||
style="flex: 1;"
|
style="flex: 1;"
|
||||||
onclick={() => {
|
onclick={() => {
|
||||||
view.switch("nearby-poi", {
|
view.switch("nearby-poi", {
|
||||||
tags: "amenity=parking",
|
tags: "amenity=parking,parking!=street_side",
|
||||||
});
|
});
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
|
|||||||
@ -18,7 +18,7 @@
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
view.loading = true;
|
view.loading = true;
|
||||||
fetchNearbyPOI(location.lat, location.lng, tags.split(","), 500).then(
|
fetchNearbyPOI(location.lat, location.lng, tags.split(","), 5000).then(
|
||||||
(results) => {
|
(results) => {
|
||||||
pois = results.elements.sort((a, b) => {
|
pois = results.elements.sort((a, b) => {
|
||||||
const distA = distanceTo(
|
const distA = distanceTo(
|
||||||
@ -89,7 +89,7 @@
|
|||||||
});
|
});
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<div class="font-bold">
|
<div class="font-bold text-wrap">
|
||||||
{poi.tags.name ?? poi.tags.brand ?? m.unnamed()}
|
{poi.tags.name ?? poi.tags.brand ?? m.unnamed()}
|
||||||
</div>
|
</div>
|
||||||
<div class="text-sm">
|
<div class="text-sm">
|
||||||
|
|||||||
Reference in New Issue
Block a user