Hey Ken,Thanks for the great reply! It saved me a lot of time. I'm now stuck and looking for the following features.1. I want the layers checkbox to be visible but don't want to show them by default on page load. I tried doing the following, but this resulted in not showing the checkbox at all 😞
map.on("layers-add-result", function (evt) {
$.each(evt.layers[0], function (i, layer) {
$.each(layer.layerInfos, function (index, info) {
info.defaultVisibility = false;
});
});
buildLayerList(evt);
});
2. I want to show the checkboxes in a accordion like control inside the map area itself. To start with I placed the checkbox div inside the map div, but that resulted in blocking up the entire horizontal space for that much height. I tried with fixed width and relative/absolute placement... none worked.Any hint/example would be of great help and would be much appreciated.Thanks,Biranchi