Translate the rotate button tooltip
This commit is contained in:
parent
9b5487499a
commit
0c27768e91
@ -248,7 +248,7 @@ export default {
|
||||
// If heading is specified
|
||||
if (this.headingInRadiansFromNorth !== null) {
|
||||
const rotation = (this.isInAutorotateMap
|
||||
? - this.map.getView().getRotation() - Math.PI / 2
|
||||
? -this.map.getView().getRotation() - Math.PI / 2
|
||||
: (
|
||||
this.headingInRadiansFromNorth
|
||||
+ this.map.getView().getRotation()
|
||||
@ -365,6 +365,7 @@ export default {
|
||||
rotateOptions: {
|
||||
autoHide: false,
|
||||
label: rotateLabel,
|
||||
tipLabel: this.$t('map.toggleRotationMode'),
|
||||
resetNorth: () => {
|
||||
// Switch autorotate mode
|
||||
this.hasUserAutorotateMap = !this.hasUserAutorotateMap;
|
||||
|
@ -44,7 +44,8 @@
|
||||
"pickALocationManually": "pick a location manually"
|
||||
},
|
||||
"map": {
|
||||
"attribution": "Map data \u00a9 <a href=\"http://openstreetmap.org\">OpenStreetMap</a> contributors"
|
||||
"attribution": "Map data \u00a9 <a href=\"http://openstreetmap.org\">OpenStreetMap</a> contributors",
|
||||
"toggleRotationMode": "Toggle rotation mode"
|
||||
},
|
||||
"menu": {
|
||||
"About": "Help",
|
||||
|
Loading…
Reference in New Issue
Block a user