[Users] refresh mappanel using different url not the same like do layer.redraw
hassane allouch
allouch.hassane at gmail.com
Sun May 15 11:20:35 CEST 2011
Hello
I have a mappanel (containning a wms layer with parametrized url {sql View})
, a textField and buton. When the user enter the value of the parameter's
url and click the buton, the mapPanel should reload with the new url (the
new value of the parameter) without reloading all the web page. I tried
layer.redraw(true), it refreshs the panel but wth the same value of the
parameter (so the same url).
this is the code:
var layerDashBoard = new OpenLayers.Layer.WMS(
"communeProv",
"
http://localhost:8080/geoserver/sf/wms?service=WMS&version=1.1.0&request=GetMap&layers=sf:communeProv&srs=EPSG:4326&
*viewparams=province:" + idProv,*
{layers: "sf:communeProv",
format: "image/png",
}
);
thank you
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.geoext.org/pipermail/users/attachments/20110515/41e55482/attachment.htm
More information about the Users
mailing list