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.
_______________________________________________
mapguide-users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/mapguide-users

Reply via email to