Skip to content

Commit 666a1d6

Browse files
committed
wip: Reorganize sticky map-based components #1085
1 parent 6c5d2b6 commit 666a1d6

File tree

4 files changed

+9
-19
lines changed

4 files changed

+9
-19
lines changed

core/client/i18n/core_fr.json

+6
Original file line numberDiff line numberDiff line change
@@ -714,5 +714,11 @@
714714
"FILE_TOO_LARGE": "Le fichier {file} est trop volumineux. La taille doit être inférieure à {size}Mo",
715715
"UPLOAD_FILE_SUCCEEDED": "Le fichier {file} a été transféré avec succès",
716716
"UPLOAD_FILE_ERRORED": "Impossible de transférer le fichier {file} !"
717+
},
718+
"KToggleStickyVisibility": {
719+
"DISPLAY_POSITION": "Afficher les coordonnées géographiques",
720+
"HIDE_POSITION": "Masquer les coordonnées géographiques",
721+
"DISPLAY_NORTH": "Afficher la flèche d’orientation vers le nord",
722+
"HIDE_NORTH": "Masquer la flèche d’orientation vers le nord"
717723
}
718724
}

map/client/components/stickies/KNorth.vue

+2-2
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,11 @@ defineProps({
1616
},
1717
width: {
1818
type: String,
19-
default: '250px'
19+
default: '36px'
2020
},
2121
height: {
2222
type: String,
23-
default: '50px'
23+
default: '36px'
2424
}
2525
})
2626
</script>

map/client/components/stickies/KPosition.vue

-8
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,6 @@
1414
size="sm"
1515
:handler="onCopy"
1616
/>
17-
<!--KAction
18-
id="hide-position"
19-
icon="cancel"
20-
tooltip="KPosition.HIDE"
21-
size="sm"
22-
:handler="onHide"
23-
/-->
2417
</div>
2518
</template>
2619

@@ -54,7 +47,6 @@ const formattedPosition = computed(() => {
5447
// Function
5548
function updatePosition () {
5649
position.value = CurrentActivity.value.is2D() ? CurrentActivity.value.getCenter() : CurrentActivity.value.getCameraEllipsoidTarget()
57-
console.log(position.value)
5850
}
5951
async function onCopy () {
6052
try {

map/client/components/stickies/KTarget.vue

+1-9
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
import { computed } from 'vue'
1212
1313
// Props
14-
const props = defineProps({
14+
defineProps({
1515
image: {
1616
type: String,
1717
default: 'kdk/target.svg'
@@ -25,14 +25,6 @@ const props = defineProps({
2525
default: '40px'
2626
}
2727
})
28-
29-
// Computed
30-
const width = computed(() => {
31-
return `${props.size}px`
32-
})
33-
const height = computed(() => {
34-
return `${props.size}px`
35-
})
3628
</script>
3729

3830
<style lang="scss" scoped>

0 commit comments

Comments
 (0)