[mapguide-users] RE: Force Refresh of Layers
Walt Welton-Lair
walt.welton-lair at autodesk.com
Sat Jan 20 09:08:42 EST 2007
Sorry, off the top of my head I don't know how to loop over sessions.
-----Original Message-----
From: mapguide-users-bounces at lists.osgeo.org on behalf of kalpesh
Sent: Sat 1/20/2007 12:46 PM
To: mapguide-users at lists.osgeo.org
Cc:
Subject: [mapguide-users] RE: Force Refresh of Layers
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.
_______________________________________________
mapguide-users mailing list
mapguide-users at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapguide-users/attachments/20070120/bd93ddfd/attachment.html
More information about the mapguide-users
mailing list