<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2800.1106" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=484415616-01082008>Sorry, counter has to be in lowercase and I have
thought the layer would be a WMS layer. For Mapserver layers there seems not to
exist a redraw function. Perhaps this will work:</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=484415616-01082008></SPAN></FONT> </DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=484415616-01082008>add counter to the params of your Mapserver layer and
in your redraw function use <FONT color=#000000
size=3>recorridos.params.counter++; </FONT></SPAN></FONT></DIV>
<DIV dir=ltr align=left><SPAN class=484415616-01082008>This should change the
url for your request, but i don't know, wether this updates the
layer.</SPAN></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=484415616-01082008></SPAN></FONT> </DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=484415616-01082008>Otherwise i have no idea.</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=484415616-01082008></SPAN></FONT> </DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=484415616-01082008>Arnd</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=484415616-01082008></SPAN></FONT> </DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=484415616-01082008></SPAN></FONT> </DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff
size=2><html><BR> <head><BR> <style
type="text/css"><BR> #map
{<BR> width:
900px;<BR>
height: 600px;<BR>
}<BR> </style><BR>
<title>Sistema de Trasporte Urbano - Cuenca Ecuador
</title><BR> <script
src="OpenLayers.js"></script><BR> <script
type="text/javascript"></FONT></DIV>
<DIV> </DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff
size=2> //the global
variables<BR> var
map;<BR> var
recorridos;<BR> var
counter=0;<BR>
<BR> function
init()<BR>
{<BR> var
mapOptions =
{<BR>
maxExtent: new OpenLayers.Bounds(713620.5057, 9673754.1986, 732936.3635,
9687405.8116),<BR>
maxResolution:
'auto',<BR>
projection:"EPSG:32717",<BR>
units: "m"};</FONT></DIV>
<DIV> </DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff
size=2> var
map = new OpenLayers.Map('map',
mapOptions);<BR>
map.addControl(new
OpenLayers.Control.LayerSwitcher());<BR>
var panel = new
OpenLayers.Control.NavToolbar();<BR>
map.addControl(panel);<BR>
map.addControl(new
OpenLayers.Control.MousePosition({'div':OpenLayers.Util.getElement('coords')}));</FONT></DIV>
<DIV> </DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff
size=2> var manzanas = new
OpenLayers.Layer.MapServer.Untiled( "manzanas",
"../../cgi-bin/mapserv",<BR>
{map:'C:/data/publicacion.map',<BR>
layers: 'manzanas',map_imagetype: 'png'},
{'displayInLayerSwitcher':false});</FONT></DIV>
<DIV> </DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff
size=2> var ruta22 = new
OpenLayers.Layer.MapServer.Untiled( "Ruta 22",
"../../cgi-bin/mapserv",<BR>
{map:'C:/data/publicacion.map', transparent: "true",
<BR> layers:
'ruta22_ida',map_imagetype: 'png'},{'isBaseLayer': false},
{'displayInLayerSwitcher':false});</FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2></FONT> </DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff
size=2> recorridos = new
OpenLayers.Layer.MapServer.Untiled( "Unidad()",
"../../cgi-bin/mapserv",<BR>
{map:'C:/data/publicacion.map',
<BR> layers:
'recorrido',transparent: "true", map_imagetype: 'png'<SPAN
class=484415616-01082008><FONT color=#000000 size=3>,
'counter':0</FONT></SPAN>});<BR>
ruta22.setVisibility(false);</FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2></FONT> </DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff
size=2>
map.addLayers([ruta22, manzanas,
recorridos]);<BR>
if (!map.getCenter())
map.zoomToMaxExtent();<BR>
setTimeout("Layer_redraw()",10*1000);<BR>}</FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2></FONT> </DIV>
<DIV dir=ltr align=left><FONT face=Arial><FONT color=#0000ff><FONT
size=2>function Layer_redraw() { <BR><SPAN
class=484415616-01082008></SPAN></FONT></FONT></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial><FONT color=#0000ff><FONT size=2><SPAN
class=484415616-01082008> //this is only for WMS
layer</SPAN></FONT></FONT></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial> <SPAN
class=484415616-01082008>//</SPAN>recorridos.mergeNewParams({ counter :
counter++ });<BR><SPAN class=484415616-01082008><FONT color=#0000ff
size=2> <FONT color=#000000
size=3>recorridos.params.counter++;</FONT></FONT></SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2>} </FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2></FONT> </DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2>
</script><BR> </head><BR> <body
onLoad="init()"><BR>
<table><BR>
<tr><BR> <td
align="left"><div
id="map"></div></td><BR>
</tr><BR> </table><BR>
</body><BR></html></FONT></DIV></BODY></HTML>