/** * * The SGMA Context varies base on the server environment. * * In development environment, the context will be SgmaApplicationWeb. * * * * @type String * */ var SGMA_CONTEXT = location.hostname == "localhost" ? "/portal" : "/portal"; /** * * The SGMA HOST will need to change if the webgis application is not on the same server as the SGMA Portal * * * * @type String * */ var SGMA_HOST = location.protocol + "//" + location.host + SGMA_CONTEXT; var layers = []; var uniqueIdCounter = 1; var attrs = {} attrs[layers.length + 1] = [ { "visible": false, "field": "wellKey", "alias": "wellKey", "hyperlink_override": [false], "hyperlink": [""], "hyperlink_key": [""], "add_key": "", "mask": "", "extra_rows": [] }, { "visible": true, "field": "localDesignation", "alias": "Local Well Name", "hyperlink_override": [false], "hyperlink": [""], "hyperlink_key": [""], "add_key": "", "mask": "", "extra_rows": [] }, { "visible": true, "field": "masterSiteCode", "alias": "Site Code", "hyperlink_override": [false], "hyperlink": [""], "hyperlink_key": [""], "add_key": "", "mask": "", "extra_rows": [] }, { "visible": true, "field": "latitude", "alias": "Latitude [N]", "hyperlink_override": [false], "hyperlink": [""], "hyperlink_key": [""], "add_key": "", "mask": "", "extra_rows": [] }, { "visible": true, "field": "longitude", "alias": "Longitude [W]", "hyperlink_override": [false], "hyperlink": [""], "hyperlink_key": [""], "add_key": "", "mask": "", "extra_rows": [] }, { "visible": true, "field": "depth", "alias": "Well Depth (ft. bgs)", "hyperlink_override": [false], "hyperlink": [""], "hyperlink_key": [""], "add_key": "", "mask": "", "extra_rows": [] }, { "visible": false, "field": "usageType", "alias": "usageType", "hyperlink_override": [false], "hyperlink": [""], "hyperlink_key": [""], "add_key": "", "mask": "", "extra_rows": [] }, { "visible": false, "field": "orgId", "alias": "orgId", "hyperlink_override": [false], "hyperlink": [""], "hyperlink_key": [""], "add_key": "", "mask": "", "extra_rows": [] }, { "visible": false, "field": "agencyKey", "alias": "agencyKey", "hyperlink_override": [false], "hyperlink": [""], "hyperlink_key": [""], "add_key": "", "mask": "", "extra_rows": [] }, { "visible": true, "field": "agencyName", "alias": "Associated GSA", "hyperlink_override": [false], "hyperlink": [""], "hyperlink_key": [""], "add_key": "", "mask": "", "extra_rows": [] }, { "visible": false, "field": "stateWellNumber", "alias": "stateWellNumber", "hyperlink_override": [false], "hyperlink": [""], "hyperlink_key": [""], "add_key": "", "mask": "", "extra_rows": [] }, { "visible": false, "field": "gsaAppId", "alias": "gsaAppId", "hyperlink_override": [false], "hyperlink": [""], "hyperlink_key": [""], "add_key": "", "mask": "", "extra_rows": [] }, { "visible": true, "field": "rpElevation", "alias": "RP Elevation (ft.)", "hyperlink_override": [false], "hyperlink": [""], "hyperlink_key": [""], "add_key": "", "mask": "", "extra_rows": [] }, { "visible": true, "field": "gsElevation", "alias": "GS Elevation (ft.)", "hyperlink_override": [false], "hyperlink": [""], "hyperlink_key": [""], "add_key": "", "mask": "", "extra_rows": [] }, { "visible": false, "field": "countyName", "alias": "countyName", "hyperlink_override": [false], "hyperlink": [""], "hyperlink_key": [""], "add_key": "", "mask": "", "extra_rows": [] }, { "visible": true, "field": "perfTop", "alias": "Perforation Top (ft. bgs)", "hyperlink_override": [false], "hyperlink": [""], "hyperlink_key": [""], "add_key": "", "mask": "", "extra_rows": [] }, { "visible": true, "field": "perfBottom", "alias": "Perforation Bottom (ft. bgs)", "hyperlink_override": [false], "hyperlink": [""], "hyperlink_key": [""], "add_key": "", "mask": "", "extra_rows": [] }, { "visible": true, "field": "wellTypeName", "alias": "Monitoring Network Type", "hyperlink_override": [false], "hyperlink": [""], "hyperlink_key": [""], "add_key": "", "mask": "", "extra_rows": [] }, { "visible": false, "field": "wellTypeId", "alias": "wellTypeId", "hyperlink_override": [false], "hyperlink": [""], "hyperlink_key": [""], "add_key": "", "mask": "", "extra_rows": [] }, { "visible": false, "field": "principalAquifer", "alias": "principalAquifer", "hyperlink_override": [false], "hyperlink": [""], "hyperlink_key": [""], "add_key": "", "mask": "", "extra_rows": [] }, { "visible": false, "field": "basinName", "alias": "basinName", "hyperlink_override": [false], "hyperlink": [""], "hyperlink_key": [""], "add_key": "", "mask": "", "extra_rows": [] }, { "visible": false, "field": "sustainabilityIndicators", "alias": "sustainabilityIndicators", "hyperlink_override": [false], "hyperlink": [""], "hyperlink_key": [""], "add_key": "", "mask": "", "extra_rows": [] }, { "visible": false, "field": "OBJECT_ID", "alias": "OBJECT ID", "hyperlink_override": [false], "hyperlink": [""], "hyperlink_key": [""], "add_key": "", "mask": "", "extra_rows": [] } ]; layers.push({ "type": "generic", "url": "https://sgma.water.ca.gov/SgmaWell/service/monitoring/getwellsummary?gspId=75,76,81,89,100,145,11,16,17,18,19,21,22,25,26,28,29,61,65,86,88,90,91,97,106,111,114,118,119,124,133,144,156,157,164,165,166,167,168,169,170,171,172,173,8,32,49,52,67,113,115,116,117,121,122,125,128,129,130,132,138,149,160,174,9,23,24,35,42,43,45,59,63,71,74,77,78,79,80,87,92,93,94,95,98,99,103,110,123,131,134,136,139,31,47,48,53,56,57,70,72,73,82,83,84,85,96,101,104,105,112,120,127,137,140,155", "title": "Groundwater Wells", "options": { "extension": "geojson", "lonAttr": "longitude", "latAttr": "latitude", "arrAttr": "data", "layerAttributeList": [], "uniqueid": layers.length + 1, "layerName": "Groundwater Wells", "layerDefinition": { "objectIdField": "wellKey", "geometryType": "esriGeometryPoint", "fields": [ { "name": "wellKey", "alias": "wellKey", "type": "esriFieldTypeString" } ], "spatialReference": {"wkid": 4326}, "fieldAliases": { "wellKey": "wellKey", }, "displayFieldName": "wellKey", "drawingInfo": {"renderer": { "type": "simple", "symbol": { "color": [ 40, 128, 191, 255 ], "size": 5, "type": "esriSMS", "style": "esriSMSCircle", "outline": { "color": [ 0, 0, 0, 255 ], "width": "1", "type": "esriSLS", "style": "esriSLSSolid" } } }} }, "customSymbol": { "color": { "r": 0, "g": 25, "b": 255, "a": 1 }, "size": 5, "type": "simplemarkersymbol", "style": "circle", "outline": { "color": { "r": 234, "g": 241, "b": 252, "a": 1 }, "width": .5, "type": "simplelinesymbol", "style": "solid" }, "xoffset": 0, "yoffset": 0 }, "symbolUpdated": false, "searchOverride": true }, "layers": [{}], "startEnabled": true }); attrs[layers.length + 1] = [ { "visible": true, "field": "siteInfoId", "alias": "General Site ID", "hyperlink_override": [false], "hyperlink": [""], "hyperlink_key": [""], "add_key": "", "mask": "", "extra_rows": [] }, { "visible": false, "field": "gsaAppId", "alias": "gsaAppId", "hyperlink_override": [false], "hyperlink": [""], "hyperlink_key": [""], "add_key": "", "mask": "", "extra_rows": [] }, { "visible": true, "field": "designation", "alias": "Local Site Name", "hyperlink_override": [false], "hyperlink": [""], "hyperlink_key": [""], "add_key": "", "mask": "", "extra_rows": [] }, { "visible": false, "field": "stateWellNumber", "alias": "stateWellNumber", "hyperlink_override": [false], "hyperlink": [""], "hyperlink_key": [""], "add_key": "", "mask": "", "extra_rows": [] }, { "visible": false, "field": "siteTypeLookupId", "alias": "siteTypeLookupId", "hyperlink_override": [false], "hyperlink": [""], "hyperlink_key": [""], "add_key": "", "mask": "", "extra_rows": [] }, { "visible": true, "field": "rpElevation", "alias": "RP Elevation (ft.)", "hyperlink_override": [false], "hyperlink": [""], "hyperlink_key": [""], "add_key": "", "mask": "", "extra_rows": [] }, { "visible": false, "field": "rpDescription", "alias": "rpDescription", "hyperlink_override": [false], "hyperlink": [""], "hyperlink_key": [""], "add_key": "", "mask": "", "extra_rows": [] }, { "visible": false, "field": "rpElevationSubsurface", "alias": "rpElevationSubsurface", "hyperlink_override": [false], "hyperlink": [""], "hyperlink_key": [""], "add_key": "", "mask": "", "extra_rows": [] }, { "visible": true, "field": "gsElevation", "alias": "GS Elevation (ft.)", "hyperlink_override": [false], "hyperlink": [""], "hyperlink_key": [""], "add_key": "", "mask": "", "extra_rows": [] }, { "visible": false, "field": "siteMeasMethodLookupId", "alias": "siteMeasMethodLookupId", "hyperlink_override": [false], "hyperlink": [""], "hyperlink_key": [""], "add_key": "", "mask": "", "extra_rows": [] }, { "visible": false, "field": "siteMeasAccLookupId", "alias": "siteMeasAccLookupId", "hyperlink_override": [false], "hyperlink": [""], "hyperlink_key": [""], "add_key": "", "mask": "", "extra_rows": [] }, { "visible": true, "field": "latitude", "alias": "Latitude [N]", "hyperlink_override": [false], "hyperlink": [""], "hyperlink_key": [""], "add_key": "", "mask": "", "extra_rows": [] }, { "visible": true, "field": "longitude", "alias": "Longitude [W]", "hyperlink_override": [false], "hyperlink": [""], "hyperlink_key": [""], "add_key": "", "mask": "", "extra_rows": [] }, { "visible": false, "field": "siteCoordMethodLookupId", "alias": "siteCoordMethodLookupId", "hyperlink_override": [false], "hyperlink": [""], "hyperlink_key": [""], "add_key": "", "mask": "", "extra_rows": [] }, { "visible": false, "field": "siteCoordAccLookupId", "alias": "siteCoordAccLookupId", "hyperlink_override": [false], "hyperlink": [""], "hyperlink_key": [""], "add_key": "", "mask": "", "extra_rows": [] }, { "visible": false, "field": "principalAquifer", "alias": "principalAquifer", "hyperlink_override": [false], "hyperlink": [""], "hyperlink_key": [""], "add_key": "", "mask": "", "extra_rows": [] }, { "visible": false, "field": "depth", "alias": "depth", "hyperlink_override": [false], "hyperlink": [""], "hyperlink_key": [""], "add_key": "", "mask": "", "extra_rows": [] }, { "visible": false, "field": "casedDepth", "alias": "casedDepth", "hyperlink_override": [false], "hyperlink": [""], "hyperlink_key": [""], "add_key": "", "mask": "", "extra_rows": [] }, { "visible": false, "field": "locationDescription", "alias": "locationDescription", "hyperlink_override": [false], "hyperlink": [""], "hyperlink_key": [""], "add_key": "", "mask": "", "extra_rows": [] }, { "visible": false, "field": "additionalComments", "alias": "additionalComments", "hyperlink_override": [false], "hyperlink": [""], "hyperlink_key": [""], "add_key": "", "mask": "", "extra_rows": [] }, { "visible": false, "field": "countyKey", "alias": "countyKey", "hyperlink_override": [false], "hyperlink": [""], "hyperlink_key": [""], "add_key": "", "mask": "", "extra_rows": [] }, { "visible": false, "field": "depthTop", "alias": "depthTop", "hyperlink_override": [false], "hyperlink": [""], "hyperlink_key": [""], "add_key": "", "mask": "", "extra_rows": [] }, { "visible": false, "field": "depthBottom", "alias": "depthBottom", "hyperlink_override": [false], "hyperlink": [""], "hyperlink_key": [""], "add_key": "", "mask": "", "extra_rows": [] }, { "visible": false, "field": "basinName", "alias": "basinName", "hyperlink_override": [false], "hyperlink": [""], "hyperlink_key": [""], "add_key": "", "mask": "", "extra_rows": [] }, { "visible": false, "field": "sortOrder", "alias": "sortOrder", "hyperlink_override": [false], "hyperlink": [""], "hyperlink_key": [""], "add_key": "", "mask": "", "extra_rows": [] }, { "visible": false, "field": "createdBy", "alias": "createdBy", "hyperlink_override": [false], "hyperlink": [""], "hyperlink_key": [""], "add_key": "", "mask": "", "extra_rows": [] }, { "visible": false, "field": "updatedBy", "alias": "updatedBy", "hyperlink_override": [false], "hyperlink": [""], "hyperlink_key": [""], "add_key": "", "mask": "", "extra_rows": [] }, { "visible": false, "field": "createdDt", "alias": "createdDt", "hyperlink_override": [false], "hyperlink": [""], "hyperlink_key": [""], "add_key": "", "mask": "", "extra_rows": [] }, { "visible": false, "field": "updatedDt", "alias": "updatedDt", "hyperlink_override": [false], "hyperlink": [""], "hyperlink_key": [""], "add_key": "", "mask": "", "extra_rows": [] }, { "visible": false, "field": "disabled", "alias": "disabled", "hyperlink_override": [false], "hyperlink": [""], "hyperlink_key": [""], "add_key": "", "mask": "", "extra_rows": [] }, { "visible": false, "field": "subType", "alias": "subType", "hyperlink_override": [false], "hyperlink": [""], "hyperlink_key": [""], "add_key": "", "mask": "", "extra_rows": [] }, { "visible": false, "field": "wellTypeId", "alias": "wellTypeId", "hyperlink_override": [false], "hyperlink": [""], "hyperlink_key": [""], "add_key": "", "mask": "", "extra_rows": [] }, { "visible": true, "field": "agencyName", "alias": "Associated GSA", "hyperlink_override": [false], "hyperlink": [""], "hyperlink_key": [""], "add_key": "", "mask": "", "extra_rows": [] }, { "visible": true, "field": "wellTypeName", "alias": "Monitoring Network Type", "hyperlink_override": [false], "hyperlink": [""], "hyperlink_key": [""], "add_key": "", "mask": "", "extra_rows": [] }, { "visible": false, "field": "countyName", "alias": "countyName", "hyperlink_override": [false], "hyperlink": [""], "hyperlink_key": [""], "add_key": "", "mask": "", "extra_rows": [] }, { "visible": true, "field": "siteTypeName", "alias": "Site Type", "hyperlink_override": [false], "hyperlink": [""], "hyperlink_key": [""], "add_key": "", "mask": "", "extra_rows": [] }, { "visible": false, "field": "sustainabilityIndicators", "alias": "sustainabilityIndicators", "hyperlink_override": [false], "hyperlink": [""], "hyperlink_key": [""], "add_key": "", "mask": "", "extra_rows": [] }, { "visible": false, "field": "OBJECT_ID", "alias": "OBJECT ID", "hyperlink_override": [false], "hyperlink": [""], "hyperlink_key": [""], "add_key": "", "mask": "", "extra_rows": [] } ]; layers.push({ "type": "generic", "url": "https://sgma.water.ca.gov/SgmaWell/service/monitoring/getgeneralsites?gspId=75,76,81,89,100,145,11,16,17,18,19,21,22,25,26,28,29,61,65,86,88,90,91,97,106,111,114,118,119,124,133,144,156,157,164,165,166,167,168,169,170,171,172,173,8,32,49,52,67,113,115,116,117,121,122,125,128,129,130,132,138,149,160,174,9,23,24,35,42,43,45,59,63,71,74,77,78,79,80,87,92,93,94,95,98,99,103,110,123,131,134,136,139,31,47,48,53,56,57,70,72,73,82,83,84,85,96,101,104,105,112,120,127,137,140,155", "title": "General Sites", "options": { "extension": "geojson", "lonAttr": "longitude", "latAttr": "latitude", "arrAttr": "data", "layerAttributeList": [], "uniqueid": layers.length + 1, "layerName": "General Sites", "layerDefinition": { "objectIdField": "siteInfoId", "geometryType": "esriGeometryPoint", "fields": [{ "name":"siteInfoId" ,"alias":"General Site ID" }], "spatialReference": {"wkid": 4326}, "fieldAliases": { "siteInfoId":"General Site ID" }, "displayFieldName": "siteInfoId", "drawingInfo": {"renderer": { "type": "simple", "symbol": { "color": [ 40, 128, 191, 255 ], "size": 5, "type": "esriSMS", "style": "esriSMSCircle", "outline": { "color": [ 0, 0, 0, 255 ], "width": 0.5, "type": "esriSLS", "style": "esriSLSSolid" } } }} }, "customSymbol": { "color": { "r": 7, "g": 252, "b": 11, "a": 1 }, "size": 5, "type": "simplemarkersymbol", "style": "circle", "outline": { "color": { "r": 0, "g": 0, "b": 0, "a": 1 }, "width": 0.5, "type": "simplelinesymbol", "style": "solid" }, "xoffset": 0, "yoffset": 0 }, "symbolUpdated": false, "searchOverride": true }, "layers": [{}], "startEnabled": true }); attrs[layers.length + 1] = [ { "visible": true, "field": "existingInfoId", "alias": "Existing Site ID", "hyperlink_override": [false], "hyperlink": [""], "hyperlink_key": [""], "add_key": "", "mask": "", "extra_rows": [] }, { "visible": true, "field": "programSiteId", "alias": "Program Site ID", "hyperlink_override": [false], "hyperlink": [""], "hyperlink_key": [""], "add_key": "", "mask": "", "extra_rows": [] }, { "visible": false, "field": "gsaAppId", "alias": "gsaAppId", "hyperlink_override": [false], "hyperlink": [""], "hyperlink_key": [""], "add_key": "", "mask": "", "extra_rows": [] }, { "visible": true, "field": "programName", "alias": "Existing Program Name", "hyperlink_override": [false], "hyperlink": [""], "hyperlink_key": [""], "add_key": "", "mask": "", "extra_rows": [] }, { "visible": false, "field": "basinName", "alias": "basinName", "hyperlink_override": [false], "hyperlink": [""], "hyperlink_key": [""], "add_key": "", "mask": "", "extra_rows": [] }, { "visible": false, "field": "existingTypeLookupId", "alias": "existingTypeLookupId", "hyperlink_override": [false], "hyperlink": [""], "hyperlink_key": [""], "add_key": "", "mask": "", "extra_rows": [] }, { "visible": true, "field": "latitude", "alias": "Latitude [N]", "hyperlink_override": [false], "hyperlink": [""], "hyperlink_key": [""], "add_key": "", "mask": "", "extra_rows": [] }, { "visible": true, "field": "longitude", "alias": "Longitude [W]", "hyperlink_override": [false], "hyperlink": [""], "hyperlink_key": [""], "add_key": "", "mask": "", "extra_rows": [] }, { "visible": false, "field": "siteCoordMethodLookupId", "alias": "siteCoordMethodLookupId", "hyperlink_override": [false], "hyperlink": [""], "hyperlink_key": [""], "add_key": "", "mask": "", "extra_rows": [] }, { "visible": false, "field": "siteCoordAccLookupId", "alias": "siteCoordAccLookupId", "hyperlink_override": [false], "hyperlink": [""], "hyperlink_key": [""], "add_key": "", "mask": "", "extra_rows": [] }, { "visible": false, "field": "principalAquifer", "alias": "principalAquifer", "hyperlink_override": [false], "hyperlink": [""], "hyperlink_key": [""], "add_key": "", "mask": "", "extra_rows": [] }, { "visible": false, "field": "locationDescription", "alias": "locationDescription", "hyperlink_override": [false], "hyperlink": [""], "hyperlink_key": [""], "add_key": "", "mask": "", "extra_rows": [] }, { "visible": false, "field": "additionalComments", "alias": "additionalComments", "hyperlink_override": [false], "hyperlink": [""], "hyperlink_key": [""], "add_key": "", "mask": "", "extra_rows": [] }, { "visible": false, "field": "countyKey", "alias": "countyKey", "hyperlink_override": [false], "hyperlink": [""], "hyperlink_key": [""], "add_key": "", "mask": "", "extra_rows": [] }, { "visible": false, "field": "sortOrder", "alias": "sortOrder", "hyperlink_override": [false], "hyperlink": [""], "hyperlink_key": [""], "add_key": "", "mask": "", "extra_rows": [] }, { "visible": false, "field": "createdBy", "alias": "createdBy", "hyperlink_override": [false], "hyperlink": [""], "hyperlink_key": [""], "add_key": "", "mask": "", "extra_rows": [] }, { "visible": false, "field": "updatedBy", "alias": "updatedBy", "hyperlink_override": [false], "hyperlink": [""], "hyperlink_key": [""], "add_key": "", "mask": "", "extra_rows": [] }, { "visible": false, "field": "createdDt", "alias": "createdDt", "hyperlink_override": [false], "hyperlink": [""], "hyperlink_key": [""], "add_key": "", "mask": "", "extra_rows": [] }, { "visible": false, "field": "updatedDt", "alias": "updatedDt", "hyperlink_override": [false], "hyperlink": [""], "hyperlink_key": [""], "add_key": "", "mask": "", "extra_rows": [] }, { "visible": false, "field": "disabled", "alias": "disabled", "hyperlink_override": [false], "hyperlink": [""], "hyperlink_key": [""], "add_key": "", "mask": "", "extra_rows": [] }, { "visible": true, "field": "urlSite", "alias": "Site URL", "hyperlink_override": [false], "hyperlink": [""], "hyperlink_key": [""], "add_key": "", "mask": "", "extra_rows": [] }, { "visible": false, "field": "wellTypeId", "alias": "wellTypeId", "hyperlink_override": [false], "hyperlink": [""], "hyperlink_key": [""], "add_key": "", "mask": "", "extra_rows": [] }, { "visible": true, "field": "agencyName", "alias": "Associated GSA", "hyperlink_override": [false], "hyperlink": [""], "hyperlink_key": [""], "add_key": "", "mask": "", "extra_rows": [] }, { "visible": true, "field": "wellType", "alias": "Monitoring Network Type", "hyperlink_override": [false], "hyperlink": [""], "hyperlink_key": [""], "add_key": "", "mask": "", "extra_rows": [] }, { "visible": false, "field": "countyName", "alias": "countyName", "hyperlink_override": [false], "hyperlink": [""], "hyperlink_key": [""], "add_key": "", "mask": "", "extra_rows": [] }, { "visible": true, "field": "siteTypeName", "alias": "Site Type", "hyperlink_override": [false], "hyperlink": [""], "hyperlink_key": [""], "add_key": "", "mask": "", "extra_rows": [] }, { "visible": false, "field": "sustainabilityIndicators", "alias": "sustainabilityIndicators", "hyperlink_override": [false], "hyperlink": [""], "hyperlink_key": [""], "add_key": "", "mask": "", "extra_rows": [] }, { "visible": false, "field": "OBJECT_ID", "alias": "OBJECT ID", "hyperlink_override": [false], "hyperlink": [""], "hyperlink_key": [""], "add_key": "", "mask": "", "extra_rows": [] } ]; layers.push({ "type": "generic", "url": "https://sgma.water.ca.gov/SgmaWell/service/monitoring/getexistingsites?gspId=75,76,81,89,100,145,11,16,17,18,19,21,22,25,26,28,29,61,65,86,88,90,91,97,106,111,114,118,119,124,133,144,156,157,164,165,166,167,168,169,170,171,172,173,8,32,49,52,67,113,115,116,117,121,122,125,128,129,130,132,138,149,160,174,9,23,24,35,42,43,45,59,63,71,74,77,78,79,80,87,92,93,94,95,98,99,103,110,123,131,134,136,139,31,47,48,53,56,57,70,72,73,82,83,84,85,96,101,104,105,112,120,127,137,140,155", "title": "Existing Sites", "options": { "extension": "geojson", "lonAttr": "longitude", "latAttr": "latitude", "arrAttr": "data", "layerAttributeList": [], "uniqueid": layers.length + 1, "layerName": "Existing Sites", "layerDefinition": { "objectIdField": "existingInfoId", "geometryType": "esriGeometryPoint", "fields": [ { "name": "existingInfoId", "alias": "Existing Site ID", "type": "esriFieldTypeString" } ], "spatialReference": {"wkid": 4326}, "fieldAliases": {}, "displayFieldName": "existingInfoId", "drawingInfo": {"renderer": { "type": "simple", "symbol": { "color": [ 40, 128, 191, 255 ], "size": 5, "type": "esriSMS", "style": "esriSMSCircle", "outline": { "color": [ 0, 0, 0, 255 ], "width": 0.5, "type": "esriSLS", "style": "esriSLSSolid" } } }} }, "customSymbol": { "color": { "r": 252, "g": 2, "b": 227, "a": 1 }, "size": 5, "type": "simplemarkersymbol", "style": "circle", "outline": { "color": { "r": 0, "g": 0, "b": 0, "a": 1 }, "width": 0.5, "type": "simplelinesymbol", "style": "solid" }, "xoffset": 0, "yoffset": 0 }, "symbolUpdated": false, "searchOverride": true }, "layers": [{}], "startEnabled": true }); // layers.push({ "type": "generic", "url": SGMA_HOST + "/service/gspdocument/posted/shapefiles?_dc=" + Math.random(), "title": "GSP Posted", "opacity": 0.72, "startEnabled": true, "options": { "graphicsOpacity": 0.7, "layerName": "GSP Posted", "filename": SGMA_HOST + "/service/gspdocument/posted/shapefiles", "extension": "zip", "fileid": SGMA_HOST + "/service/gspdocument/posted/shapefiles", "isFile": true, "uniqueid": layers.length + 1 ,"customSymbol": { "color": { "r": 84, "g": 48, "b": 5, "a": 0.5 }, "outline": { "color": { "r": 0, "g": 0, "b": 0, "a": 1 }, "width": 0.5, "type": "esriSLS", "style": "esriSLSSolid" }, "type": "esriSFS", "style": "esriSFSSolid" } } }); layers.push({ "type": "generic", "url": SGMA_HOST + "/service/gspdocument/submitted/shapefiles", "title": "GSP Submitted", "opacity": 0.72, "startEnabled": true, "options": { "graphicsOpacity": 0.7, "layerName": "GSP Submitted", "filename": SGMA_HOST + "/service/gspdocument/submitted/shapefiles", "extension": "zip", "fileid": SGMA_HOST + "/service/gspdocument/submitted/shapefiles", "isFile": true, "uniqueid": layers.length + 1 ,"customSymbol": { "color": { "r": 223, "g": 194, "b": 125, "a": 0.5 }, "outline": { "color": { "r": 0, "g": 0, "b": 0, "a": 1 }, "width": 0.5, "type": "esriSLS", "style": "esriSLSSolid" }, "type": "esriSFS", "style": "esriSFSSolid" } } }); // attrs[layers.length+1] =[{ "visible": true, "field": "GSA Name", "alias": "GSA Name", "hyperlink_override": [false], "hyperlink": [""], "hyperlink_key": [""], "add_key": "", "mask": "", "extra_rows": [] }, { "visible": true, "field": "Local ID", "alias": "Local ID", "hyperlink_override": [false], "hyperlink": [""], "hyperlink_key": [""], "add_key": "", "mask": "", "extra_rows": [] }, { "visible": true, "field": "Basin", "alias": "Basin", "hyperlink_override": [false], "hyperlink": [""], "hyperlink_key": [""], "add_key": "", "mask": "", "extra_rows": [] }, { "visible": true, "field": "Posted DT", "alias": "Posted Date", "hyperlink_override": [false], "hyperlink": [""], "hyperlink_key": [""], "add_key": "", "mask": "", "extra_rows": [] }, { "visible": true, "field": "DWR GSA ID", "alias": "DWR GSA ID", "hyperlink_override": [false], "hyperlink": [""], "hyperlink_key": [""], "add_key": "", "mask": "", "extra_rows": [] }, { "visible": true, "field": "GSA URL", "alias": "GSA URL", "hyperlink_override": [false], "hyperlink": [""], "hyperlink_key": [""], "add_key": "", "mask": "", "extra_rows": [] }, { "visible": true, "field": "POC Name", "alias": "POC Name", "hyperlink_override": [false], "hyperlink": [""], "hyperlink_key": [""], "add_key": "", "mask": "", "extra_rows": [] }, { "visible": true, "field": "POC Email", "alias": "POC Email", "hyperlink_override": [true], "hyperlink": [" "], "hyperlink_key": ["POC Email"], "add_key": "", "mask": "", "extra_rows": [] }, { "visible": true, "field": "GSA_ID", "alias": "More Details", "hyperlink_override": [false], "hyperlink": [SGMA_HOST + "/gsa/print/"], "hyperlink_key": ["GSA_ID"], "add_key": "", "mask": "View", "extra_rows": [] }, { "visible": false, "field": "POC Phone", "alias": "POC Phone", "hyperlink_override": [false], "hyperlink": [""], "hyperlink_key": [""], "add_key": "", "mask": "", "extra_rows": [] }] layers.push({ "type": "generic", "url": SGMA_HOST + "/service/gsadocument/exclusivegsa", "title": "Exclusive GSA", "opacity": 0.72, "options": { "graphicsOpacity": 0.7, "layerName": "Exclusive GSAs", "filename": SGMA_HOST + "/service/gsadocument/exclusivegsa", "extension": "zip", "fileid": SGMA_HOST + "/service/gsadocument/exclusivegsa", "isFile": true, "uniqueid": layers.length + 1, "parameters": [], /* "color": { "r": 51, "g": 183, "b": 25 }, "outline": { "r": 0, "g": 0, "b": 0, "opacity": 1 },/**/ "useIconMarker": false, "style": "circle", "symbol_size": "8", "reloaded": true, "events": {}, "layerDefinition": { "objectIdField": "OBJECT_ID", "geometryType": "esriGeometryPolygon", "fields": [ { "name": "DWR GSA ID", "alias": "DWR GSA ID", "type": "esriFieldTypeString" }, { "name": "GSA Name", "alias": "GSA Name", "type": "esriFieldTypeString" }, { "name": "Basin", "alias": "Basin", "type": "esriFieldTypeString" }, { "name": "Local ID", "alias": "Local ID", "type": "esriFieldTypeString" }, { "name": "Posted DT", "alias": "Posted DT", "type": "esriFieldTypeString" }, { "name": "GSA URL", "alias": "GSA URL", "type": "esriFieldTypeString" }, { "name": "POC Name", "alias": "POC Name", "type": "esriFieldTypeString" }, { "name": "POC Phone", "alias": "POC Phone", "type": "esriFieldTypeString" }, { "name": "POC Email", "alias": "POC Email", "type": "esriFieldTypeString" }, { "name": "GSA_ID", "alias": "GSA_ID", "type": "esriFieldTypeString" }, { "name": "OBJECT_ID", "alias": "OBJECT_ID", "type": "esriFieldTypeOID" } ], "spatialReference": {"wkid": 102100}, "fieldAliases": { "DWR GSA ID": "DWR GSA ID", "GSA Name": "GSA Name", "Basin": "Basin", "Local ID": "Local ID", "Posted DT": "Posted DT", "GSA URL": "GSA URL", "POC Name": "POC Name", "POC Phone": "POC Phone", "POC Email": "POC Email", "GSA_ID": "GSA_ID", "OBJECT_ID": "OBJECT_ID" }, "displayFieldName": "DWR GSA ID", "drawingInfo": {"renderer": { "type": "simple", "symbol": {/* "color": [ 51, 183, 25, 255 ], "outline": { "color": [ 0, 0, 0, 0 ], "width": 1, "type": "esriSLS", "style": "esriSLSSolid" },/**/ "type": "esriSFS", "style": "esriSFSSolid" } }} }, "customSymbol": { "color": { "r": 51, "g": 183, "b": 25, "a": 0.5 }, "outline": { "color": { "r": 0, "g": 0, "b": 0, "a": 1 }, "width": 0.5, "type": "esriSLS", "style": "esriSLSSolid" }, "type": "esriSFS", "style": "esriSFSSolid" }, "windowConfig": { "layerOption": null, "iconradio": false } }, "layers": [{}], "startEnabled": false }); // layers.push({ "type": "simple", "url": "https://gis.water.ca.gov/arcgis/rest/services/Geoscientific/i08_CriticallyOverdraftedBasins/MapServer", "options": { "uniqueid": layers.length + 1, "layerName": "Critically Overdrafted Basins", "reloaded": true, "events": {} }, "layers": [0], "startEnabled": false, "opacity": 1 }); // layers.push({ "type": "simple", "url": "https://gis.water.ca.gov/arcgis/rest/services/Boundaries/i03_CaliforniaCounties/MapServer", "layers": [0], "startEnabled": true, "opacity": 0.72, "title": "Counties", "options": { "uniqueid": layers.length + 1, "reloaded": true, "events": {}, "layerName": "Counties" } }); layers.push({ "type": "simple", "url": "https://gis.water.ca.gov/arcgis/rest/services/Geoscientific/i08_B118_CA_GroundwaterBasins/MapServer", "layers": [0], "startEnabled": true, "opacity": 0.72, "title": "Bulletin 118 Groundwater Basins (2018)", "options": { "uniqueid": layers.length + 1, "reloaded": true, "events": {}, "layerName": "Bulletin 118 Groundwater Basins (2018)" } }); window.gsaServiceCounter = 0; configOptions = { "hideDescription": true, "title": "GSP Map Viewer", "titleUrl": SGMA_HOST + "/gsp", "tolerance": "6", "useGeometry": true, "hideNoData": true, "showLayerWin": true, "locations_uploader": true, "basemap_gallery": true, "showFullScreen": true, "style": "flat", "hideSingleTab": true, "infowinSaveData": attrs, "events": { "onLayerLoad": function(service){ /*if (window.parent) { var $field = window.parent.gspform.fields.gsaIds.filter("[value='" + service.options.uniqueid + "']"); if ($field.length == 1) { if (window.parent.gspform.updateGsaServiceLayer) { window.parent.gspform.updateGsaServiceLayer.call($field[0]); } } }/**/ } ,onMapLoad:function(){ window.parent.gspform.mapIsLoaded = true; } }, "map": { "minZoom": "", "maxZoom": "16", "basemap": "topo", "extent": { "xmin": -1.447662069591413E7, "ymin": 3824908.166185502, "xmax": -1.242199337560914E7, "ymax": 5022217.777244184, "spatialReference": {"wkid": 102100} } }, "tabs": [{ "type": "empty", "enabled": true, "options": { "tabName": "Custom Tab 1", "off": true, "opacity": 0.72, "uniqueid": 12 }, "addtl": layers }], "hideTitleBar": true, "hideSearchBar": true, "hideEditTool": true, "hideDrawingTool": true, "hideFullscreenTool": true, "hasMultiAppAccess": false, "hideBookmarkTool": true, "hideEmbedTool": true, "hideSaveTool": true, "hidePrintTool": true, "hideMeasureTool": false, "hideLegendTool": true, "hideSelectedBoundary": false, "showDisclaimer": true, "disclaimer": "All information provided by the Department of Water Resources on its Web pages and Internet sites, is made available to provide immediate access for the convenience of interested persons. While the Department believes the information to be reliable, human or mechanical error remains a possibility. Therefore, the Department does not guarantee the accuracy, completeness, timeliness, or correct sequencing of the information. Neither the Department of Water Resources nor any of the sources of the information shall be responsible for any errors or omissions, or for the use or results obtained from the use of this information.", "login": {"requireLogin": false}, "title_option": "GSA Map Viewer", "disableMenuPanout": false, "hideToolsBar": true, "hideLayersTool": false, "hideBasemapTool": false, "makeInfowindowDraggable": true, "disableClicks": false, "featureSetInfowin": false, "infowindow_width": "", "infowindow_height": "", "layerWidthCfg": "", "hideLayerSettingsDropdown": false, "alwayShowLayerBar": true, "layerwindow_height": "300", "layerwindow_width": "", "appLabel": "", "useInfoGrid": false, "hideSelectTool": true, "hideLayerOptions": false ,"hideInFeatureTool" : true };