[fusion-commits] r1803 - trunk/layers/MapServer
svn_fusion at osgeo.org
svn_fusion at osgeo.org
Wed Mar 4 15:13:16 EST 2009
Author: pdeschamps
Date: 2009-03-04 15:13:16 -0500 (Wed, 04 Mar 2009)
New Revision: 1803
Modified:
trunk/layers/MapServer/MapServer.js
Log:
closes #185: added Fusion.getQueryParam('theme'); to the init function to override the mapfile if present closing.
Modified: trunk/layers/MapServer/MapServer.js
===================================================================
--- trunk/layers/MapServer/MapServer.js 2009-03-03 21:36:55 UTC (rev 1802)
+++ trunk/layers/MapServer/MapServer.js 2009-03-04 20:13:16 UTC (rev 1803)
@@ -54,6 +54,14 @@
this.sMapFile = mapTag.extension.MapFile ? mapTag.extension.MapFile[0] : '';
+ // load mapfrom the querystring if "theme" is present.
+ var newTheme = Fusion.getQueryParam('theme');
+ if (newTheme != '') {
+ this.sMapFile = newTheme;
+ //clear the query param after it has been used once
+ Fusion.queryParams['theme'] = null;
+ }
+
this.mapMetadataKeys = mapTag.extension.MapMetadata ? mapTag.extension.MapMetadata[0] : null;
this.layerMetadataKeys = mapTag.extension.LayerMetadata ? mapTag.extension.LayerMetadata[0] : null;
More information about the fusion-commits
mailing list