Riparian Project Metadata (includes image dates and project information)*
-
Historic Wetlands*
-
Historic Wetlands Project Metadata (includes image dates and project information)*
Watershed Boundary Dataset (WBD) HUC8 modified**
diff --git a/build/scripts/combined.js b/build/scripts/combined.js
index 9c9a90b..de7be9d 100644
--- a/build/scripts/combined.js
+++ b/build/scripts/combined.js
@@ -1,2 +1,2 @@
-function addCommas(e){e+="";for(var a=e.split("."),i=a[0],t=a.length>1?"."+a[1]:"",n=/(\d+)(\d{3})/;n.test(i);)i=i.replace(n,"$1,$2");return i+t}function camelize(e){return e.replace(/(?:^\w|[A-Z]|\b\w)/g,function(e,a){return 0===a?e.toLowerCase():e.toUpperCase()}).replace(/\s+/g,"")}function stateSelected(){var e=$("#stateSelect")[0];if(e.selectedIndex>0){var a=e.options[e.selectedIndex].value,i=e.options[e.selectedIndex].label;$("#downloadState").html("Download Geodatabase and Shapefile data for "+i+"")}else $("#downloadState").html("")}function hucLinkListener(e){console.log(e),$.get("https://fwsprimary.wim.usgs.gov/downloadLoggingService/downloadLog.asmx/Log?huc="+e+",NWIV2",function(e){})}var allLayers,tractRenderer,centroidRenderer;require(["esri/Color","esri/InfoTemplate","esri/layers/LabelClass","esri/renderers/SimpleRenderer","esri/symbols/SimpleFillSymbol","esri/symbols/SimpleLineSymbol","esri/symbols/SimpleMarkerSymbol","esri/symbols/TextSymbol","dojo/domReady!"],function(e,a,i,t,n,r,o,s){var l=new o(o.STYLE_CIRCLE,5,new r(r.STYLE_SOLID,new e([255,255,255]),.5),new e([0,0,0,1]));centroidRenderer=new t(l);var d=new n(n.STYLE_SOLID,new r(r.STYLE_SOLID,new e([0,0,0]),.5),new e([115,178,115,.75]));tractRenderer=new t(d);var p=new a("${NAME}","Type: ${TYPE} Ramsar: click here Location Website: click here Water Summary Report: click here Wildlife Action Plan: click here ");allLayers=[{groupHeading:"ESRI dynamic map services",showGroupHeading:!1,includeInLayerList:!0,layers:{Wetlands:{url:"https://fwsprimary.wim.usgs.gov/server/rest/services/Test/Wetlands_gdb_split/MapServer",options:{id:"wetlands",opacity:.75,visible:!0},wimOptions:{type:"layer",layerType:"agisDynamic",includeInLayerList:!0,zoomScale:144448,hasOpacitySlider:!0,includeLegend:!0,legendLabel:!1,hideLayers:[1,2,3,4,5],moreinfo:"https://www.fws.gov/program/national-wetlands-inventory/wetlands-data",otherLayersToggled:["wetlandsStatus","wetlandsRaster"]}},"Wetlands Status":{url:"https://fwsprimary.wim.usgs.gov/server/rest/services/Wetlands_Status/MapServer",options:{id:"wetlandsStatus",layers:[0],visible:!0,maxScale:285e3,opacity:.6},wimOptions:{type:"layer",layerType:"agisDynamic",includeInLayerList:!1,includeLegend:!0,esriLegendLabel:!1}},"Wetlands ":{url:"https://fwsprimary.wim.usgs.gov/server/rest/services/Wetlands_Raster/ImageServer",options:{id:"wetlandsRaster",visible:!0,maxScale:285e3,opacity:.6},wimOptions:{type:"layer",layerType:"agisImage",includeInLayerList:!1,includeLegend:!0,otherLayersToggled:["wetlands","wetlandsStatus"]}},Riparian:{url:"https://fwsprimary.wim.usgs.gov/server/rest/services/Riparian/MapServer",visibleLayers:[0],options:{id:"riparian",opacity:.75,visible:!0},wimOptions:{type:"layer",layerType:"agisDynamic",includeInLayerList:!0,zoomScale:144448,hasOpacitySlider:!0,moreinfo:"http://www.fws.gov/wetlands/Other/Riparian-Product-Summary.html",includeLegend:!0,legendLabel:!1}},"Riparian Mapping Areas":{url:"https://fwsprimary.wim.usgs.gov/server/rest/services/Riparian/MapServer",visibleLayers:[1],options:{id:"riparianStatus",visible:!1,opacity:.6},wimOptions:{type:"layer",layerType:"agisDynamic",includeInLayerList:!0,hasOpacitySlider:!0,moreinfo:"http://www.fws.gov/wetlands/Other/Riparian-Product-Summary.html",includeLegend:!0,legendLabel:!1}},HUC8:{url:"https://fwsprimary.wim.usgs.gov/server/rest/services/HUCs/MapServer",options:{id:"huc8",opacity:1,visible:!1},wimOptions:{type:"layer",layerType:"agisDynamic",includeInLayerList:!1,includeLegend:!0,esriLegendLabel:!1}}}},{groupHeading:"Data Source Group",showGroupHeading:!1,includeInLayerList:!0,moreinfo:"https://www.fws.gov/wetlands/Documents/Scalable-Wetland-Mapping-Fact-Sheet.pdf",otherLayersToggled:["sourceType","imageScale","imageYear"],layers:{"Source Type":{url:"https://fwsprimary.wim.usgs.gov/server/rest/services/Data_Source/MapServer",visibleLayers:[1],options:{id:"sourceType",opacity:.6,visible:!1},wimOptions:{type:"layer",layerType:"agisDynamic",includeInLayerList:!0,exclusiveGroupName:"Data Source",includeLegend:!0,otherLayersToggled:["imageScale","imageYear"],legendLabel:!1}},"Image Scale":{url:"https://fwsprimary.wim.usgs.gov/server/rest/services/Data_Source/MapServer",visibleLayers:[2],options:{id:"imageScale",opacity:.6,visible:!1},wimOptions:{type:"layer",layerType:"agisDynamic",includeInLayerList:!0,exclusiveGroupName:"Data Source",includeLegend:!0,otherLayersToggled:["sourceType","imageYear"],legendLabel:!1}},"Image Year":{url:"https://fwsprimary.wim.usgs.gov/server/rest/services/Data_Source/MapServer",visibleLayers:[3],options:{id:"imageYear",opacity:.6,visible:!1},wimOptions:{type:"layer",layerType:"agisDynamic",includeInLayerList:!0,exclusiveGroupName:"Data Source",includeLegend:!0,otherLayersToggled:["sourceType","imageScale"],legendLabel:!1}}}},{groupHeading:"refuges and historic",showGroupHeading:!1,includeInLayerList:!0,layers:{"Areas of Interest":{url:"https://fwsprimary.wim.usgs.gov/server/rest/services/Areas_of_Interest/MapServer/0",options:{id:"aoi",opacity:1,visible:!1,outFields:["*"],infoTemplate:p},wimOptions:{type:"layer",layerType:"agisFeature",includeInLayerList:!0,hasOpacitySlider:!1,moreinfo:"https://www.fws.gov/wetlands/Data/metadata/FWS_Wetland_Areas_of_Interest.xml",includeLegend:!0}},"FWS Managed Lands Centroids":{url:"https://services.arcgis.com/QVENGdaPbd4LUkLV/ArcGIS/rest/services/FWSCentroids/FeatureServer/0",options:{id:"fwsCentroids",opacity:.75,maxScale:18e6,visible:!1},wimOptions:{type:"layer",layerType:"agisFeature",includeInLayerList:!1,zoomScale:144448,hasOpacitySlider:!0,moreinfo:"http://www.fws.gov/gis/data/CadastralDB/index_cadastral.html",includeLegend:!0,esriLegendLabel:!1,renderer:centroidRenderer}},"FWS Managed Lands":{url:"https://services.arcgis.com/QVENGdaPbd4LUkLV/arcgis/rest/services/National_Wildlife_Refuge_System_Boundaries/FeatureServer/0",options:{id:"fwsTracts",opacity:.75,minScale:18e6,visible:!1,outFields:["*"],showLabels:!0},wimOptions:{type:"layer",layerType:"agisFeature",includeInLayerList:!0,zoomScale:144448,hasOpacitySlider:!0,moreinfo:"https://fws.maps.arcgis.com/home/item.html?id=745ed874c1394da3a9aae50267c9e049",otherLayersToggled:["fwsCentroids"],includeLegend:!0,esriLegendLabel:!1,renderer:tractRenderer}},"Historic Wetland Data":{url:"https://fwsprimary.wim.usgs.gov/server/rest/services/Historic_Wetlands/MapServer",visibleLayers:[0,1],options:{id:"historic",visible:!1,opacity:.6},wimOptions:{type:"layer",layerType:"agisDynamic",includeInLayerList:!0,hasOpacitySlider:!0,moreinfo:"https://www.fws.gov/wetlands/Data/Historic-Wetlands-Data.html",includeLegend:!0,legendLabel:!1}}}}]});var map,allLayers,maxLegendHeight,maxLegendDivHeight,printCount=0,legendLayers=[],measurement,identifyTask,identifyParams,aoiClicked=!1,initWetlandClicked=!1;require(["esri/map","esri/arcgis/utils","esri/config","esri/dijit/Geocoder","esri/dijit/HomeButton","esri/dijit/Legend","esri/dijit/LocateButton","esri/dijit/Measurement","esri/dijit/PopupTemplate","esri/graphic","esri/geometry/Extent","esri/geometry/Multipoint","esri/geometry/Point","esri/layers/ArcGISTiledMapServiceLayer","esri/renderers/UniqueValueRenderer","esri/SpatialReference","esri/symbols/PictureMarkerSymbol","esri/tasks/GeometryService","esri/tasks/IdentifyParameters","esri/tasks/IdentifyTask","esri/tasks/LegendLayer","esri/tasks/PrintTask","esri/tasks/PrintParameters","esri/tasks/PrintTemplate","esri/geometry/webMercatorUtils","esri/urlUtils","dojo/dom","dojo/dom-class","dojo/dnd/Moveable","dojo/query","dojo/on","dojo/domReady!"],function(e,a,i,t,n,r,o,s,l,d,p,c,m,g,y,u,f,h,b,v,w,L,S,T,I,E,k,_,x,D,C){function O(){$("#printModal").modal("show")}function P(){$("#getDataModal").modal("show")}function M(e){var a="";switch(e){case"CIR":a="color infrared";break;case"TC":a="true color";break;case"BW":a="black and white"}return a}function A(){K.activeGeocoder.searchExtent=null}function R(){A();var e=K.find();e.then(function(e){W(e)})}function N(e){F();var a=e.graphic?e.graphic:e.result.feature;a.setSymbol(X)}function W(e){if(e=e.results,e.length>0){F();for(var a=0;a'+s+" ");$("#printJobsDiv").find("p.toRemove").remove(),$("#printModalBody").append(a),$("#printTitle").val(""),$("#printExecuteButton").button("reset")}function a(e){alert("Sorry, an unclear print error occurred. Please try refreshing the application to fix the problem")}var i=new S;i.map=map;var t=new T;t.exportOptions={width:500,height:400,dpi:300},t.format="PDF",t.layout="Letter ANSI A Landscape test",t.preserveScale=!1;var n=new w;n.layerId="wetlands";var r=new w;r.layerId="wetlandsRaster";var o=$("#printTitle").val();""==o?t.layoutOptions={titleText:"Wetlands",authorText:"National Wetlands Inventory (NWI)",copyrightText:"This page was produced by the NWI mapper",legendLayers:[n,r]}:t.layoutOptions={titleText:o,authorText:"National Wetlands Inventory (NWI)",copyrightText:"This page was produced by the NWI mapper",legendLayers:[n,r]};var s=t.layoutOptions.titleText;i.template=t;var l=new L("https://fwsprimary.wim.usgs.gov/server/rest/services/ExportWebMap/GPServer/Export%20Web%20Map");l.execute(i,e,a),$.get("https://fwsprimary.wim.usgs.gov/pdfLoggingService/pdfLog.asmx/Log?printInfo="+map.getScale()+","+map.extent.xmin+","+map.extent.ymax+","+map.extent.xmax+","+map.extent.ymin+",NWIV2",function(e){})}function U(e,a){var i;document.getElementById&&(i=document.getElementById(e))&&i.style&&(i.style.cursor=a)}i.defaults.io.corsEnabledServers.push("fwsprimary.wim.usgs.gov"),esri.config.defaults.io.proxyUrl="https://fwsprimary.wim.usgs.gov/serviceProxy/proxy.ashx",i.defaults.geometryService=new h("https://fwsprimary.wim.usgs.gov/server/rest/services/Utilities/Geometry/GeometryServer"),map=new e("mapDiv",{basemap:"hybrid",extent:new p(-14638882.654811008,2641706.3772205533,-6821514.898031538,6403631.161302788,new u({wkid:3857})),fitExtent:!0,showLabels:!0});var Y=new n({map:map,extent:new p(-14638882.654811008,2641706.3772205533,-6821514.898031538,6403631.161302788,new u({wkid:3857}))},"homeButton");Y.startup();var j=new o({map:map,scale:4514},"locateButton");j.startup(),measurement=new s({map:map,advancedLocationUnits:!0},k.byId("measurementDiv")),measurement.startup(),$(window).resize(function(){$("#legendCollapse").hasClass("in")?(maxLegendHeight=.9*$("#mapDiv").height(),$("#legendElement").css("height",maxLegendHeight),$("#legendElement").css("max-height",maxLegendHeight),maxLegendDivHeight=$("#legendElement").height()-parseInt($("#legendHeading").css("height").replace("px","")),$("#legendDiv").css("max-height",maxLegendDivHeight)):$("#legendElement").css("height","initial")}),$("#printNavButton").click(function(){O()}),$("#printExecuteButton").click(function(e){e.preventDefault(),$(this).button("loading"),H()}),$("#getDataButton").click(function(){P()}),$("#aboutLink").click(function(){$("#aboutModal").modal("show"),$("#aboutTab").trigger("click")}),$("#disclaimerLink").click(function(){$("#aboutModal").modal("show"),$("#disclaimerTab").trigger("click")}),$("#dataLimitationsLink").click(function(){$("#aboutModal").modal("show"),$("#dataLimitationsTab").trigger("click")}),$("#userCautionLink").click(function(){$("#aboutModal").modal("show"),$("#userCautionTab").trigger("click")}),$(".docs").hide(),C(map,"load",function(){var e=map.getScale().toFixed(0);$("#scale")[0].innerHTML=addCommas(e);var a=I.webMercatorToGeographic(map.extent.getCenter());$("#latitude").html(a.y.toFixed(3)),$("#longitude").html(a.x.toFixed(3))}),C(map,"zoom-end",function(){var e=map.getScale().toFixed(0);$("#scale")[0].innerHTML=addCommas(e)}),C(map,"mouse-move",function(e){if($("#mapCenterLabel").css("display","none"),null!=e.mapPoint){var a=I.webMercatorToGeographic(e.mapPoint);$("#latitude").html(a.y.toFixed(3)),$("#longitude").html(a.x.toFixed(3))}}),C(map,"pan-end",function(){$("#mapCenterLabel").css("display","inline");var e=I.webMercatorToGeographic(map.extent.getCenter());$("#latitude").html(e.y.toFixed(3)),$("#longitude").html(e.x.toFixed(3))});var z=new g("https://server.arcgisonline.com/ArcGIS/rest/services/USA_Topo_Maps/MapServer"),B=new g("https://basemap.nationalmap.gov/arcgis/rest/services/USGSTopo/MapServer");C(k.byId("btnStreets"),"click",function(){map.setBasemap("streets"),map.removeLayer(B),map.removeLayer(z)}),C(k.byId("btnSatellite"),"click",function(){map.setBasemap("satellite"),map.removeLayer(B),map.removeLayer(z)}),C(k.byId("btnHybrid"),"click",function(){map.setBasemap("hybrid"),map.removeLayer(B),map.removeLayer(z)}),C(k.byId("btnTerrain"),"click",function(){map.setBasemap("terrain"),map.removeLayer(B),map.removeLayer(z)}),C(k.byId("btnGray"),"click",function(){map.setBasemap("gray"),map.removeLayer(B),map.removeLayer(z)}),C(k.byId("btnNatGeo"),"click",function(){map.setBasemap("national-geographic"),map.removeLayer(B),map.removeLayer(z)}),C(k.byId("btnOSM"),"click",function(){map.setBasemap("osm"),map.removeLayer(B),map.removeLayer(z)}),C(k.byId("btnTopo"),"click",function(){map.setBasemap("topo"),map.removeLayer(B),map.removeLayer(z)}),C(k.byId("btnNatlMap"),"click",function(){map.addLayer(B,1),map.removeLayer(z)}),C(k.byId("btnUsgsTopo"),"click",function(){map.addLayer(z,1),map.removeLayer(B)}),$("#wetlandDiv").lobiPanel({unpin:!1,reload:!1,minimize:!1,close:!1,expand:!1,editTitle:!1,maxWidth:600,maxHeight:400}),$("#wetlandDiv .dropdown").prepend(""),$("#wetlandClose").click(function(){$("#wetlandDiv").css("visibility","hidden"),map.graphics.clear()}),identifyParams=new b,identifyParams.tolerance=0,identifyParams.returnGeometry=!0,identifyParams.layerOption=b.LAYER_OPTION_ALL,identifyParams.width=map.width,identifyParams.height=map.height,identifyTask=new v(allLayers[0].layers.Wetlands.url);var q=D(".title",map.infoWindow.domNode)[0],V=new x(map.infoWindow.domNode,{handle:q});C(V,"FirstMove",function(){var e=D(".outerPointer",map.infoWindow.domNode)[0];_.add(e,"hidden");var e=D(".pointer",map.infoWindow.domNode)[0];_.add(e,"hidden")}.bind(this)),C(map,"click",function(e){if(1==aoiClicked)return void(aoiClicked=!1);if(null==measurement.activeTool)if(map.graphics.clear(),$("infoWindowLink").unbind("click"),$("#zoomProjectLink").unbind("click"),$("#wetlandDiv").css("visibility","hidden"),identifyParams.geometry=e.mapPoint,identifyParams.mapExtent=map.extent,map.getLevel()>=12&&0==$("#huc-download-alert")[0].scrollHeight){y=new v(allLayers[0].layers.Wetlands.url);var a=y.execute(identifyParams),i=new b;i.returnGeometry=!0,i.tolerance=0,i.width=map.width,i.height=map.height,i.geometry=e.mapPoint,i.layerOption=b.LAYER_OPTION_ALL,i.mapExtent=map.extent,i.layerIds=[0,1],U("mainDiv","wait"),map.setCursor("wait");var t=$("#wetlandDiv").data("lobiPanel"),n=$(document).height(),r=$(document).width(),o=.9,s=n*o,l=r*o,d=600,p=325;500>n&&($("#wetlandDiv").height(s),p=$("#floodToolsDiv").height()-50),500>r&&($("#wetlandDiv").width(l),d=$("#floodToolsDiv").width()-50);var c=.5*r-.5*$("#wetlandDiv").width(),m=.5*n-.5*$("#wetlandDiv").height();0==initWetlandClicked&&t.setPosition(c,m),1==t.isPinned()&&t.unpin(),initWetlandClicked=!0,$(".docs").hide(),$(".docItems").empty(),$("#reportInfo .panel-heading").addClass("loading-hide"),$("#reportInfo .panel-body").addClass("loading-hide"),$("#wetlandDiv").addClass("loading-background"),$(".tab-pane").addClass("hidden-loading"),a.addCallback(function(a){function t(e){var a;return a=0==e||""==e?"Link":e}if(a.length>1){var n,r,o,s,l=new b;l.returnGeometry=!1,l.tolerance=0,l.width=map.width,l.height=map.height,l.geometry=e.mapPoint,l.layerOption=b.LAYER_OPTION_ALL,l.mapExtent=map.extent,l.layerIds=[0,4];var d=new v(allLayers[1].layers["Source Type"].url),p=d.execute(l);p.addCallback(function(e){if(e.length>=1){for(var a=0;a"+t.PDF_NAME+"")):($("#"+e[i].value.toLowerCase()+"Docs").show(),$("#"+e[i].value.toLowerCase()+"Docs .docItems").append(""+t.Title+""))}}$("#reportInfo .panel-heading").removeClass("loading-hide"),$("#reportInfo .panel-body").removeClass("loading-hide"),$("#wetlandDiv").removeClass("loading-background"),$(".tab-pane").removeClass("hidden-loading")}),$("#wetlandTab").trigger("click"),$("#wetlandDiv").css("visibility","visible");for(var c=0;c10?$("#imageScalePopup").html("The wetlands and deepwater habitats in this area were photo interpreted using 1:"+addCommas(s.IMAGE_SCALE)+" scale, "):0!=s.IMAGE_SCALE&&$("#imageScalePopup").html("The wetlands and deepwater habitats in this area were photo interpreted using "+s.IMAGE_SCALE+" meter (or less) digital, "):$("#imageScalePopup").html(""),"Scalable"==s.SOURCE_TYPE?$("#sourceTypePopup").html("The data in this area are considered an interim scalable map product. Click here for a full description of Scalable Wetland Mapping. "):"Null"==s.SOURCE_TYPE?$("#sourceTypePopup").html("Photo interpretation information is not available for this project."):$("#sourceTypePopup").html(""+M(s.SOURCE_TYPE)+" imagery from "+t(s.IMAGE_YR)+". "),"None"!=s.SUPPMAPINFO?($("#suppMapInfo").empty(),$("#suppMapInfo").append('Click here for project specific mapping conventions and information.')):$("#suppMapInfo").empty();var u=["ATTRIBUTE","SYSTEM","SYSTEM_NAME","SYSTEM_DEFINITION","SUBSYSTEM","SUBSYSTEM_NAME","SUBSYSTEM_DEFINITION","CLASS","CLASS_NAME","CLASS_DEFINITION","SUBCLASS","SUBCLASS_NAME","SUBCLASS_DEFINITION","SPLIT_CLASS","SPLIT_CLASS_NAME","SPLIT_CLASS_DEFINITION","SPLIT_SUBCLASS","SPLIT_SUBCLASS_NAME","SPLIT_SUBCLASS_DEFINITION","WATER_REGIME","WATER_REGIME_NAME","WATER_REGIME_SUBGROUP","WATER_REGIME_DEFINITION","MODIFIER1","MODIFIER1_NAME","MODIFIER1_GROUP","MODIFIER1_SUBGROUP","MODIFIER1_DEFINITION","MODIFIER2","MODIFIER2_NAME","MODIFIER2_GROUP","MODIFIER2_SUBGROUP","MODIFIER2_DEFINITION"];$.each(u,function(e){var a=u[e],i=o[a];"Null"!=i?"SPLIT_CLASS"!=a&&"SPLIT_CLASS_NAME"!=a&&"SPLIT_CLASS_DEFINITION"!=a||o.CLASS!=o.SPLIT_CLASS?($("#des"+a).html(o[a]),$("#des"+a).show(),$("#des"+a).parent().show()):$("#SPLIT_CLASS_GROUP").hide():$("#des"+a).parent().hasClass("decoder-group")&&$("#des"+a).parent().hide()});var f=dojo.connect(map.infoWindow,"onHide",function(e){map.graphics.clear(),dojo.disconnect(map.infoWindow,f),$("infoWindowLink").unbind("click"),$("#zoomProjectLink").unbind("click")});U("mainDiv","default"),map.setCursor("default"),$("#infoWindowLink").click(function(e){var a=I.webMercatorToGeographic(n.geometry),i=a.getExtent();map.setExtent(i,!0)}),$("#zoomProjectLink").click(function(e){var a=I.webMercatorToGeographic(r.geometry),i=a.getExtent();map.setExtent(i,!0);var t=new esri.symbol.SimpleFillSymbol(esri.symbol.SimpleFillSymbol.STYLE_SOLID,new esri.symbol.SimpleLineSymbol(esri.symbol.SimpleLineSymbol.STYLE_SOLID,new dojo.Color([255,255,0]),2),new dojo.Color([98,194,204,0]));r.geometry.spatialReference=map.spatialReference;var n=r;n.setSymbol(t),map.graphics.add(n)})}else if(a.length<=1){y=new v(allLayers[0].layers.Riparian.url);var h=y.execute(identifyParams);h.addCallback(function(a){if(a.length>1){for(var t,n,r,o,s=0;sclick here";var c=new esri.InfoTemplate("Riparian","Classification: "+r.ATTRIBUTE+" (decode)
Please review the Data Download (www.fws.gov/wetlands/Data/Data-Download.html) page for information on how to download data, what is included in the download and data use limitations and disclaimer.
Click the map to select a watershed from which to extract wetland data.
"});var K=new t({value:"",maxLocations:25,autoComplete:!0,arcgisGeocoder:!0,autoNavigate:!1,map:map},"geosearch");K.startup(),K.on("select",N),K.on("findResults",W),K.on("clear",F),C(K.inputNode,"keydown",function(e){13==e.keyCode&&A()});var X=G("../images/purple-pin.png",0,12,13,24);map.on("load",function(){map.infoWindow.set("highlight",!1),map.infoWindow.set("titleInBody",!1)}),C(k.byId("btnGeosearch"),"click",R),$(document).ready(function(){function e(){$("#geosearchModal").modal("show")}function a(){$("#aboutModal").modal("show")}$("#geosearchNav").click(function(){e()}),$("#aboutNav").click(function(){a()}),$("#html").niceScroll(),$("#sidebar").niceScroll(),$("#sidebar").scroll(function(){$("#sidebar").getNiceScroll().resize()}),maxLegendHeight=.9*$("#mapDiv").height(),$("#legendElement").css("max-height",maxLegendHeight),maxLegendDivHeight=maxLegendHeight-parseInt($("#legendHeading").css("height").replace("px","")),$("#legendDiv").css("max-height",maxLegendDivHeight),$("#legendCollapse").on("shown.bs.collapse",function(){if(0==legendDiv.innerHTML.length){var e=new r({map:map,layerInfos:legendLayers},"legendDiv");e.startup(),$("#legendDiv").niceScroll()}}),$("#legendCollapse").on("hide.bs.collapse",function(){$("#legendElement").css("height","initial")}),$("#measurementCollapse").on("shown.bs.collapse",function(){$("#measureLabel").show()}),$("#measurementCollapse").on("hide.bs.collapse",function(){window.innerWidth<=767&&$("#measureLabel").hide()})}),require(["esri/Color","esri/InfoTemplate","esri/tasks/locator","esri/tasks/query","esri/tasks/QueryTask","esri/graphicsUtils","esri/geometry/Point","esri/geometry/Extent","esri/layers/ArcGISDynamicMapServiceLayer","esri/layers/ArcGISImageServiceLayer","esri/layers/FeatureLayer","esri/layers/LabelClass","esri/layers/WMSLayer","esri/layers/WMSLayerInfo","esri/symbols/TextSymbol","esri/tasks/GeometryService","dijit/form/CheckBox","dijit/form/RadioButton","dojo/query","dojo/dom","dojo/dom-class","dojo/dom-construct","dojo/dom-style","dojo/on"],function(e,a,i,t,n,r,o,s,l,d,p,c,m,g,y,u,f,h,b,v,w,L,S,T){function I(i,t,n,r,o,s,l){if(map.addLayer(n),0==l.legendLabel){var d=document.createElement("style");d.type="text/css",d.innerHTML="[id*="+n.id+"] .esriLegendLayerLabel { display: none; }",document.getElementsByTagName("head")[0].appendChild(d)}if("fwsTracts"==n.id){var p=new e("#FFF"),m=(new y).setColor(p);m.font.setSize("10pt"),m.font.setFamily("arial");var g={labelExpressionInfo:{value:"{ORGNAME}"}},u=new c(g);u.symbol=m,u.minScale=175e3,n.setLabelingInfo([u])}if("aoi"==n.id&&T(n,"load",function(e){T(n,"click",function(e){aoiClicked=!0;var i=e.graphic.attributes.HYPERLINK_2;if("None"==i){var t=new a("${NAME}","Type: ${TYPE} Location Website: click here Water Summary Report: click here Wildlife Action Plan: click here ");n.setInfoTemplate(t)}else{var t=new a("${NAME}","Type: ${TYPE} Ramsar: click here Location Website: click here Water Summary Report: click here Wildlife Action Plan: click here ");n.setInfoTemplate(t)}})}),E.push([o,camelize(r),n]),o){if(!$("#"+camelize(o)).length){var f;if("Data Source"==o)var f=$('
Please review the Data Download (www.fws.gov/wetlands/Data/Data-Download.html) page for information on how to download data, what is included in the download and data use limitations and disclaimer.
Click the map to select a watershed from which to extract wetland data.
"});var K=new t({value:"",maxLocations:25,autoComplete:!0,arcgisGeocoder:!0,autoNavigate:!1,map:map},"geosearch");K.startup(),K.on("select",N),K.on("findResults",W),K.on("clear",F),D(K.inputNode,"keydown",function(e){13==e.keyCode&&R()});var X=G("../images/purple-pin.png",0,12,13,24);map.on("load",function(){map.infoWindow.set("highlight",!1),map.infoWindow.set("titleInBody",!1)}),D(E.byId("btnGeosearch"),"click",A),$(document).ready(function(){function e(){$("#geosearchModal").modal("show")}function a(){$("#aboutModal").modal("show")}function i(){$("#disclaimerModal").modal("show")}$("#geosearchNav").click(function(){e()}),$("#aboutNav").click(function(){a(),$("#aboutTab").trigger("click")}),$("#html").niceScroll(),$("#sidebar").niceScroll(),$("#sidebar").scroll(function(){$("#sidebar").getNiceScroll().resize()}),i(),maxLegendHeight=.9*$("#mapDiv").height(),$("#legendElement").css("max-height",maxLegendHeight),maxLegendDivHeight=maxLegendHeight-parseInt($("#legendHeading").css("height").replace("px","")),$("#legendDiv").css("max-height",maxLegendDivHeight),$("#legendCollapse").on("shown.bs.collapse",function(){if(0==legendDiv.innerHTML.length){var e=new r({map:map,layerInfos:legendLayers},"legendDiv");e.startup(),$("#legendDiv").niceScroll()}}),$("#legendCollapse").on("hide.bs.collapse",function(){$("#legendElement").css("height","initial")}),$("#measurementCollapse").on("shown.bs.collapse",function(){$("#measureLabel").show()}),$("#measurementCollapse").on("hide.bs.collapse",function(){window.innerWidth<=767&&$("#measureLabel").hide()})}),require(["esri/Color","esri/InfoTemplate","esri/tasks/locator","esri/tasks/query","esri/tasks/QueryTask","esri/graphicsUtils","esri/geometry/Point","esri/geometry/Extent","esri/layers/ArcGISDynamicMapServiceLayer","esri/layers/ArcGISImageServiceLayer","esri/layers/FeatureLayer","esri/layers/LabelClass","esri/layers/WMSLayer","esri/layers/WMSLayerInfo","esri/symbols/TextSymbol","esri/tasks/GeometryService","dijit/form/CheckBox","dijit/form/RadioButton","dojo/query","dojo/dom","dojo/dom-class","dojo/dom-construct","dojo/dom-style","dojo/on"],function(e,a,i,t,n,r,o,s,l,d,p,c,m,g,y,u,h,f,b,v,w,L,S,T){function I(i,t,n,r,o,s,l){if(map.addLayer(n),0==l.legendLabel){var d=document.createElement("style");d.type="text/css",d.innerHTML="[id*="+n.id+"] .esriLegendLayerLabel { display: none; }",document.getElementsByTagName("head")[0].appendChild(d)}if("fwsTracts"==n.id){var p=new e("#FFF"),m=(new y).setColor(p);m.font.setSize("10pt"),m.font.setFamily("arial");var g={labelExpressionInfo:{value:"{ORGNAME}"}},u=new c(g);u.symbol=m,u.minScale=175e3,n.setLabelingInfo([u])}if("aoi"==n.id&&T(n,"load",function(e){T(n,"click",function(e){aoiClicked=!0;var i=e.graphic.attributes.HYPERLINK_2;if("None"==i){var t=new a("${NAME}","Type: ${TYPE} Location Website: click here Water Summary Report: click here Wildlife Action Plan: click here ");n.setInfoTemplate(t)}else{var t=new a("${NAME}","Type: ${TYPE} Ramsar: click here Location Website: click here Water Summary Report: click here Wildlife Action Plan: click here ");n.setInfoTemplate(t)}})}),k.push([o,camelize(r),n]),o){if(!$("#"+camelize(o)).length){var h;if("Data Source"==o)var h=$('
+ The wetlands displayed on the Wetlands Mapper are not jurisdictional. They show wetland type and extent using a biological definition
+ of wetlands mapped to imagery using a specific date. There is no attempt to define the limits of jurisdiction of any Federal, State,
+ or local government, or to account for changes in the landscape that may have occurred after the wetland data were produced. For
+ information about regulations that may affect wetlands or development on your property, contact the U.S. Army Corps of Engineers
+ office nearest you: http://www.usace.army.mil/Locations.aspx.
+
+
+
+
+
+
@@ -193,8 +213,6 @@
Before You Begin
Wetlands Historic Map Information*
Riparian polygon data*
Riparian Project Metadata (includes image dates and project information)*
-
Historic Wetlands*
-
Historic Wetlands Project Metadata (includes image dates and project information)*
Watershed Boundary Dataset (WBD) HUC8 modified**
diff --git a/src/scripts/core.js b/src/scripts/core.js
index 404fe59..0fd551f 100644
--- a/src/scripts/core.js
+++ b/src/scripts/core.js
@@ -355,6 +355,9 @@ require([
}.bind(this));
//end code for adding draggability to infoWindow
+ //$('#aboutModal').modal('show');
+ //$('#disclaimerTab').trigger('click');
+
//map click handler
on(map, "click", function(evt) {
@@ -384,17 +387,6 @@ require([
identifyTask = new IdentifyTask(allLayers[0].layers["Wetlands"].url);
var deferredResult = identifyTask.execute(identifyParams);
- //Historic Wetland Identify task
- var historicIdentifyParameters = new IdentifyParameters();
- historicIdentifyParameters.returnGeometry = true;
- historicIdentifyParameters.tolerance = 0;
- historicIdentifyParameters.width = map.width;
- historicIdentifyParameters.height = map.height;
- historicIdentifyParameters.geometry = evt.mapPoint;
- historicIdentifyParameters.layerOption = IdentifyParameters.LAYER_OPTION_ALL;
- historicIdentifyParameters.mapExtent = map.extent;
- historicIdentifyParameters.layerIds = [0,1];
-
setCursorByID("mainDiv", "wait");
map.setCursor("wait");
@@ -783,90 +775,7 @@ require([
//map.infoWindow.show(evt.mapPoint);
- } else if (response.length <= 1) {
-
- var historicIdentifyTask = new IdentifyTask(allLayers[2].layers["Historic Wetland Data"].url);
- var deferredHistoric = historicIdentifyTask.execute(historicIdentifyParameters);
-
- deferredHistoric.addCallback(function(response) {
-
- if (response.length >= 1) {
-
- var feature;
- var attr;
- var attrStatus;
-
- for (var i = 0; i < response.length; i++) {
- if (response[i].layerId == 0) {
- feature = response[i].feature;
- attr = feature.attributes;
- } else if (response[i].layerId == 1) {
- attrStatus = response[i].feature.attributes;
- }
-
- }
-
- // Code for adding wetland highlight
- var symbol = new esri.symbol.SimpleFillSymbol(esri.symbol.SimpleFillSymbol.STYLE_SOLID,
- new esri.symbol.SimpleLineSymbol(esri.symbol.SimpleLineSymbol.STYLE_SOLID,
- new dojo.Color([255,255,0]), 2), new dojo.Color([98,194,204,0])
- );
- feature.geometry.spatialReference = map.spatialReference;
- var graphic = feature;
- graphic.setSymbol(symbol);
-
- map.graphics.add(graphic);
-
- var projmeta = '';
- if (attrStatus.SUPPMAPINFO == 'None') {
- projmeta = " NONE";
- } else {
- projmeta = " click here";
- }
-
- if (attrStatus.IMAGE_DATE == "" || attrStatus.IMAGE_DATE == "0" || attrStatus.IMAGE_DATE == 0) {
- attrStatus.IMAGE_DATE = projmeta;
- }
-
- var template = new esri.InfoTemplate("Historic Wetland",
- "