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 heading is specified
|
||||||
if (this.headingInRadiansFromNorth !== null) {
|
if (this.headingInRadiansFromNorth !== null) {
|
||||||
const rotation = (this.isInAutorotateMap
|
const rotation = (this.isInAutorotateMap
|
||||||
? - this.map.getView().getRotation() - Math.PI / 2
|
? -this.map.getView().getRotation() - Math.PI / 2
|
||||||
: (
|
: (
|
||||||
this.headingInRadiansFromNorth
|
this.headingInRadiansFromNorth
|
||||||
+ this.map.getView().getRotation()
|
+ this.map.getView().getRotation()
|
||||||
@ -365,6 +365,7 @@ export default {
|
|||||||
rotateOptions: {
|
rotateOptions: {
|
||||||
autoHide: false,
|
autoHide: false,
|
||||||
label: rotateLabel,
|
label: rotateLabel,
|
||||||
|
tipLabel: this.$t('map.toggleRotationMode'),
|
||||||
resetNorth: () => {
|
resetNorth: () => {
|
||||||
// Switch autorotate mode
|
// Switch autorotate mode
|
||||||
this.hasUserAutorotateMap = !this.hasUserAutorotateMap;
|
this.hasUserAutorotateMap = !this.hasUserAutorotateMap;
|
||||||
|
@ -44,7 +44,8 @@
|
|||||||
"pickALocationManually": "pick a location manually"
|
"pickALocationManually": "pick a location manually"
|
||||||
},
|
},
|
||||||
"map": {
|
"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": {
|
"menu": {
|
||||||
"About": "Help",
|
"About": "Help",
|
||||||
|
Loading…
Reference in New Issue
Block a user