[mapguide-users] Force Refresh of Layers

Walt Welton-Lair walt.welton-lair at autodesk.com
Fri Jan 19 08:11:14 EST 2007


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



More information about the mapguide-users mailing list