/
Logger loadSelect Function
Logger loadSelect Function
The loadSelect function returns a list of all available layers, that the user can report faults on, from the faultlogger object that’s available from the LoggerEmbedded.html. Contained within the html is a function called loadSelect which populates an option control called ‘type’ with the available layers.
loadSelect Example
var loadSelect = function() { if (faultlogger.layers.list) { for (var i=0;i<faultlogger.layers.list.length;i++) { jQuery(‘#type’).append( jQuery(‘<option></option>’).val( faultlogger.layers.list[i].layerName ).html(faultlogger.layers.list[i].displayName) ); } } else { var looper = setTimeout(loadSelect, 100); } } loadSelect();