I am using MapGuide Open Source 2.2 / fusion client viewer running on RedHat Enterprise Linux 5.
var map = Fusion.getWidgetById('Map');
//map.redraw(); this is what i was using to to the complete map refresh var mapWidget = Fusion.getWidgetById("Map").aMaps;
var layers = mapWidget.aLayers;
for (var i=0; i<layers.length; i++)
var layer = layers[i];
if (layer.layerName == 'alarms')
layer.refresh(); //I have tried this two funtions calls and neither work }