[OpenLayers-Commits] r5103 - sandbox/context/lib/OpenLayers/Format
commits at openlayers.org
commits at openlayers.org
Fri Nov 2 08:08:40 EDT 2007
Author: ominiverdi
Date: 2007-11-02 08:08:36 -0400 (Fri, 02 Nov 2007)
New Revision: 5103
Modified:
sandbox/context/lib/OpenLayers/Format/OWC.js
Log:
Context: added OutputFormat matching for WMS
Modified: sandbox/context/lib/OpenLayers/Format/OWC.js
===================================================================
--- sandbox/context/lib/OpenLayers/Format/OWC.js 2007-11-02 11:41:18 UTC (rev 5102)
+++ sandbox/context/lib/OpenLayers/Format/OWC.js 2007-11-02 12:08:36 UTC (rev 5103)
@@ -143,6 +143,11 @@
var onlineResource = this.findChildByName(server,'OnlineResource');
var url = onlineResource.getAttribute('xlink:href');
+ //Get Output Format
+ var outFormat = this.concatChildValues(this.findChildByName(layer,'ows:OutputFormat'));
+
+
+
//built layer structure
layer = {};
layer.CLASS_NAME = "OpenLayers.Layer.WMS";
@@ -150,7 +155,7 @@
layer.url = url;
layer.params = {};
layer.params.LAYERS = name;
- layer.params.FORMAT = 'image/png';
+ layer.params.FORMAT = outFormat;//'image/png';
layer.params.SERVICE = 'WMS';
layer.params.VERSION = version;
layer.params.REQUEST = 'GetMap';
More information about the Commits
mailing list