Changeset 343


Ignore:
Timestamp:
04/03/09 16:04:57 (8 years ago)
Author:
dwins
Message:

Show superscripted 2 on units when measuring area

File:
1 edited

Legend:

Unmodified
Added
Removed
  • apps/opengeo/geoexplorer/trunk/lib/GeoExplorer.js

    r342 r343  
    313313           
    314314            measureControl.displaySystem = "metric";
    315            
    316             return metric.toFixed(2) + " " + metricUnit + "<br>"
    317                 + english.toFixed(2) + " " + englishUnit;
     315            var dim = metricData.order == 2
     316                ? '<sup>2</sup>'
     317                : '';
     318           
     319            return metric.toFixed(2) + " " + metricUnit + dim + "<br>"
     320                + english.toFixed(2) + " " + englishUnit + dim;
    318321        }, this);
    319322
Note: See TracChangeset for help on using the changeset viewer.