mirror of
https://github.com/rastapasta/mapscii.git
synced 2024-11-21 23:53:08 +01:00
git push origin masterMerge branch 'jaller94-mouse-footer-activate'
This commit is contained in:
commit
5e095f473a
@ -246,9 +246,12 @@ class Mapscii {
|
|||||||
// tile = utils.ll2tile(this.center.lon, this.center.lat, this.zoom);
|
// tile = utils.ll2tile(this.center.lon, this.center.lat, this.zoom);
|
||||||
// `tile: ${utils.digits(tile.x, 3)}, ${utils.digits(tile.x, 3)} `+
|
// `tile: ${utils.digits(tile.x, 3)}, ${utils.digits(tile.x, 3)} `+
|
||||||
|
|
||||||
return `center: ${utils.digits(this.center.lat, 3)}, ${utils.digits(this.center.lon, 3)} `+
|
let footer = `center: ${utils.digits(this.center.lat, 3)}, ${utils.digits(this.center.lon, 3)} `;
|
||||||
`zoom: ${utils.digits(this.zoom, 2)} `+
|
footer += ` zoom: ${utils.digits(this.zoom, 2)} `;
|
||||||
`mouse: ${utils.digits(this.mousePosition.lat, 3)}, ${utils.digits(this.mousePosition.lon, 3)} `;
|
if (this.mousePosition.lat !== undefined) {
|
||||||
|
footer += ` mouse: ${utils.digits(this.mousePosition.lat, 3)}, ${utils.digits(this.mousePosition.lon, 3)} `;
|
||||||
|
}
|
||||||
|
return footer;
|
||||||
}
|
}
|
||||||
|
|
||||||
notify(text) {
|
notify(text) {
|
||||||
|
Loading…
Reference in New Issue
Block a user