[mapguide-users] Re: How can I programatically refresh the whole viewer (with map and legend)?

Jackie Ng jumpinjackie at gmail.com
Mon Jun 6 06:02:29 EDT 2011


Change your one-liner from this:

function RefreshMap() { var mapframe= parent.parent.GetMapFrame()
mapframe.Refresh(); mapframe.GetLegendCtrl().location.reload(true); } 

to this:

function RefreshMap() { parent.parent.Refresh(); } 

Because:

1. Your one-line has a syntax error
2. Calling Refresh() of the main frame will refresh all the elements that
need to be refreshed.

- Jackie



--
View this message in context: http://osgeo-org.1803224.n2.nabble.com/How-can-I-programatically-refresh-the-whole-viewer-with-map-and-legend-tp6430947p6444504.html
Sent from the MapGuide Users mailing list archive at Nabble.com.


More information about the mapguide-users mailing list