kopia lustrzana https://github.com/manuelkasper/sotlas-frontend
Add info about hiking difficulty
rodzic
4f94f6ad45
commit
d458738639
|
@ -30,7 +30,10 @@
|
||||||
</div>
|
</div>
|
||||||
<div class="map-option" v-if="mapType !== 'toposvalbard' && mapType !== 'norkart' && mapType !== 'caltopo'">
|
<div class="map-option" v-if="mapType !== 'toposvalbard' && mapType !== 'norkart' && mapType !== 'caltopo'">
|
||||||
<b-field grouped>
|
<b-field grouped>
|
||||||
<b-checkbox v-model="mapOptions.difficulty" size="is-small" @input="setMapOption('difficulty', $event)">Hiking difficulty</b-checkbox>
|
<b-checkbox v-model="mapOptions.difficulty" size="is-small" @input="setMapOption('difficulty', $event)">
|
||||||
|
Hiking difficulty
|
||||||
|
<b-icon pack="fas" icon="info-circle" size="is-small" type="is-info" @click.native="showHikingDifficultyInfo" />
|
||||||
|
</b-checkbox>
|
||||||
</b-field>
|
</b-field>
|
||||||
<template v-if="mapType.startsWith('swisstopo')">
|
<template v-if="mapType.startsWith('swisstopo')">
|
||||||
<b-field grouped>
|
<b-field grouped>
|
||||||
|
@ -197,6 +200,17 @@ export default {
|
||||||
icon: 'info-circle',
|
icon: 'info-circle',
|
||||||
iconPack: 'fas'
|
iconPack: 'fas'
|
||||||
})
|
})
|
||||||
|
},
|
||||||
|
showHikingDifficultyInfo (event) {
|
||||||
|
event.preventDefault()
|
||||||
|
this.$buefy.dialog.alert({
|
||||||
|
title: 'Hiking difficulty',
|
||||||
|
message: '<p>The hiking difficulty grading uses the <a href="https://www.sac-cas.ch/fileadmin/Ausbildung_und_Wissen/Sicher_unterwegs/Sicher_unterwegs_Wandern/2020_Berg_Alpinwanderskala_EN.pdf" target="_blank">SAC scale</a>. Colors shown are as follows:</p><ul><li><span style="color: #cccc00">Yellow</span>: T1</li><li><span style="color: #cc0000">Red</span>: T2…T3</li><li><span style="color: #3333cc">Blue</span>: T4…T6</li></ul>',
|
||||||
|
type: 'is-info',
|
||||||
|
hasIcon: true,
|
||||||
|
icon: 'info-circle',
|
||||||
|
iconPack: 'fas'
|
||||||
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Ładowanie…
Reference in New Issue