[OpenLayers-Users] Colons in layer names

Arnd Wippermann arnd.wippermann at web.de
Sun May 3 15:38:55 EDT 2009


Hi,

The colons should be ok, but the server wants transparent = TRUE. 

Try with transparent:'TRUE' in the layer params or afterwards
fsroads.mergeNewParams({ transparent: "TRUE" });

Arnd

-----Ursprüngliche Nachricht-----
Von: users-bounces at openlayers.org [mailto:users-bounces at openlayers.org] Im
Auftrag von AmericanBwana
Gesendet: Sonntag, 3. Mai 2009 18:18
An: users at openlayers.org
Betreff: [OpenLayers-Users] Colons in layer names


Good morning,
I'd like to use a WMS layer, but it has a colon in it. How do escape it?

Here is a snippet of my file

    var fsroads = new OpenLayers.Layer.WMS("FS Roads & Trails", 
       
"http://columbo.nrlssc.navy.mil/ogcwms/servlet/WMSServlet/USDA_Forest_Servic
e_Geodata_Clearinghouse.wms?",
        {layers: '1:3', transparent: true, format: 'image/png'},
        {isBaseLayer: false}

I've tried '1:3', and "1:3"

Here is the site I'm trying to use. 
http://columbo.nrlssc.navy.mil/ogcwms/servlet/WMSServlet/USDA_Forest_Service
_Geodata_Clearinghouse.wms?SERVICE=WMS&REQUEST=GetCapabilities


Thank you.

--
View this message in context:
http://n2.nabble.com/Colons-in-layer-names-tp2778148p2778148.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.

_______________________________________________
Users mailing list
Users at openlayers.org
http://openlayers.org/mailman/listinfo/users




More information about the Users mailing list