[fusion-commits] r1518 - branches/fusion-1.1/MapGuide

svn_fusion at osgeo.org svn_fusion at osgeo.org
Wed Sep 10 16:21:47 EDT 2008


Author: madair
Date: 2008-09-10 16:21:47 -0400 (Wed, 10 Sep 2008)
New Revision: 1518

Modified:
   branches/fusion-1.1/MapGuide/MapGuide.js
Log:
re #65: applied to 1.1 branch, except that the param is called 'theme'

Modified: branches/fusion-1.1/MapGuide/MapGuide.js
===================================================================
--- branches/fusion-1.1/MapGuide/MapGuide.js	2008-09-10 13:29:33 UTC (rev 1517)
+++ branches/fusion-1.1/MapGuide/MapGuide.js	2008-09-10 20:21:47 UTC (rev 1518)
@@ -88,7 +88,12 @@
           }
         }
        
-        this.sMapResourceId = mapTag.resourceId ? mapTag.resourceId : '';
+        var newTheme = Fusion.getQueryParam('theme');
+        if (newTheme != '') {
+          this.sMapResourceId = newTheme;
+        } else {
+          this.sMapResourceId = mapTag.resourceId ? mapTag.resourceId : '';
+        }
         
         rootOpts = {
           displayInLegend: this.bDisplayInLegend,
@@ -308,6 +313,7 @@
             this.oLayerOL.events.register("loadcancel", this, this.loadEnd);
             
             //this is to distinguish between a regular map and an overview map
+            this.bMapLoaded = true;
             if (this.bIsMapWidgetLayer) {
               this.mapWidget.addMap(this);
               this.mapWidget.oMapOL.setBaseLayer(this.oLayerOL);
@@ -317,7 +323,6 @@
             } else {
               this.triggerEvent(Fusion.Event.MAP_LOADED);
             }
-            this.bMapLoaded = true;
         }
         this.mapWidget._removeWorker();
     },



More information about the fusion-commits mailing list