/** * * 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 = []; // layers.push({ "type": "generic" ,"url": "https://sgma.water.ca.gov/portal/service/gsp/init/submittedgspsshapefile" ,"title": "Submitted GSP Initial Notifications" ,"opacity":0.72 ,"options": { "layerName": "Submitted GSP Initial Notifications" ,"uniqueid": 10 ,"graphicsOpacity":0.7 ,"filename": "https://sgma.water.ca.gov/portal/service/gsp/init/submittedgspsshapefile" ,"extension": "zip" ,"fileid": "https://sgma.water.ca.gov/portal/service/gsp/init/submittedgspsshapefile" ,"isFile": true ,"defaultZoomTo": true ,"parameters": [] ,"color": { "r": 40 ,"g": 128 ,"b": 191 } ,"useIconMarker": false ,"style": "circle" ,"symbol_size": "8" ,"customSymbol": { "color": { "r": 77, "g": 187, "b": 191, "a": 1 }, "outline": { "color": { "r": 100, "g": 100, "b": 100, "a": 1 }, "width": "1", "type": "esriSLS", "style": "esriSLSSolid" }, "type": "esriSFS", "style": "esriSFSSolid" } } ,"layers": [{}] ,"startEnabled": "true" }); // // 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": 7, "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": 1 }, "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": "generic", "url": SGMA_HOST + "/service/gsadocument/submittedgsa", "title": "GSA Notice Submitted", "opacity": 0.65, "options": { "graphicsOpacity": 0.65, "filename": SGMA_HOST + "/service/gsadocument/submittedgsa", "extension": "zip", "fileid": SGMA_HOST + "/service/gsadocument/submittedgsa", "isFile": true, "uniqueid": 8, "parameters": [], /* "color": { "r": 0, "g": 0, "b": 255 },/**/ "useIconMarker": false, "style": "circle", "symbol_size": "8", "reloaded": true, "events": {}, "layerName": "GSA Notice Submitted", "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(s)", "alias": "Basin(s)", "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": "90-Days", "alias": "90-Days", "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(s)": "Basin(s)", "Local ID": "Local ID", "Posted DT": "Posted DT", "GSA URL": "GSA URL", "POC Name": "POC Name", "POC Phone": "POC Phone", "POC Email": "POC Email", "90-Days": "90-Days", "GSA_ID": "GSA_ID", "OBJECT_ID": "OBJECT_ID" }, "displayFieldName": "DWR GSA ID", "drawingInfo": {"renderer": { "type": "simple", "symbol": {/* "color": [ 40, 128, 191, 255 ], "outline": { "color": [ 255, 255, 255, 255 ], "width": 1, "type": "esriSLS", "style": "esriSLSSolid" },/**/ "type": "esriSFS", "style": "esriSFSSolid" } }} }, "customSymbol": { "color": [ 40, 128, 191, 255 ], "outline": { "color": [ 255, 255, 255, 255 ], "width": 0.5, "type": "esriSLS", "style": "esriSLSSolid" }, "type": "esriSFS", "style": "esriSFSSolid" } }, "layers": [{}], "startEnabled": false }); // // layers.push({ "type": "generic", "url": SGMA_HOST + "/resources/data/Alternatives.zip", "title": "Alternatives Submitted", "opacity": 0.72, "options": { "graphicsOpacity": 0.7, "filename": SGMA_HOST + "/resources/data/Alternatives.zip", "uniqueid": 4, "extension": "zip", "fileid": SGMA_HOST + "/resources/data/Alternatives.zip", "isFile": true, "parameters": [], "reloaded": true, "events": {},/* "color": { "r": 203, "g": 0, "b": 182 },/**/ "customSymbol": { "color": [ 203, 0, 182, 255 ], "outline": { "color": [ 0, , , 255 ], "width": 1, "type": "esriSLS", "style": "esriSLSSolid" }, "type": "esriSFS", "style": "esriSFSSolid" }, "useIconMarker": false, "style": "circle", "symbol_size": "8", "layerName": "Alternatives Submitted" }, "startEnabled": false, "layers": [{}] }); // // layers.push({ "type": "simple", "url": "https://gis.water.ca.gov/arcgis/rest/services/Boundaries/i03_Adjudicated_Areas/MapServer", "layers": [0], "title": "Adjudicated Areas", "startEnabled": false, "opacity": 0.85, "options": { "graphicsOpacity": 0.7, "parameters": [], "uniqueid": 3, "useIconMarker": false, "style": "circle", "symbol_size": "8", "reloaded": true, "events": {}, "layerName": "Adjudicated Areas" } }); // // layers.push({ "type": "simple", "url": "https://gis.water.ca.gov/arcgis/rest/services/Boundaries/i03_CaliforniaCounties/MapServer", "layers": [0], "startEnabled": false, "opacity": 0.72, "title": "Counties", "options": { "uniqueid": 5, "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", "options": { "uniqueid": 6, "reloaded": true, "events": {}, "layerName": "Bulletin 118 Groundwater Basins" } }); layers.push({ "type": "simple", "url": "https://gis.water.ca.gov/arcgis/rest/services/Geoscientific/i08_B118_CA_GroundwaterBasins_2016/MapServer", "layers": [0], "startEnabled": false, "opacity": 0.72, "title": "Bulletin 118 Groundwater Basins (2016)", "options": { "uniqueid": 6, "reloaded": true, "events": {}, "layerName": "Bulletin 118 Groundwater Basins (2016)" ,"customSymbol": { "color": { "r": 255, "g": 237, "b": 182, "a": 0.5 }, "outline": { "color": { "r": 0, "g": 0, "b": 0, "a": 1 }, "width": 0.5, "type": "esriSLS", "style": "esriSLSSolid" }, "type": "esriSFS", "style": "esriSFSSolid" } } }); // configOptions = { "hideDescription": true, "title": "GSP Initial Notification Map Viewer", "titleUrl": "https://sgma.water.ca.gov/portal", "tolerance": "6", "useGeometry": true, "hideNoData": true, "showLayerWin": true, "locations_uploader": true, "basemap_gallery": true, "showFullScreen": true, "style": "flat", "hideSingleTab": true, "infowinSaveData": { "10":[ { "visible": true, "field": "Basin", "alias": "Basin", "hyperlink_override": [ false ], "hyperlink": ["https://sgma.water.ca.gov/portal/gsp/init/preview/"], "hyperlink_key": ["GSP ID"], "add_key": "", "mask": "", "extra_rows": [] }, { "visible": true, "field": "GSAs", "alias": "GSAs", "hyperlink_override": [ false ], "hyperlink": [ "" ], "hyperlink_key": [ "" ], "add_key": "", "mask": "", "extra_rows": [] }, { "visible": true, "field": "Plan Mngr", "alias": "Plan Mngr", "hyperlink_override": [ false ], "hyperlink": [ "" ], "hyperlink_key": [ "" ], "add_key": "", "mask": "", "extra_rows": [] }, { "visible": true, "field": "Res. Doc", "alias": "Res. Doc", "hyperlink_override": [ false ], "hyperlink": [ "" ], "hyperlink_key": [ "" ], "add_key": "", "mask": "", "extra_rows": [] }, { "visible": true, "field": "GIS Doc", "alias": "GIS Doc", "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": "Submit Dt", "alias": "Submit Dt", "hyperlink_override": [ false ], "hyperlink": [ "" ], "hyperlink_key": [ "" ], "add_key": "", "mask": "", "extra_rows": [] }, { "visible": false, "field": "GSP ID", "alias": "GSP ID", "hyperlink_override": [ false ], "hyperlink": [ "" ], "hyperlink_key": [ "" ], "add_key": "", "mask": "", "extra_rows": [] }] ,"4": [ { "visible": false, "field": "AltRptId", "alias": "AltRptId", "hyperlink_override": [false], "hyperlink": [""], "hyperlink_key": [""], "add_key": "", "mask": "", "extra_rows": [] }, { "visible": true, "field": "AgencyNm", "alias": "Agency Name", "hyperlink_override": [false], "hyperlink": [""], "hyperlink_key": [""], "add_key": "", "mask": "", "extra_rows": [] }, { "visible": true, "field": "BasinNm", "alias": "Basin Name", "hyperlink_override": [false], "hyperlink": [""], "hyperlink_key": [""], "add_key": "", "mask": "", "extra_rows": [] }, { "visible": true, "field": "Basin_Subb", "alias": "Basin Number", "hyperlink_override": [false], "hyperlink": [""], "hyperlink_key": [""], "add_key": "", "mask": "", "extra_rows": [] }, { "visible": true, "field": "Subbasin_N", "alias": "Sub-Basin Name", "hyperlink_override": [false], "hyperlink": [""], "hyperlink_key": [""], "add_key": "", "mask": "", "extra_rows": [] }, { "visible": true, "field": "Shape_Leng", "alias": "More Details", "hyperlink_override": [false], "hyperlink": ["https://sgma.water.ca.gov/portal/alternative/print/"], "hyperlink_key": ["AltRptId"], "add_key": "", "mask": "View", "extra_rows": [] } ], "7": [ { "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": [] } ], "8": [ { "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(s)", "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": "90-Days", "alias": "90 Days Date", "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": [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": "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": "DWR GSA ID", "alias": "DWR GSA ID", "hyperlink_override": [false], "hyperlink": [""], "hyperlink_key": [""], "add_key": "", "mask": "", "extra_rows": [] }, { "visible": false, "field": "POC Phone", "alias": "", "hyperlink_override": [false], "hyperlink": [""], "hyperlink_key": [""], "add_key": "", "mask": "", "extra_rows": [] } ], "3": [ { "visible": true, "field": "NAME", "alias": "NAME", "hyperlink_override": [false], "hyperlink": [""], "hyperlink_key": [""], "add_key": "", "mask": "", "extra_rows": [] }, { "visible": false, "field": "SHAPE_Leng", "alias": "SHAPE Leng", "hyperlink_override": [false], "hyperlink": [""], "hyperlink_key": [""], "add_key": "", "mask": "", "extra_rows": [] }, { "visible": false, "field": "ADJ_ID", "alias": "ADJ ID", "hyperlink_override": [false], "hyperlink": [""], "hyperlink_key": [""], "add_key": "", "mask": "", "extra_rows": [] }, { "visible": true, "field": "WATERMASTE", "alias": "WATERMASTE", "hyperlink_override": [false], "hyperlink": [""], "hyperlink_key": [""], "add_key": "", "mask": "", "extra_rows": [] }, { "visible": true, "field": "COMMENTS", "alias": "COMMENTS", "hyperlink_override": [false], "hyperlink": [""], "hyperlink_key": [""], "add_key": "", "mask": "", "extra_rows": [] }, { "visible": true, "field": "Label", "alias": "Label", "hyperlink_override": [false], "hyperlink": [""], "hyperlink_key": [""], "add_key": "", "mask": "", "extra_rows": [] }, { "visible": true, "field": "Link_Court", "alias": "Link Court", "hyperlink_override": [false], "hyperlink": ["http://"], "hyperlink_key": ["Link_Court"], "add_key": "", "mask": "View", "extra_rows": [] }, { "visible": true, "field": "JUDGEMENT_", "alias": "JUDGEMENT ", "hyperlink_override": [false], "hyperlink": [""], "hyperlink_key": [""], "add_key": "", "mask": "", "extra_rows": [] }, { "visible": true, "field": "Court_Judg", "alias": "Court Judg", "hyperlink_override": [false], "hyperlink": [""], "hyperlink_key": [""], "add_key": "", "mask": "", "extra_rows": [] }, { "visible": true, "field": "Area_ID", "alias": "Recent Report", "hyperlink_override": [false], "hyperlink": ["http://sgma.water.ca.gov/adjudbasins/report/mostrecentrpt/"], "hyperlink_key": ["Area_ID"], "add_key": "", "mask": "View", "extra_rows": [] }, { "visible": false, "field": "Area_Name", "alias": "Area Name", "hyperlink_override": [false], "hyperlink": [""], "hyperlink_key": [""], "add_key": "", "mask": "", "extra_rows": [] } ] }, "map": { "minZoom": "", "maxZoom": "16", "basemap": "topo", "extent": { "xmin": -1.4867366784507869E7, "ymin": 3672034.10961519, "xmax": -1.1526151404107133E7, "ymax": 5239910.433800308, "spatialReference": {"wkid": 102100} } }, "tabs": [{ "type": "empty", "enabled": true, "options": { "tabName": "Custom Tab 1", "off": true, "opacity": 0.72 }, "addtl": layers }], "hideTitleBar": false, "hideSearchBar": false, "hideEditTool": true, "hideDrawingTool": true, "hideFullscreenTool": false, "hasMultiAppAccess": false, "hideBookmarkTool": true, "hideEmbedTool": true, "hideSaveTool": true, "hidePrintTool": true, "hideMeasureTool": false, "hideLegendTool": true, "hideSelectedBoundary": false, "showDisclaimer": false, "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": " Map Viewer", "disableMenuPanout": false, "hideToolsBar": false, "hideLayersTool": false, "hideBasemapTool": false, "makeInfowindowDraggable": true, "disableClicks": false, "featureSetInfowin": false, "infowindow_width": "", "infowindow_height": "", "layerWidthCfg": "", "hideLayerSettingsDropdown": true, "alwayShowLayerBar": true, "layerwindow_height": "900", "layerwindow_width": "" }