var layerLoadErrorMessages=[];showMessage('Loading',staticTemplates.loadingModal[mode]);function runGeeViz(){Map.addSerializedTimeLapse({"result": "0", "values": {"1": {"functionInvocationValue": {"functionName": "Image.selfMask", "arguments": {"image": {"argumentReference": "_MAPPING_VAR_0_0"}}}}, "0": {"functionInvocationValue": {"functionName": "Collection.map", "arguments": {"baseAlgorithm": {"functionDefinitionValue": {"argumentNames": ["_MAPPING_VAR_0_0"], "body": "1"}}, "collection": {"functionInvocationValue": {"functionName": "ImageCollection.load", "arguments": {"id": {"constantValue": "projects/sat-io/open-datasets/USGS/ANNUAL_NLCD/SPECTRAL_CHANGE_DOY"}}}}}}}}},{"canAreaChart": true, "areaChartParams": {"reducer": "{\"result\": \"0\", \"values\": {\"0\": {\"functionInvocationValue\": {\"functionName\": \"Reducer.mode\", \"arguments\": {}}}}}"}, "min": 1, "max": 366, "palette": ["#6a0dad", "#483d8b", "#1e90ff", "#00fa9a", "#32cd32", "#ffff00", "#ff8c00", "#ff4500", "#ff0000"], "layerType": "ImageCollection"},'Spectral Change DOY',true);if(layerLoadErrorMessages.length>0){showMessage("Map.addLayer Error List",layerLoadErrorMessages.join("<br>"));};setTimeout(function(){if(layerLoadErrorMessages.length===0){$('#close-modal-button').click();}}, 2500);Map.turnOnInspector();queryWindowMode = "sidePane";Map.turnOffLayersWhenTimeLapseIsOn = true;};