[fusion-commits] r2095 - trunk/widgets
svn_fusion at osgeo.org
svn_fusion at osgeo.org
Thu Mar 11 00:16:54 EST 2010
Author: liuar
Date: 2010-03-11 00:16:53 -0500 (Thu, 11 Mar 2010)
New Revision: 2095
Modified:
trunk/widgets/Measure.js
Log:
Fixed ticket #366 Measure: wrong length and segments displayed when measure with a line
Modified: trunk/widgets/Measure.js
===================================================================
--- trunk/widgets/Measure.js 2010-03-10 20:47:25 UTC (rev 2094)
+++ trunk/widgets/Measure.js 2010-03-11 05:16:53 UTC (rev 2095)
@@ -298,6 +298,9 @@
quantity = Fusion.convert(measureUnits, this.units, quantity);
}
} else {
+ if(geom.getArea() == 0)
+ return;
+
var cg = geom.getCentroid();
at = this.getMap().geoToPix(cg.x, cg.y);
quantity = geom.getGeodesicArea(proj);
More information about the fusion-commits
mailing list