[fusion-commits] r2694 - sandbox/queryfeatures_v2/layers/MapGuide

svn_fusion at osgeo.org svn_fusion at osgeo.org
Mon May 6 04:33:06 PDT 2013


Author: jng
Date: 2013-05-06 04:33:06 -0700 (Mon, 06 May 2013)
New Revision: 2694

Modified:
   sandbox/queryfeatures_v2/layers/MapGuide/MapGuide.js
Log:
Do a check against the cached MapGuide site version to determine whether to fire off a v2.6.0 QUERYMAPFEATURES request or a v1.0.0 QUERYMAPFEATURES request.

Modified: sandbox/queryfeatures_v2/layers/MapGuide/MapGuide.js
===================================================================
--- sandbox/queryfeatures_v2/layers/MapGuide/MapGuide.js	2013-05-04 00:43:15 UTC (rev 2693)
+++ sandbox/queryfeatures_v2/layers/MapGuide/MapGuide.js	2013-05-06 11:33:06 UTC (rev 2694)
@@ -1140,11 +1140,21 @@
             options.filter = '';
         }
         
-        var bSupportsExtended = true; //If MG server >= 2.6.0
+        var bSupportsExtended = false;
+        if (this.siteVersion[0] >= 2) { //2.x or higher
+            if (this.siteVersion[0] == 2) { //Major is 2
+                if (this.siteVersion[1] >= 6) { //2.6 or higher 2.x
+                    bSupportsExtended = true;
+                }
+            } else { //3.x, 4.x, etc
+                bSupportsExtended = true;
+            }
+        }
         if (bSupportsExtended) {
             var reqData = 1; //attributes
             //TODO: Can't use inline selection image yet as we'll have to modify OpenLayers to accept an inline selection
-            //over doing a GETDYNAMICMAPOVERLAYIMAGE request
+            //over doing a GETDYNAMICMAPOVERLAYIMAGE request. When we can, or the value of 2 into the mask for inline 
+            //selection as well
             var r = new Fusion.Lib.MGRequest.MGQueryMapFeatures2(this.getSessionID(),
                                                                 this._sMapname,
                                                                 options.geometry,



More information about the fusion-commits mailing list