AW: [OpenLayers-Users] WMS-Layer from Remote Server: MergeNewParams
SLD
Arnd Wippermann
arnd.wippermann at web.de
Mon Jun 6 12:39:16 EDT 2011
Hi,
The Remote Server needs the sld file to render serverside the map. Your sld
file have to be reachable over the internet. The Remote Server can't get
access of your local file.
If you cann't save your file on an online reachable address, your only way
is to use the WMS paramater SLD_BODY.
Arnd
_____
Von: openlayers-users-bounces at lists.osgeo.org
[mailto:openlayers-users-bounces at lists.osgeo.org] Im Auftrag von
Morper-Busch, Lucia
Gesendet: Montag, 6. Juni 2011 14:58
An: openlayers-users at lists.osgeo.org
Betreff: [OpenLayers-Users] WMS-Layer from Remote Server: MergeNewParams SLD
Hello OpenLayers Users!
How can I apply my sld-File to a WMS-Layer from a Remote Server?
var testRemoteLayer = new OpenLayers.Layer.WMS("test_Remote",
"http://RemoteServer:8080/geoserver/thermotest/wms", {
layers: namespace + ":test_area",
transparent: true,
format: 'image/png'
}, {
singleTile: false,
isBaseLayer: false,
visibility: false
}
);
map.addLayers([testRemoteLayer]);
testRemoteLayer.mergeNewParams({sld:
"http://myServer:8080/geoserver/thermomap/styles/test_area.sld"});
It works for the Layers on my Server, but not with Remote Servers. I don't
want to send SLD-Files via Email to the WMS providing partners.
Error: Connection timed out
Thanks for suggestions
Lucia
Dipl.-Geogr. Lucia Morper-Busch | Researcher
University of Salzburg | Centre for Geoinformatics - Z_GIS
Schillerstr.30 | Techno-Z, Block 15, 3rd floor | 5020 Salzburg, Austria
Phone +43 (0)662 8044 5298 | Fax +43 (0)662 8044 5260
> <http://www.zgis.at/research> Z_GIS.experts for the spatial view
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20110606/5c1f52d8/attachment-0001.html
More information about the Users
mailing list