I am planning to use Geoserver WMS layer for many administrative areas with raster layer (geotiff). So my objective is, when someone selects another administration area, I want the layer to refresh and change layer features. I know, I can remove one layer and add another one but I have many layers. The code could be shorter by changing url of a layer or the layer name itself.
My second objective is to use PostGIS data as a store. This layer is dynamic and data changes on PostGIS based on user input and I would like to refresh the layer when user clicks a button. I tried the following code but the problem I am getting is, the default view caches the previous image.
```
function updateWMS(){
mywms.getSource().dispatchChangeEvent();
map.updateSize();
}
```
Regards,
Wondimagegn
Monitor 25 network devices or servers for free with OpManager!
OpManager is web-based network management software that monitors
network devices and physical & virtual servers, alerts via email & sms
for fault. Monitor 25 devices for free with no restriction. Download now http://ad.doubleclick.net/ddm/clk/292181274;119417398;o
I am planning to use Geoserver WMS layer for many administrative areas with raster layer (geotiff). So my objective is, when someone selects another administration area, I want the layer to refresh and change layer features. I know, I can remove one layer and add another one but I have many layers. The code could be shorter by changing url of a layer or the layer name itself.
My second objective is to use PostGIS data as a store. This layer is dynamic and data changes on PostGIS based on user input and I would like to refresh the layer when user clicks a button. I tried the following code but the problem I am getting is, the default view caches the previous image.
```
function updateWMS(){
mywms.getSource().dispatchChangeEvent();
map.updateSize();
}
```
Regards,
Wondimagegn
Monitor 25 network devices or servers for free with OpManager!
OpManager is web-based network management software that monitors
network devices and physical & virtual servers, alerts via email & sms
for fault. Monitor 25 devices for free with no restriction. Download now http://ad.doubleclick.net/ddm/clk/292181274;119417398;o
It could be that nobody knows the answer to your question, or understood what you were trying to ask. Do keep in mind this is the geoserver list and your question appears to be about open layers!?
We have some guidelines on writing good questions.
I am planning to use Geoserver WMS layer for many administrative areas with raster layer (geotiff). So my objective is, when someone selects another administration area, I want the layer to refresh and change layer features. I know, I can remove one layer and add another one but I have many layers. The code could be shorter by changing url of a layer or the layer name itself.
My second objective is to use PostGIS data as a store. This layer is dynamic and data changes on PostGIS based on user input and I would like to refresh the layer when user clicks a button. I tried the following code but the problem I am getting is, the default view caches the previous image.
```
function updateWMS(){
mywms.getSource().dispatchChangeEvent();
map.updateSize();
}
```
Regards,
Wondimagegn
Monitor 25 network devices or servers for free with OpManager!
OpManager is web-based network management software that monitors
network devices and physical & virtual servers, alerts via email & sms
for fault. Monitor 25 devices for free with no restriction. Download now http://ad.doubleclick.net/ddm/clk/292181274;119417398;o