var HOST = location.protocol + "//" + location.host; var CONTEXT = ""; var SGMA_HOST = 'https://sgma.water.ca.gov/portal'; var layers = []; var filters = []; filters.push({ field:"GSA_ID" ,operator:"=" ,value:5 }); filters.push({ field:"GSA_ID" ,operator:"=" ,value:11 }); filters.push({ field:"GSA_ID" ,operator:"=" ,value:273 }); layers.push({ "type": "generic", "url": SGMA_HOST + "/service/gsadocument/exclusivegsa", "title": "Santa Ynez GSA", "opacity": 0.72, "options": { "filter": filters, "graphicsOpacity": 0.7, "layerName": "Santa Ynez GSA", "filename": SGMA_HOST + "/service/gsadocument/exclusivegsa", "extension": "zip", "fileid": SGMA_HOST + "/service/gsadocument/exclusivegsa", "isFile": true, "uniqueid": 2, "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": "uniqueValue", "field1": "GSA_ID", "defaultSymbol": { "color": [ 51, 183, 25, 255 ], "outline": { "color": [ 0, 0, 0, 0 ], "width": 1, "type": "esriSLS", "style": "esriSLSSolid" },/**/ "type": "esriSFS", "style": "esriSFSSolid" }, "uniqueValueInfos": [ { "value": 5, "symbol": { "color": [255,0,255,128], "outline": { "color": [0,0,0,255], "width": 1, "type": "esriSLS", "style": "esriSLSSolid" }, "type": "esriSFS", "style": "esriSFSSolid" } }, { "value": 11, "symbol": { "color": [0,255,0,128], "outline": { "color": [0,0,0,255], "width": 1, "type": "esriSLS", "style": "esriSLSSolid" }, "type": "esriSFS", "style": "esriSFSSolid" } }, { "value": 273, "symbol": { "color": [255,40,0,128], "outline": { "color": [0,0,0,255], "width": 1, "type": "esriSLS", "style": "esriSLSSolid" }, "type": "esriSFS", "style": "esriSFSSolid" } } ] }} }, "customSymbol": { "type": "uniqueValue", "labels": ["WEST", "CENTRAL", "EAST"], "uvrJson": { "uniqueValueInfos": [ { "label": "WEST", "value": "5", "symbol": { "color": [0,255,0,128], "outline": { "color": [0,0,0,255], "width": 1, "type": "esriSLS", "style": "esriSLSSolid" }, "type": "esriSFS", "style": "esriSFSSolid" }, "description": "" }, { "label": "CENTRAL", "value": "11", "symbol": { "color": [255,0,255,128], "outline": { "color": [0,0,0,255], "width": 1, "type": "esriSLS", "style": "esriSLSSolid" }, "type": "esriSFS", "style": "esriSFSSolid" }, "description": "" }, { "label": "EAST", "value": "273", "symbol": { "color": [255,40,0,255], "outline": { "color": [0,0,0,255], "width": 1, "type": "esriSLS", "style": "esriSLSSolid" }, "type": "esriSFS", "style": "esriSFSSolid" }, "description": "" }, ], "field1": "GSA_ID", "type": "uniqueValue" } }, "windowConfig": { "layerOption": null, "iconradio": false } }, "layers": [{}], "startEnabled": true }); 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": 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" } }); configOptions = { "hideDescription": true, "title": "Basin Stakeholders", "titleUrl": HOST + CONTEXT, "tolerance": "6", "useGeometry": true, "hideNoData": true, "showLayerWin": true, "resizableLayerWin": false, "hideLegendTool": false, "locations_uploader": true, "basemap_gallery": true, "showFullScreen": true, "style": "flat", "hideSingleTab": true, "hideInFeatureTool": true, "useProxy": false, "infowinSaveData": {}, "map": { "minZoom": "", "maxZoom": "", "extent": { "xmin": -1.3443138717760647E7, "ymin": 4082025.7038105894, "xmax": -1.3296379623453306E7, "ymax": 4155863.8731339704, "spatialReference": {"wkid": 102100} } }, "tabs": [{ "type": "empty", "enabled": true, "options": {"tabName": "Custom Tab"} ,"addtl": layers }], "title_option": "My Map", "appLabel": "", "hideTitleBar": false, "disableMenuPanout": false, "hasMultiAppAccess": false, "showDisclaimer": false, "disclaimer": "", "disableDisclaimerDisableOption": false, "hideEditTool": false, "hideSaveTool": false, "useInfoGrid": false, "enableDownloadWindow": false, "hideToolsBar": false, "hideLayersTool": false, "hideBasemapTool": true, "hideLeveeMileTool": true, "hideElevationTool": true, "hideMeasureTool": true, "hidePrintTool": true, "hideFullscreenTool": true, "hideEmbedTool": true, "hideBookmarkTool": true, "hideDrawingTool": true, "hideSelectTool": true, "hideSearchBar": false, "hideSelectedBoundary": true, "hideSelectInFeatureButton": true, "hideZoomToButton": true, "hideLayerOptions": false, "alwayShowLayerBar": false, "hideLegendToggle": false, "hideLayerSettingsDropdown": true, "hideOpacitySlider": false, "hideLayerDownload": false, "makeInfowindowDraggable": false, "disableClicks": false, "featureSetInfowin": false, "infowindow_width": "", "infowindow_height": "", "layerwindow_height": "320", "layerwindow_width": "270", "geometryServiceUrl": "", "login": {"requireLogin": false} }