/** * * 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; layers.push({ "type": "generic", "url": SGMA_HOST + "/service/gspar/submitted/shapefiles", "title": "GSP Annual Reports", "options": { "uniqueid": uniqueIdCounter++, "layerName": "GSP Annual Reports", "graphicsOpacity": 0.7, "filename": SGMA_HOST + "/service/gspar/submitted/shapefiles", "extension": "zip", "fileid": SGMA_HOST + "/service/gspar/submitted/shapefiles", "isFile": true, "parameters": [], "customSymbol": { "color": { "r": 40, "g": 128, "b": 191, "a": .85 },// color "outline": { "color": { "r": 255, "g": 255, "b": 255, "a": .85 },//color "width": 0.5, "type": "esriSLS", "style": "esriSLSSolid" },// outline "type": "esriSFS", "style": "esriSFSSolid" },// customSymbol "useIconMarker": false, "style": "circle", "symbol_size": "8" }, "layers": [{}], "startEnabled": true }); configOptions = { "hideDescription": true, "title": "GSP Annual Report 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": {}, "events": { "onLayerLoad": function(service){ if (service.uniqueid == 1) { window.app.zoomToLayer(service.uniqueid); } } }, "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": false, "hideSearchBar": false, "hideEditTool": true, "hideDrawingTool": false, "hideFullscreenTool": false, "hasMultiAppAccess": false, "hideBookmarkTool": false, "hideEmbedTool": false, "hideSaveTool": true, "hidePrintTool": false, "hideMeasureTool": false, "hideLegendTool": false, "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": false, "hideLayersTool": false, "hideBasemapTool": false, "makeInfowindowDraggable": true, "disableClicks": false, "featureSetInfowin": false, "infowindow_width": "", "infowindow_height": "", "layerWidthCfg": "", "hideLayerSettingsDropdown": true, "alwayShowLayerBar": true, "layerwindow_height": "300", "layerwindow_width": "", "appLabel": "", "useInfoGrid": false, "hideSelectTool": true, "hideLayerOptions": false ,"hideInFeatureTool" : true };