Skip to content

Commit fa65f31

Browse files
committed
Add more options and links to external links to coordinates
1 parent 9bf4262 commit fa65f31

File tree

17 files changed

+276
-65
lines changed

17 files changed

+276
-65
lines changed

frontend/src/i18n/de.json

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -856,13 +856,7 @@
856856
"about": "Über {{appName}}"
857857
},
858858
"toolbox-map-style-dropdown": {
859-
"label": "Kartenstil",
860-
"openstreetmap": "OpenStreetMap",
861-
"google-maps": "Google Maps",
862-
"google-maps-satellite": "Google Maps (Satellit)",
863-
"bing-maps": "Bing Maps",
864-
"bing-maps-satellite": "Bing Maps (Satellit)",
865-
"park4night": "park4night"
859+
"label": "Kartenstil"
866860
},
867861
"toolbox-tools-dropdown": {
868862
"label": "Werkzeuge",
@@ -884,5 +878,14 @@
884878
},
885879
"zoom-to-object-button": {
886880
"fallback-label": "Zum Objekt zoomen"
881+
},
882+
"links": {
883+
"geo-link": "geo:-Link",
884+
"openstreetmap": "OpenStreetMap",
885+
"google-maps": "Google Maps",
886+
"google-maps-satellite": "Google Maps (Satellit)",
887+
"bing-maps": "Bing Maps",
888+
"bing-maps-satellite": "Bing Maps (Satellit)",
889+
"park4night": "park4night"
887890
}
888891
}

frontend/src/i18n/en.json

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -859,13 +859,7 @@
859859
"about": "About {{appName}}"
860860
},
861861
"toolbox-map-style-dropdown": {
862-
"label": "Map style",
863-
"openstreetmap": "OpenStreetMap",
864-
"google-maps": "Google Maps",
865-
"google-maps-satellite": "Google Maps (Satellite)",
866-
"bing-maps": "Bing Maps",
867-
"bing-maps-satellite": "Bing Maps (Satellite)",
868-
"park4night": "park4night"
862+
"label": "Map style"
869863
},
870864
"toolbox-tools-dropdown": {
871865
"label": "Tools",
@@ -887,5 +881,14 @@
887881
},
888882
"zoom-to-object-button": {
889883
"fallback-label": "Zoom to object"
884+
},
885+
"links": {
886+
"geo-link": "geo: link",
887+
"openstreetmap": "OpenStreetMap",
888+
"google-maps": "Google Maps",
889+
"google-maps-satellite": "Google Maps (Satellite)",
890+
"bing-maps": "Bing Maps",
891+
"bing-maps-satellite": "Bing Maps (Satellite)",
892+
"park4night": "park4night"
890893
}
891894
}

frontend/src/i18n/es.json

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -733,10 +733,6 @@
733733
"validation-error": "Error al validar el campo del formulario"
734734
},
735735
"toolbox-map-style-dropdown": {
736-
"bing-maps": "Mapas de Bing",
737-
"google-maps": "Mapas de Google",
738-
"google-maps-satellite": "Mapas de Google (satelital)",
739-
"openstreetmap": "OpenStreetMap",
740736
"label": "Estilo de mapa"
741737
},
742738
"toolbox-help-dropdown": {
@@ -891,5 +887,11 @@
891887
},
892888
"map-id-edit": {
893889
"unique-id-error": "No se puede utilizar el mismo enlace para diferentes niveles de acceso."
890+
},
891+
"links": {
892+
"bing-maps": "Mapas de Bing",
893+
"google-maps": "Mapas de Google",
894+
"google-maps-satellite": "Mapas de Google (satelital)",
895+
"openstreetmap": "OpenStreetMap"
894896
}
895897
}

frontend/src/i18n/ru.json

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -54,11 +54,7 @@
5454
"settings": "Настройки карты"
5555
},
5656
"toolbox-map-style-dropdown": {
57-
"label": "Стиль карты",
58-
"openstreetmap": "OpenStreetMap",
59-
"google-maps": "Google Карты",
60-
"bing-maps": "Bing Maps",
61-
"google-maps-satellite": "Google Карты (Спутник)"
57+
"label": "Стиль карты"
6258
},
6359
"toolbox-help-dropdown": {
6460
"matrix-chat": "Matrix-чат",
@@ -67,5 +63,11 @@
6763
"about": "О {{appName}}",
6864
"label": "Справка",
6965
"documentation": "Документация"
66+
},
67+
"links": {
68+
"openstreetmap": "OpenStreetMap",
69+
"google-maps": "Google Карты",
70+
"bing-maps": "Bing Maps",
71+
"google-maps-satellite": "Google Карты (Спутник)"
7072
}
7173
}

