Describe the bug
Using the viewer API to toggle a map group / layer doesn't update the legend to reflect.
On further investigation if I toggle a layer in the same manner then open / close the folder it is in it is ticked as expected....
What is your environment?
MapGuide Installation
Version: 4.0.0.10004
OS: Windows 11
WebTier configuration (IIS/Apache): IIS
mapguide-react-layout version: 0.14.7
To Reproduce
Steps to reproduce the behavior:
Go to mapguide-react-layout Sidebar Application in browser
Open a console
execute the following actions where Services is a valid group name:
var grp = getViewer()._state.map.Group.filter(g=>g.Name == "Services")[0];
var setVisibleAction = MapGuide.Actions.Legend.setGroupVisibility("MainMap", {id:grp.ObjectId,value:true});
getViewer().dispatch(setVisibleAction);
Expected behavior
Defined Group is turned on
Legend folder/layer tick reflects groups new state
Map is refreshed to reflect new state
Screenshots/Browser DevTools output
Does your browser devtools (F12) show any console/network errors at the time the problem occurs or is there any visual indicators of the problem? No errors
Describe the bug Using the viewer API to toggle a map group / layer doesn't update the legend to reflect. On further investigation if I toggle a layer in the same manner then open / close the folder it is in it is ticked as expected....
What is your environment?
To Reproduce Steps to reproduce the behavior:
Expected behavior
Screenshots/Browser DevTools output Does your browser devtools (F12) show any console/network errors at the time the problem occurs or is there any visual indicators of the problem? No errors
Include relevant output/screenshots here: N/A