[fusion-commits] r2983 - sandbox/mgrfc158/layers/MapGuide

svn_fusion at osgeo.org svn_fusion at osgeo.org
Thu Apr 20 04:19:48 PDT 2017


Author: jng
Date: 2017-04-20 04:19:47 -0700 (Thu, 20 Apr 2017)
New Revision: 2983

Modified:
   sandbox/mgrfc158/layers/MapGuide/MapGuide.js
Log:
Don't de-arrayify tooltip response when parsing if we're on a 3.3 server

Modified: sandbox/mgrfc158/layers/MapGuide/MapGuide.js
===================================================================
--- sandbox/mgrfc158/layers/MapGuide/MapGuide.js	2017-04-19 18:37:39 UTC (rev 2982)
+++ sandbox/mgrfc158/layers/MapGuide/MapGuide.js	2017-04-20 11:19:47 UTC (rev 2983)
@@ -2005,11 +2005,11 @@
         this.oMaptip = {t:"",h:""};
         var t = tooltip['FeatureInformation']['Tooltip'];
         if (t) {
-          this.oMaptip.t = t[0].replace(/\\n/g, "<br>");
+          this.oMaptip.t = (this.bHasCleanJsonSupport ? t : t[0]).replace(/\\n/g, "<br>");
         }
         var h = tooltip['FeatureInformation']['Hyperlink'];
         if (h) {
-          this.oMaptip.h = h[0];
+          this.oMaptip.h = (this.bHasCleanJsonSupport ? h : h[0]);
         }
         this.mapWidget.triggerEvent(Fusion.Event.MAP_MAPTIP_REQ_FINISHED, this.oMaptip);
     },



More information about the fusion-commits mailing list