[OpenLayers-Users] OpenLayers.Layer.WMS - using SVG Format?

Planet_x andrew.stewart at reddeer.ca
Fri Dec 14 14:40:30 PST 2012


Hi, just wondering if instead of pushing out an OpenLayers.Layer.WMS as
format:image/png I can use svg. My getcapabilities request of my WMS says
that is supports SVG with the following - 

- <GetMap>
  <Format>image/png</Format> 
  <Format>image/jpeg</Format> 
  <Format>image/svg+xml</Format> 
  <Format>svgz</Format>

However when I declare a WMS layer with svg format it does not show, is
there any way to use SVG with a WMS layer? Thanks.

 layer_Overview = new OpenLayers.Layer.WMS("Overview Map Layers", wms, {
    layers: ["OVERVIEW_County", "OVERVIEW_City_Boundaries",
"OVERVIEW_Roads", "OVERVIEW_River", "OVERVIEW_Roads_Highways"],
    VERSION: "1.3.0",
    format: 'image/svg+xml'
}, {
    isBaseLayer: true,
    displayInLayerSwitcher: false,
    singleTile: true,
    buffer: 1,
    ratio: 1
});



--
View this message in context: http://osgeo-org.1560.n6.nabble.com/OpenLayers-Layer-WMS-using-SVG-Format-tp5023159.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.


More information about the Users mailing list