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

svn_fusion at osgeo.org svn_fusion at osgeo.org
Fri Dec 19 12:52:06 EST 2008


Author: madair
Date: 2008-12-19 12:52:06 -0500 (Fri, 19 Dec 2008)
New Revision: 1728

Modified:
   branches/fusion-1.1/MapGuide/MapGuide.js
Log:
re #183: add iamge format as MapGuide extension parameter

Modified: branches/fusion-1.1/MapGuide/MapGuide.js
===================================================================
--- branches/fusion-1.1/MapGuide/MapGuide.js	2008-12-18 23:46:16 UTC (rev 1727)
+++ branches/fusion-1.1/MapGuide/MapGuide.js	2008-12-19 17:52:06 UTC (rev 1728)
@@ -44,14 +44,16 @@
     oSelection: null,
     bDisplayInLegend: true,   //TODO: set this in AppDef?
     bExpandInLegend: true,   //TODO: set this in AppDef?
-    bMapLoaded : false,
-    bIsMapWidgetLayer : true,  //Setthis to false for overview map layers
+    bMapLoaded: false,
+    bIsMapWidgetLayer: true,  //Setthis to false for overview map layers
     bLayersReversed: false,     //MGOS returns layers top-most layer first
 
     //the resource id of the current MapDefinition
     _sResourceId: null,
 
+    //request params
     clientAgent: 'Fusion Viewer',
+    defaultFormat: 'PNG',
     
     initialize : function(map, mapTag, isMapWidgetLayer) {
         // console.log('MapGuide.initialize');
@@ -71,6 +73,7 @@
         var extension = mapTag.extension; //TBD: this belongs in layer tag?
         this.selectionType = extension.SelectionType ? extension.SelectionType[0] : 'INTERSECTS';
         this.ratio = extension.MapRatio ? extension.MapRatio[0] : 1.0;
+        this.imageFormat = extension.ImageFormat ? extension.ImageFormat[0] : this.defaultFormat;
         
         //add in the handler for CTRL-click actions for the map, not an overviewmap
         if (this.bIsMapWidgetLayer) {
@@ -509,6 +512,7 @@
         params = {        //single tile params
           session: this.getSessionID(),
           mapName: this._sMapname,
+          format: this.imageFormat,
           clientagent: this.clientAgent
         };
         params.showLayers = this.aShowLayers.length > 0 ? this.aShowLayers.toString() : null;



More information about the fusion-commits mailing list