Hi all,

    There is a  refreshLayer function to refresh just one layer in 
MapPaneOL.js file.

With a little hack you can probably use it with timer tool.

Gertjan van Oosten a écrit :
> Hi Marcos,
>
> As quoted from Marcos Sánchez Provencio <[EMAIL PROTECTED]>:
>   
>> I have a 'rays' layer that displays rays in real time. How can I force a
>> layer redraw every 10 minutes or so?
>>
>> Any pointers appreciated :-)
>>     
>
> Add a Timer tool to your Context like this:
>
>    <Context id="mainMap">
>      //...
>      <tools>
>       //...
>         <Timer>
>           <autoStart>true</autoStart>
>           <eventName>refreshWmsLayers</eventName>
>           <every>600</every> <!-- time is in seconds -->
>         </Timer>
>       </tools>
>     </Context>
>
> This will send the refreshWmsLayers event every 600 seconds.
> [Note that MapBuilder currently has no way of refreshing just a single
> layer, so this is your best shot.]
>
> Kind regards,
>   


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Mapbuilder-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mapbuilder-users

Reply via email to