If you have a config with multiple mapservers, each with more than 1 layer configured, then only the first list of layers appears in the control. This is because the push of an array layers to self.mapLayers does not concatenate the list, it creates a second element in the self.mapLayers object. This simple fix solves the issue.
If you have a config with multiple mapservers, each with more than 1 layer configured, then only the first list of layers appears in the control. This is because the
push
of an arraylayers
toself.mapLayers
does not concatenate the list, it creates a second element in theself.mapLayers
object. This simple fix solves the issue.