[Mapbender-users] Refresh WMS-Layer every 30 Seconds

Mike Meier stirc at gmx.de
Wed Apr 9 11:03:56 EDT 2008


It works. setSingleMapRequest with setTimeout.

Mike

Christoph Baudson schrieb:
> Tilo Wütherich schrieb:
>> Hi Mike,
>>
>>  
>>> how can i refresh a WMS-Layer every 30 seconds? (not the whole
>>>     
>>
>> there is a mod_repaint. Usually it is called by onClick, but I'm sure 
>> you
>> can add an appropriate javascript-call every x seconds or so.
>>   
>
> I guess you could use
>
> setSingleMapRequest(frameName,wms_id)
>
> alternatively for this purpose.
>
> Maybe add a new module in "Edit GUI Elements" (an empty div), with a 
> JavaScript file listed under "javascripts". This JS file could contain 
> a function with a setTimeout mechanism.
>
> You could register this function that starts the timeout with the init 
> functions.
>
> I think it's a pretty cool idea, and I would love to see a demo if you 
> have a result. If you need further help, let us know
>
> Christoph
>
>> Cheers,
>>
>> Tilo
>>
>> _______________________________________________
>> Mapbender_users mailing list
>> Mapbender_users at lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/mapbender_users
>>   
>
>



More information about the Mapbender_users mailing list