[OpenLayers-Trac] [OpenLayers] #1409: Autodetect image format for a WMS server

OpenLayers trac at openlayers.org
Mon Mar 3 03:45:08 EST 2008


#1409: Autodetect image format for a WMS server
---------------------------------+------------------------------------------
 Reporter:  manifold             |       Owner:  euzuro
     Type:  feature              |      Status:  new   
 Priority:  major                |   Milestone:        
Component:  Layer.WMS            |     Version:  2.5   
 Keywords:  wms getcapabilities  |       State:        
---------------------------------+------------------------------------------
 Adding a WMS layer without specifying the image type forces the image type
 to 'image/jpeg', 'image/png' or 'image/gif' depending on whether or not
 the layer should be transparent and whether or not the browser can render
 transparent PNGs. This makes it necessary to explicitly override the
 format when communicating with any WMS server that does not support all
 three of the above formats, since OpenLayers can ask the server to render
 in any of them.

 It would be better to set the default format to an empty string or
 something like "auto" and replace that string on first use with the format
 that is known to be supported by the server, asking the server for the
 list of supported formats via the GetCapabilities request.

-- 
Ticket URL: <http://trac.openlayers.org/ticket/1409>
OpenLayers <http://openlayers.org/>
A free AJAX map viewer


More information about the Trac mailing list