Compare commits
2 Commits
323aab8256
...
d9645d1a8c
| Author | SHA1 | Date | |
|---|---|---|---|
|
d9645d1a8c
|
|||
|
688e8eda8d
|
@@ -190,6 +190,8 @@ export default class PlacesSidebar extends Component {
|
||||
<div class="place-type">
|
||||
{{#if (eq place.source "osm")}}
|
||||
{{humanizeOsmTag place.type}}
|
||||
{{else if (eq place.source "photon")}}
|
||||
{{place.description}}
|
||||
{{else}}
|
||||
{{#if place.osmTags}}
|
||||
{{humanizeOsmTag (getPlaceType place.osmTags)}}
|
||||
|
||||
@@ -41,13 +41,17 @@ export function getPlaceType(tags) {
|
||||
tags.shop ||
|
||||
tags.tourism ||
|
||||
tags.leisure ||
|
||||
tags.historic ||
|
||||
tags.office ||
|
||||
tags.craft ||
|
||||
tags.historic ||
|
||||
tags.place ||
|
||||
tags.building ||
|
||||
tags.landuse ||
|
||||
tags.natural;
|
||||
tags.place ||
|
||||
tags.natural ||
|
||||
tags.public_transport ||
|
||||
tags.aeroway ||
|
||||
tags.border_type ||
|
||||
tags.admin_title;
|
||||
|
||||
return humanizeOsmTag(rawType);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user