[mapguide-users] RE: Force Refresh of Layers

kalpesh kalpesh at pie-solution.com
Sat Jan 20 06:46:14 EST 2007


Do you have any sample code to loop through the session. I have tried just
MgLayer.ForceRefresh() of the layer concerned and that doesnt work.
Any help would be much appreciated.



Walt Welton-Lair wrote:
> 
> Roughly:
> 
> for each map session
>    for each layer referencing the modified feature source
>       call MgLayer->ForceRefresh()
>    refresh viewer for this map session (call mapframe.Refresh() from
> script)
> 
> Walt
> 
> -----Original Message-----
> From: mapguide-users-bounces at lists.osgeo.org
> [mailto:mapguide-users-bounces at lists.osgeo.org] On Behalf Of
> jloureiro at mediaprimer.pt
> Sent: Friday, January 19, 2007 1:57 PM
> To: mapguide-users at lists.osgeo.org
> Subject: [mapguide-users] Force Refresh of Layers
> 
> 
> 
> When some feature is inserted/updated dynamically in a feature 
> source, what we have to do to programmatically force the refresh of 
> all layers affected in all active map sessions ?
> This in case of using DWF Viewer to view the maps. When using Ajax 
> Viewer the refresh is done automatically.
> 
> 
> Thanks,
> 
> Jorge Loureiro
> 
> 
> _______________________________________________
> mapguide-users mailing list
> mapguide-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapguide-users
> 
> _______________________________________________
> mapguide-users mailing list
> mapguide-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapguide-users
> 
> 

-- 
View this message in context: http://www.nabble.com/Force-Refresh-of-Layers-tf3039739s16610.html#a8464135
Sent from the MapGuide Users mailing list archive at Nabble.com.



More information about the mapguide-users mailing list