var layerLoadErrorMessages=[];showMessage('Loading',staticTemplates.loadingModal[mode]);function runGeeViz(){Map.addSerializedLayer({"result": "0", "values": {"0": {"functionInvocationValue": {"functionName": "Collection", "arguments": {"features": {"arrayValue": {"values": [{"functionInvocationValue": {"functionName": "Feature", "arguments": {"geometry": {"functionInvocationValue": {"functionName": "GeometryConstructors.Polygon", "arguments": {"coordinates": {"constantValue": [[[-112.260216, 40.921847], [-112.260216, 40.414169], [-111.553188, 40.414169], [-111.553188, 40.921847]]]}, "evenOdd": {"constantValue": true}}}}}}}]}}}}}}},{"color": "ffffff", "layerType": "geeVectorImage"},'Salt Lake County',true);Map.addSerializedLayer({"result": "0", "values": {"1": {"functionInvocationValue": {"functionName": "Image.select", "arguments": {"bandSelectors": {"constantValue": ["Land_Use"]}, "input": {"argumentReference": "_MAPPING_VAR_0_0"}}}}, "0": {"functionInvocationValue": {"functionName": "Image.clip", "arguments": {"geometry": {"functionInvocationValue": {"functionName": "GeometryConstructors.Polygon", "arguments": {"coordinates": {"constantValue": [[[-112.260216, 40.921847], [-112.260216, 40.414169], [-111.553188, 40.414169], [-111.553188, 40.921847]]]}, "evenOdd": {"constantValue": true}}}}, "input": {"functionInvocationValue": {"functionName": "ImageCollection.reduce", "arguments": {"collection": {"functionInvocationValue": {"functionName": "Collection.filter", "arguments": {"collection": {"functionInvocationValue": {"functionName": "Collection.map", "arguments": {"baseAlgorithm": {"functionDefinitionValue": {"argumentNames": ["_MAPPING_VAR_0_0"], "body": "1"}}, "collection": {"functionInvocationValue": {"functionName": "Collection.filter", "arguments": {"collection": {"functionInvocationValue": {"functionName": "ImageCollection.load", "arguments": {"id": {"constantValue": "USFS/GTAC/LCMS/v2024-10"}}}}, "filter": {"functionInvocationValue": {"functionName": "Filter.equals", "arguments": {"leftField": {"constantValue": "study_area"}, "rightValue": {"constantValue": "CONUS"}}}}}}}}}}, "filter": {"functionInvocationValue": {"functionName": "Filter.calendarRange", "arguments": {"end": {"constantValue": 1992}, "field": {"constantValue": "year"}, "start": {"constantValue": 1988}}}}}}}, "reducer": {"functionInvocationValue": {"functionName": "Reducer.mode", "arguments": {}}}}}}}}}}},{"min": 1, "max": 5, "palette": ["#fbff97", "#e6558b", "#004e2b", "#9dbac5", "#a6976a"], "autoViz": false, "layerType": "geeImage"},'LCMS Land Use ~1990',true);Map.addSerializedLayer({"result": "0", "values": {"1": {"functionInvocationValue": {"functionName": "Image.select", "arguments": {"bandSelectors": {"constantValue": ["Land_Use"]}, "input": {"argumentReference": "_MAPPING_VAR_0_0"}}}}, "0": {"functionInvocationValue": {"functionName": "Image.clip", "arguments": {"geometry": {"functionInvocationValue": {"functionName": "GeometryConstructors.Polygon", "arguments": {"coordinates": {"constantValue": [[[-112.260216, 40.921847], [-112.260216, 40.414169], [-111.553188, 40.414169], [-111.553188, 40.921847]]]}, "evenOdd": {"constantValue": true}}}}, "input": {"functionInvocationValue": {"functionName": "ImageCollection.reduce", "arguments": {"collection": {"functionInvocationValue": {"functionName": "Collection.filter", "arguments": {"collection": {"functionInvocationValue": {"functionName": "Collection.map", "arguments": {"baseAlgorithm": {"functionDefinitionValue": {"argumentNames": ["_MAPPING_VAR_0_0"], "body": "1"}}, "collection": {"functionInvocationValue": {"functionName": "Collection.filter", "arguments": {"collection": {"functionInvocationValue": {"functionName": "ImageCollection.load", "arguments": {"id": {"constantValue": "USFS/GTAC/LCMS/v2024-10"}}}}, "filter": {"functionInvocationValue": {"functionName": "Filter.equals", "arguments": {"leftField": {"constantValue": "study_area"}, "rightValue": {"constantValue": "CONUS"}}}}}}}}}}, "filter": {"functionInvocationValue": {"functionName": "Filter.calendarRange", "arguments": {"end": {"constantValue": 2024}, "field": {"constantValue": "year"}, "start": {"constantValue": 2022}}}}}}}, "reducer": {"functionInvocationValue": {"functionName": "Reducer.mode", "arguments": {}}}}}}}}}}},{"min": 1, "max": 5, "palette": ["#fbff97", "#e6558b", "#004e2b", "#9dbac5", "#a6976a"], "autoViz": false, "layerType": "geeImage"},'LCMS Land Use ~2024',false);if(layerLoadErrorMessages.length>0){showMessage("Map.addLayer Error List",layerLoadErrorMessages.join("<br>"));};setTimeout(function(){if(layerLoadErrorMessages.length===0){$('#close-modal-button').click();}}, 2500);Map.setCenter(-111.9,40.65,9);queryWindowMode = "sidePane";Map.turnOffLayersWhenTimeLapseIsOn = true;};