diff --git a/src/GeoInfo.js b/src/GeoInfo.js index dcbba541..da1751e4 100644 --- a/src/GeoInfo.js +++ b/src/GeoInfo.js @@ -64,9 +64,14 @@ register_hook('init', function () { function updateMapView () { let scale = formatUnits.distance(global.map.getMetersPerPixel()) + let scale2 = formatUnits.area(Math.pow(global.map.getMetersPerPixel(), 2)) let precision = getPrecision() - domZoom.innerHTML = 'z' + Math.round(global.map.getZoom()) + ', ' + scale + '/px' + domZoom.innerHTML = 'z' + + Math.round(global.map.getZoom()) + ', ' + + scale + '/px, ' + + scale2 + '/px²' + + '' let bounds = map.getBounds() domBBoxNW.innerHTML = '' + formatUnits.coord(bounds.getNorthWest().wrap(), { precision }) + ''