diff --git a/src/components/cards/RouteCard.vue b/src/components/cards/RouteCard.vue index 190a56cfcd..85b698c192 100644 --- a/src/components/cards/RouteCard.vue +++ b/src/components/cards/RouteCard.vue @@ -33,6 +33,7 @@ + + + diff --git a/src/js/constants/common.json b/src/js/constants/common.json index 11016a4a5c..02b24ee56b 100644 --- a/src/js/constants/common.json +++ b/src/js/constants/common.json @@ -221,11 +221,12 @@ "previous_injuries": ["no", "previous_injuries_2"], "product_types": ["farm_sale", "restaurant", "grocery", "bar", "sport_shop"], "public_transportation_ratings": [ - "good service", - "seasonal service", - "poor service", + "no service", + "unknown service", "nearby service", - "no service" + "poor service", + "seasonal service", + "good service" ], "public_transportation_types": ["train", "bus", "service_on_demand", "boat"], "qualification": ["federal_supervisor", "federal_trainer", "professional_diploma"], diff --git a/src/js/constants/documentsProperties.json b/src/js/constants/documentsProperties.json index eb1709da1e..b1e33669e1 100644 --- a/src/js/constants/documentsProperties.json +++ b/src/js/constants/documentsProperties.json @@ -462,6 +462,7 @@ { "id": "mtb_length_trail", "properties": { "url": "mbtrack", "activities": ["mountain_biking"] } }, { "id": "mtb_up_rating", "properties": { "url": "mbur", "activities": ["mountain_biking"] } }, { "id": "orientations", "properties": { "url": "fac" } }, + { "id": "public_transportation_rating" }, { "id": "quality", "properties": { "url": "qa" } }, { "id": "risk_rating", diff --git a/src/js/constants/fieldsProperties.json b/src/js/constants/fieldsProperties.json index 9cf2dde83c..0abae9ba16 100644 --- a/src/js/constants/fieldsProperties.json +++ b/src/js/constants/fieldsProperties.json @@ -690,7 +690,8 @@ "default": false }, "public_transportation_rating": { - "values": "public_transportation_ratings" + "values": "public_transportation_ratings", + "default": "unknown service" }, "public_transportation_types": { "values": "public_transportation_types", diff --git a/src/js/vue-plugins/document-utils.js b/src/js/vue-plugins/document-utils.js index f689bf90f4..9c76c9ad13 100644 --- a/src/js/vue-plugins/document-utils.js +++ b/src/js/vue-plugins/document-utils.js @@ -5,6 +5,7 @@ import c2c from '@/js/apis/c2c'; import constants from '@/js/constants'; +import common from '@/js/constants/common.json'; // we need to use a VM, because we need access to Vue.$user.lang @@ -375,6 +376,13 @@ export default function install(Vue) { } }, + hasSoftMobility(document) { + return ( + document.public_transportation_rating && + common.attributes.public_transportation_ratings.indexOf(document.public_transportation_rating) < 4 + ); + }, + getDocumentsBbox(documents) { documents = documents.filter((document) => document.geometry?.geom); diff --git a/src/translations/fixed_strings_common_js.vue b/src/translations/fixed_strings_common_js.vue index cd57492c2a..3dcf011739 100644 --- a/src/translations/fixed_strings_common_js.vue +++ b/src/translations/fixed_strings_common_js.vue @@ -423,6 +423,7 @@ seasonal service poor service nearby service + unknown service no service train diff --git a/src/views/document/RouteView.vue b/src/views/document/RouteView.vue index 692c885382..58bb09b5e6 100644 --- a/src/views/document/RouteView.vue +++ b/src/views/document/RouteView.vue @@ -27,6 +27,7 @@ +
diff --git a/src/views/document/utils/boxes/AssociatedDocuments.vue b/src/views/document/utils/boxes/AssociatedDocuments.vue index 9d5827a7d5..9ec3af138d 100644 --- a/src/views/document/utils/boxes/AssociatedDocuments.vue +++ b/src/views/document/utils/boxes/AssociatedDocuments.vue @@ -15,6 +15,7 @@
+
{{ waypoint.elevation }} m