[fusion-commits] r1402 - trunk/lib
svn_fusion at osgeo.org
svn_fusion at osgeo.org
Fri May 9 13:32:39 EDT 2008
Author: madair
Date: 2008-05-09 13:32:39 -0400 (Fri, 09 May 2008)
New Revision: 1402
Modified:
trunk/lib/Map.js
Log:
re #2: only issue a warning if the metersPerUnit value differs from what was previously set
Modified: trunk/lib/Map.js
===================================================================
--- trunk/lib/Map.js 2008-05-09 17:32:10 UTC (rev 1401)
+++ trunk/lib/Map.js 2008-05-09 17:32:39 UTC (rev 1402)
@@ -652,8 +652,10 @@
Fusion.initUnits(metersPerUnit);
this._fMetersperunit = metersPerUnit;
} else {
- Fusion.reportError(new Fusion.Error(Fusion.Error.WARNING,
- 'meters per unit value already set'));
+ if (metersPerUnit != this._fMetersperunit) {
+ Fusion.reportError(new Fusion.Error(Fusion.Error.WARNING,
+ 'meters per unit value already set'));
+ }
}
},
More information about the fusion-commits
mailing list