[fusion-commits] r2650 - sandbox/adsk/2.5k/widgets

svn_fusion at osgeo.org svn_fusion at osgeo.org
Thu Mar 7 01:25:39 PST 2013


Author: liuar
Date: 2013-03-07 01:25:39 -0800 (Thu, 07 Mar 2013)
New Revision: 2650

Modified:
   sandbox/adsk/2.5k/widgets/GoogleStreetViewer.js
Log:
Submit on behalf of Andy Zhang.

Because the new widget GoogleStreetView changed the error handler of undefined CS. For the CSs which are not defined in fusion, now it throws an exception. While it just skips the error in 2013. And fusion only defines a few CSs, this will result in many users get exception dialog when using fusion web layout.
To fix it, we need to change GoogleStreetView.js to only throw exception when GoogleStreetView is activated.


Modified: sandbox/adsk/2.5k/widgets/GoogleStreetViewer.js
===================================================================
--- sandbox/adsk/2.5k/widgets/GoogleStreetViewer.js	2013-03-01 08:19:31 UTC (rev 2649)
+++ sandbox/adsk/2.5k/widgets/GoogleStreetViewer.js	2013-03-07 09:25:39 UTC (rev 2650)
@@ -56,6 +56,7 @@
     *
     */
     initializeWidget: function (widgetTag) {
+        Fusion.Widget.GoogleStreetViewer.hasGSV = true;
         this.csTransformErrorMessage = OpenLayers.i18n("googleSteetViewCSTransformError");
         this.serviceUnavailableMessage = OpenLayers.i18n("googleSteetViewNotAvailableError");
         this.googleBaseMapErrorMessage = OpenLayers.i18n("googleBaseMapNotOnError");
@@ -342,7 +343,7 @@
 });
 
 Proj4js.reportError = function (msg) {
-    throw msg;
+    if(Fusion.Widget.GoogleStreetViewer.hasGSV) throw msg;
     //console.log(msg);
 };
 



More information about the fusion-commits mailing list