frontend/src/i18n/ta.json

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -458,13 +458,7 @@
458458
"spinner-label": "ஏற்றுகிறது…"
459459
},
460460
"toolbox-map-style-dropdown": {
461-
"bing-maps-satellite": "பிங் வரைபடங்கள் (செயற்கைக்கோள்)",
462-
"park4night": "பூங்கா 4 இரவு",
463-
"openstreetmap": "ஓபன்ச்ட்ரீட் வரைபடம்",
464-
"label": "வரைபட நடை",
465-
"google-maps": "கூகிள் வரைபடங்கள்",
466-
"google-maps-satellite": "கூகிள் வரைபடங்கள் (செயற்கைக்கோள்)",
467-
"bing-maps": "பிங் வரைபடங்கள்"
461+
"label": "வரைபட நடை"
468462
},
469463
"toolbox-tools-dropdown": {
470464
"label": "கருவிகள்",
@@ -879,5 +873,13 @@
879873
"bugtracker": "ஒரு சிக்கலைப் புகாரளிக்கவும்",
880874
"forum": "கேள்வி கேளுங்கள்",
881875
"about": "{{appName}} பற்றி"
876+
},
877+
"links": {
878+
"bing-maps-satellite": "பிங் வரைபடங்கள் (செயற்கைக்கோள்)",
879+
"park4night": "பூங்கா 4 இரவு",
880+
"openstreetmap": "ஓபன்ச்ட்ரீட் வரைபடம்",
881+
"google-maps": "கூகிள் வரைபடங்கள்",
882+
"google-maps-satellite": "கூகிள் வரைபடங்கள் (செயற்கைக்கோள்)",
883+
"bing-maps": "பிங் வரைபடங்கள்"
882884
}
883885
}

frontend/src/i18n/zh-Hant.json

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -427,10 +427,6 @@
427427
"bugtracker": "報告一個問題"
428428
},
429429
"toolbox-map-style-dropdown": {
430-
"bing-maps": "Bing 地圖",
431-
"google-maps-satellite": "Google 地圖(衛星)",
432-
"google-maps": "Google 地圖",
433-
"openstreetmap": "OpenStreetMap",
434430
"label": "地圖樣式"
435431
},
436432
"toolbox-tools-dropdown": {
@@ -456,5 +452,11 @@
456452
},
457453
"search-form-tab": {
458454
"tab-label": "搜尋"
455+
},
456+
"links": {
457+
"bing-maps": "Bing 地圖",
458+
"google-maps-satellite": "Google 地圖(衛星)",
459+
"google-maps": "Google 地圖",
460+
"openstreetmap": "OpenStreetMap"
459461
}
460462
}

frontend/src/lib/components/click-marker-tab.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@
126126
isCloseable
127127
@close="close(tab)"
128128
>
129-
<SearchResultInfo :result="tab.result" :isLoading="tab.isLoading"></SearchResultInfo>
129+
<SearchResultInfo :result="tab.result" :isLoading="tab.isLoading" :zoom="mapContext.zoom"></SearchResultInfo>
130130
</SearchBoxTab>
131131
</template>
132132
</template>

frontend/src/lib/components/marker-info/marker-info-tab.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
isCloseable
4646
@close="close()"
4747
>
48-
<MarkerInfo :markerId="markerId"></MarkerInfo>
48+
<MarkerInfo :markerId="markerId" :zoom="mapContext.zoom"></MarkerInfo>
4949
</SearchBoxTab>
5050
</template>
5151
</template>

frontend/src/lib/components/marker-info/marker-info.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
const props = withDefaults(defineProps<{
2626
markerId: ID;
2727
showBackButton?: boolean;
28+
zoom?: number;
2829
}>(), {
2930
showBackButton: false
3031
});
@@ -92,7 +93,7 @@
9293
</h2>
9394
<dl class="fm-search-box-collapse-point fm-search-box-dl">
9495
<dt class="pos">{{i18n.t("marker-info.coordinates")}}</dt>
95-
<dd class="pos"><Coordinates :point="marker" :ele="marker.ele"></Coordinates></dd>
96+
<dd class="pos"><Coordinates :point="marker" :ele="marker.ele" :zoom="props.zoom"></Coordinates></dd>
9697

9798
<template v-for="field in client.types[marker.typeId].fields" :key="field.name">
9899
<dt>{{formatFieldName(field.name)}}</dt>

frontend/src/lib/components/multiple-info/multiple-info.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,7 @@
145145
v-if="openedObject && isMarker(openedObject)"
146146
:markerId="openedObject.id"
147147
show-back-button
148+
:zoom="mapContext.zoom"
148149
@back="carousel.setTab(0)"
149150
></MarkerInfo>
150151
<LineInfo

0 commit comments

Comments
 (0)