[Cartoweb-users] refresh map

Fabio D'Ovidio fabiodovidio at gmail.com
Tue Jul 1 04:26:12 EDT 2008


Sorry!
I wanted to send this mail to OpenLayers ML......

Sorry again!
Thanks a lot for your replay!!

Oliver Christen ha scritto:
> Hi
>
> You could certainly do an timed ajax call that would send a request to 
> the server every x min/sec to check if some modifications have been 
> done on the layers. but it means you also need to add some code on php 
> side so the information about the layers state is available (modifed, 
> not modified or maybe modification date/time)
> then if the date/time (sent via ajax) of the map image displayed in 
> the user's browser is older than the last layer modification, trigger 
> the image coreplugin, otherwise do nothing.
> that way you do not have to reload the whole map image if there was no 
> modification.
>
> something like that.
>
> regards
> Oliver
>
>
>> Hi!
>> Is there a simple way to refresh map (for example ajaxable) after 
>> doing some changes on my layers (i am drawing them trought WFS-T).
>> Now i am simply using something like that:
>>
>> JavaScript:location.reload(true);
>>
>> I could use also:
>> WMS_LAYER.mergeNewParams({'foo': Math.random()});
>>
>> but i'd like to refresh the whole map..
>>
>> Thanks
>>
>> -- 
>> Ing. Fabio D'Ovidio
>>
>> INOVA Open Solutions s.r.l.
>> Web : http://www.inovaos.it
>> Tel.: 081 197 57 600
>> mail: fabiodovidio at gmail.com
>>
>> _______________________________________________
>> Cartoweb-users mailing list
>> Cartoweb-users at lists.maptools.org
>> http://lists.maptools.org/mailman/listinfo/cartoweb-users
>>
>
>

-- 
Ing. Fabio D'Ovidio

INOVA Open Solutions s.r.l.
Web : http://www.inovaos.it
Tel.: 081 197 57 600
mail: fabiodovidio at gmail.com



More information about the Cartoweb-users mailing list