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