var HOST = location.protocol + "//" + location.host; var CONTEXT = ""; var SGMA_HOST = 'https://water.ca.gov/projecttracking'; var baseLayers = []; var layers = []; var tabs = []; layers.push({ "type": "simple", "url": "https://gis.water.ca.gov/arcgis/rest/services/Environment/i07_Habitat_Restoration_Polygons/FeatureServer", "title": "Fremont Weir Adult Fish Passage Modification", "opacity": 0.72, "options": { "projectId": 986, "uniqueid": 1276, "layerName": "Fremont Weir Adult Fish Passage Modification", "defaultZoomTo": true, "defaultLayerDef": ["(project_id = 'FL0986')"] }, "startEnabled": true, "layers": [0] }); baseLayers.push({ "type": "generic", "url": "https://coord.water.ca.gov/service/document/download/3215", "opacity": 0.72, "options": { "customSymbol": { "type": "uniqueValue", "uvrJson": { "type": "uniqueValue", "field1": "WebLegend", "field2": null, "field3": null, "fieldDelimiter": ", ", "defaultSymbol": null, "defaultLabel": null, "uniqueValueInfos": [ { "symbol": { "type": "esriSMS", "style": "esriSMSCircle", "color": [ 232, 21, 21, 255 ], "size": 5, "angle": 0, "xoffset": 0, "yoffset": 0, "outline": { "color": [ 0, 0, 0, 255 ], "width": 0.8 } }, "value": "Total Barrier", "label": "Total Barrier", "description": "" }, { "symbol": { "type": "esriSMS", "style": "esriSMSCircle", "color": [ 252, 179, 68, 255 ], "size": 5, "angle": 0, "xoffset": 0, "yoffset": 0, "outline": { "color": [ 0, 0, 0, 255 ], "width": 0.8 } }, "value": "Partial Barrier", "label": "Partial Barrier", "description": "" }, { "symbol": { "type": "esriSMS", "style": "esriSMSCircle", "color": [ 252, 179, 68, 255 ], "size": 5, "angle": 0, "xoffset": 0, "yoffset": 0, "outline": { "color": [ 0, 0, 0, 255 ], "width": 0.8 } }, "value": "Natural Partial Barrier", "label": "Partial Barrier", "description": "" }, { "symbol": { "type": "esriSMS", "style": "esriSMSCircle", "color": [ 170, 102, 205, 255 ], "size": 5, "angle": 0, "xoffset": 0, "yoffset": 0, "outline": { "color": [ 0, 0, 0, 255 ], "width": 0.8 } }, "value": "Unknown Passage Status", "label": "Potential Barrier", "description": "" }, { "symbol": { "type": "esriSMS", "style": "esriSMSCircle", "color": [ 40, 146, 199, 255 ], "size": 5, "angle": 0, "xoffset": 0, "yoffset": 0, "outline": { "color": [ 0, 0, 0, 255 ], "width": 0.8 } }, "value": "Unscreened Diversion", "label": "Unscreened Diversion", "description": "" } ] } }, "simplify": true, "extension": "zip", "filename": "https://coord.water.ca.gov/service/document/download/3215", "fileid": "https://coord.water.ca.gov/service/document/download/3215", "isFile": true, "uniqueid": 3215 }, "startEnabled": false, "title": "Fish Passage Barriers" }); layers.push({ "sortOrder": "", "disabled": 0, "metricShapefileId": 1018, "refId": 886, "metricLookupId": 20, "documentId": 2915, "calcVal": "", "createdBy": 41, "createdDt": "2022-08-23 11:59:17.691843", "updatedBy": "", "updatedDt": "", "projectId": 986, "name": "Fish Passage Barriers", "type": "simple", "url": "https://gis.water.ca.gov/arcgis/rest/services/Environment/i07_EcoMetric_Point/FeatureServer", "title": "Fish Passage Barriers", "opacity": 0.72, "atlasUniqueId": "FL0986", "options": { "uniqueid": 2915, "layerName": "Fish Passage Barriers", "layerType": "feature", "defaultLayerDef": ["(Project_ID = 'FL0986') and (METRIC_TYPE = 'Fish Passage Barriers')"] }, "startEnabled": false, "layers": [0] }); if (baseLayers.length == 0 && layers.length > 0){ layers[0].options.defaultZoomTo = true; } if (baseLayers.length > 0 && layers.length == 0){ baseLayers[0].options.defaultZoomTo = true; } if(true && (layers.length > 0 || false)){ tabs.push({ "type": "empty", "enabled": true, "options": { "tabName": "Project", "defaultZoomTo": false } ,"addtl": layers }); } if(true && (baseLayers.length >0 || false)){ tabs.push({ "type": "empty", "enabled": true, "options": { "tabName": "Existing Condition", "defaultZoomTo": false } ,"addtl": baseLayers }); } if(true){ tabs.push({ "type": "empty", "enabled": true, "options": { "tabName": "Metric", "defaultZoomTo": true } ,"addtl": [] }); } configOptions = { "hideDescription": true, "title": "My Map", "titleUrl": HOST + CONTEXT, "tolerance": "6", "useGeometry": true, "hideNoData": true, "showLayerWin": true, "resizableLayerWin": true, "hideLegendTool": true, "locations_uploader": true, "basemap_gallery": true, "showFullScreen": true, "style": "flat", "hideSingleTab": true, "hideInFeatureTool": true, "useProxy": false, "infowinSaveData": {}, "events":{ "onLayerLoad":function(service){ if(!window.projectBoundary) { window.projectBoundary = true; var updateEnd = service.on('update-end', function(){ if(this.graphics && this.graphics.length > 0) { map.setExtent(this.graphics[0].geometry.getExtent().expand(2)); } updateEnd.remove(); }); } } } ,"map": { "minZoom": "", "maxZoom": "", "extent": { "xmin":-14453448.084026292 ,"ymin":4103893.9537934274 ,"xmax":-12540687.888218552 ,"ymax":5326886.406355922 ,"spatialReference":{ "wkid":102100 ,"latestWkid":3857 } } }, "events": { "onMapLoad": function(){ $('#serviceNode').css({'font-size': '12px'}) } }, "tabs": tabs, "title_option": "Sites", "appLabel": "", "hideTitleBar": true, "disableMenuPanout": false, "hasMultiAppAccess": false, "showDisclaimer": false, "disclaimer": "", "disableDisclaimerDisableOption": false, "hideEditTool": false, "hideSaveTool": false, "useInfoGrid": false, "enableDownloadWindow": false, "hideToolsBar": false, "hideLayersTool": false, "hideBasemapTool": false, "hideMeasureTool": true, "hidePrintTool": true, "hideFullscreenTool": true, "hideEmbedTool": true, "hideBookmarkTool": true, "hideDrawingTool": true, "hideSelectTool": true, "hideSearchBar": true, "hideSelectedBoundary": false, "hideSelectInFeatureButton": false, "hideZoomToButton": false, "hideLayerOptions": false, "hideLeveeMileTool": true, "alwayShowLayerBar": false, "hideLegendToggle": true, "hideLayerSettingsDropdown": false, "hideOpacitySlider": false, "hideLayerDownload": false, "makeInfowindowDraggable": false, "disableClicks": false, "featureSetInfowin": false, "infowindow_width": "", "infowindow_height": "", "layerwindow_height": "", "layerwindow_width": "", "geometryServiceUrl": "", "login": {"requireLogin": false} }