864 layers !!!??? o_O
If you want to avoid a full legend rebuild, then your shortcut functions
that do the layer/group toggling should return some kind of changeset JSON
structure that the legend widget can use to update affected parts.
So just to spitball an example from your sample server-side
Hi!
I am using MapGuide version 3.1.0.9064 on a computer with Windows 10
Enterprise and IIS.
Using Application definition (Fusion layout), with slate index.html
I have a map with 864 layers on the map.
I have made shortcut functions to turn of and on layers and layergroups on
runtime:
Example: