<div>Hi,<br><br>I'm trying with this code:<br><br>basic_wms = new OpenLayers.Layer.WMS("topp:world", "<a href="http://localhost:8888/geoserver/wms">http://localhost:8888/geoserver/wms</a>", {<br> srs: 'EPSG:4326', transparent: 'true', layers: 'topp:world', styles: '', <br>
format: format, tiled: 'true' }, {isBaseLayer: true}, {buffer: 0}); <br> <br> map.addLayers([basic_wms]);<br> map.zoomToMaxExtent();<br></div>
<font size="2">
</font><br> var stationStyles = new OpenLayers.StyleMap({ // This is only for stations <br> "default": new OpenLayers.Style({ <br> fillColor: "#006699", <br> strokeColor: "#ff9933", <br>
strokeWidth: 2, <br> fillOpacity: 0.6 <br> }), <br> "select": new OpenLayers.Style({ <br> fillColor: "#006699", <br>
strokeColor: "#ff9933", <br> strokeWidth: 6, <br> fillOpacity: 1 <br> }) <br> }); <br><br><font size="2">basic_wms.mergeNewParams({ styles : stationStyles['select']}); <br>
<br></font>but does not work: D<br><br>Can anybody help me?<br><br>Thanks.<br><br>Lucas Vargas Eskopinski.<br><br><br>