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,
-- 
-- Gertjan van Oosten, [EMAIL PROTECTED], West Consulting B.V., +31 15 2191 600

-------------------------------------------------------------------------
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