[fusion-commits] r1695 - branches/fusion-1.1/MapServer

svn_fusion at osgeo.org svn_fusion at osgeo.org
Fri Nov 28 14:27:58 EST 2008


Author: madair
Date: 2008-11-28 14:27:58 -0500 (Fri, 28 Nov 2008)
New Revision: 1695

Modified:
   branches/fusion-1.1/MapServer/MapServer.js
Log:
re #185: add support for the theme query param to set mapfile value

Modified: branches/fusion-1.1/MapServer/MapServer.js
===================================================================
--- branches/fusion-1.1/MapServer/MapServer.js	2008-11-27 21:25:35 UTC (rev 1694)
+++ branches/fusion-1.1/MapServer/MapServer.js	2008-11-28 19:27:58 UTC (rev 1695)
@@ -96,6 +96,10 @@
         this.layerRoot = new Fusion.Maps.MapServer.Group(rootOpts,this);
 
         this.sMapFile = extension.MapFile ? extension.MapFile[0] : '';
+        var newTheme = Fusion.getQueryParam('theme');
+        if (newTheme != '') {
+          this.sMapFile = newTheme;
+        }
 
         this.mapMetadataKeys = extension.MapMetadata ? extension.MapMetadata[0] : null;
         this.layerMetadataKeys = extension.LayerMetadata ? extension.LayerMetadata[0] : null;



More information about the fusion-commits mailing list