Skip to content

Commit

Permalink
Merge pull request #9 from USGS-WiM/2024-data-update
Browse files Browse the repository at this point in the history
2024 data update
  • Loading branch information
esmyers authored May 1, 2024
2 parents 9f4c9d7 + 3ae3c2a commit 3c52338
Show file tree
Hide file tree
Showing 8 changed files with 5,165 additions and 5,166 deletions.
5,342 changes: 2,671 additions & 2,671 deletions build/fonts/fontawesome-webfont.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
456 changes: 228 additions & 228 deletions build/fonts/glyphicons-halflings-regular.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1,793 changes: 901 additions & 892 deletions build/index.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion build/scripts/combined.js

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions build/styles/vendor.css

Large diffs are not rendered by default.

384 changes: 190 additions & 194 deletions src/scripts/layers.js
Original file line number Diff line number Diff line change
@@ -1,194 +1,190 @@
/**
* Created by bdraper on 4/27/2015.
*/

/**UPDATE impoartant! -- when updating to a new application, make sure that all visiblelayer Ids match the corresponding REST service layer.
Also make sure that titles are appropriate
**/
var allLayers;

require([
"esri/geometry/Extent",
"esri/layers/WMSLayerInfo",
"esri/layers/FeatureLayer",
"esri/layers/ImageParameters",
"esri/layers/LayerDrawingOptions",
"dojo/domReady!",
], function (
Extent,
WMSLayerInfo,
FeatureLayer,
ImageParameters,
LayerDrawingOptions
) {
var sparrowOverlay;
if ($("#radio1")[0].checked == true) {
sparrowOverlay = 0;
} else {
sparrowOverlay = 0;
}

var layerOptions = new LayerDrawingOptions();
layerOptions.scaleSymbols = true;

allLayers = [
{
groupHeading: "SPARROW Model",
showGroupHeading: true,
includeInLayerList: true,
layers: {
"SPARROW Model Results": {
url: serviceBaseURL,
visibleLayers: [sparrowOverlay],
options: {
id: "SparrowRanking",
opacity: 0.75,
visible: true,
layerDrawingOptions: layerOptions,
},
wimOptions: {
type: "layer",
layerType: "agisDynamic",
includeInLayerList: true,
hasOpacitySlider: true,
hasZoomto: false,
includeLegend: false,
},
},
},
},
{
groupHeading: "Model Calibration Sites",
showGroupHeading: true,
includeInLayerList: true,
layers: {
"Phosphorus Calibration Sites": {
url: serviceBaseURL,
visibleLayers: [28],
options: {
id: "phosCalibration",
opacity: 0.85,
visible: false,
},
wimOptions: {
type: "layer",
layerType: "agisDynamic",
includeInLayerList: true,
zoomScale: 144448,
hasOpacitySlider: true,
hasZoomto: false,
includeLegend: true,
},
},
"Nitrogen Calibration Sites": {
url: serviceBaseURL,
visibleLayers: [29],
options: {
id: "nitroCalibration",
visible: false,
opacity: 0.85,
},
wimOptions: {
type: "layer",
layerType: "agisDynamic",
includeInLayerList: true,
hasOpacitySlider: true,
hasZoomto: false,
includeLegend: false,
},
},
"Suspended Sediment Calibration Sites": {
url: serviceBaseURL,
visibleLayers: [31],
options: {
id: "sedimentCalibration",
visible: false,
opacity: 0.85,
},
wimOptions: {
type: "layer",
layerType: "agisDynamic",
includeInLayerList: true,
hasOpacitySlider: true,
hasZoomto: false,
includeLegend: false,
},
},
"Streamflow Calibration Sites": {
url: serviceBaseURL,
visibleLayers: [30],
options: {
id: "streamflowCalibration",
visible: false,
opacity: 0.85,
},
wimOptions: {
type: "layer",
layerType: "agisDynamic",
includeInLayerList: true,
hasOpacitySlider: true,
hasZoomto: false,
includeLegend: false,
},
},
},
},
{
groupHeading: "Auxiliary Layers",
showGroupHeading: true,
includeInLayerList: true,
layers: {
"Mississippi Reaches - zoom in to view": {
url: serviceBaseURL,
visibleLayers: [32],
options: {
id: "streams",
visible: false,
minScale: 3155581.108577,
},
wimOptions: {
type: "layer",
layerType: "agisDynamic",
includeInLayerList: true,
hasOpacitySlider: true,
hasZoomto: false,
zoomScale: 3155581.108577,
includeLegend: false,
},
},
"Reaches > 100 cfs": {
url: serviceBaseURL,
visibleLayers: [33],
options: {
id: "gt100",
visible: false,
},
wimOptions: {
type: "layer",
layerType: "agisDynamic",
includeInLayerList: true,
hasOpacitySlider: true,
hasZoomto: false,
includeLegend: false,
},
},
"NLCD Land Use 2012": {
url: "https://gis.wim.usgs.gov/arcgis/rest/services/SWTrends/lu2012_100515_test/ImageServer",
options: {
id: "lu2012",
opacity: 0.5,
visible: false,
},
wimOptions: {
type: "layer",
layerType: "agisImage",
includeInLayerList: true,
hasOpacitySlider: true,
hasZoomto: false,
includeLegend: false,
},
},
},
},
];
});
/**UPDATE impoartant! -- when updating to a new application, make sure that all visiblelayer Ids match the corresponding REST service layer.
Also make sure that titles are appropriate
**/
var allLayers;

require([
"esri/geometry/Extent",
"esri/layers/WMSLayerInfo",
"esri/layers/FeatureLayer",
"esri/layers/ImageParameters",
"esri/layers/LayerDrawingOptions",
"dojo/domReady!",
], function (
Extent,
WMSLayerInfo,
FeatureLayer,
ImageParameters,
LayerDrawingOptions
) {
var sparrowOverlay;
if ($("#radio1")[0].checked == true) {
sparrowOverlay = 0;
} else {
sparrowOverlay = 0;
}

var layerOptions = new LayerDrawingOptions();
layerOptions.scaleSymbols = true;

allLayers = [
{
groupHeading: "SPARROW Model",
showGroupHeading: true,
includeInLayerList: true,
layers: {
"SPARROW Model Results": {
url: serviceBaseURL,
visibleLayers: [sparrowOverlay],
options: {
id: "SparrowRanking",
opacity: 0.75,
visible: true,
layerDrawingOptions: layerOptions,
},
wimOptions: {
type: "layer",
layerType: "agisDynamic",
includeInLayerList: true,
hasOpacitySlider: true,
hasZoomto: false,
includeLegend: false,
},
},
},
},
{
groupHeading: "Model Calibration Sites",
showGroupHeading: true,
includeInLayerList: true,
layers: {
"Phosphorus Calibration Sites": {
url: serviceBaseURL,
visibleLayers: [28],
options: {
id: "phosCalibration",
opacity: 0.85,
visible: false,
},
wimOptions: {
type: "layer",
layerType: "agisDynamic",
includeInLayerList: true,
zoomScale: 144448,
hasOpacitySlider: true,
hasZoomto: false,
includeLegend: true,
},
},
"Nitrogen Calibration Sites": {
url: serviceBaseURL,
visibleLayers: [29],
options: {
id: "nitroCalibration",
visible: false,
opacity: 0.85,
},
wimOptions: {
type: "layer",
layerType: "agisDynamic",
includeInLayerList: true,
hasOpacitySlider: true,
hasZoomto: false,
includeLegend: false,
},
},
"Suspended Sediment Calibration Sites": {
url: serviceBaseURL,
visibleLayers: [31],
options: {
id: "sedimentCalibration",
visible: false,
opacity: 0.85,
},
wimOptions: {
type: "layer",
layerType: "agisDynamic",
includeInLayerList: true,
hasOpacitySlider: true,
hasZoomto: false,
includeLegend: false,
},
},
"Streamflow Calibration Sites": {
url: serviceBaseURL,
visibleLayers: [30],
options: {
id: "streamflowCalibration",
visible: false,
opacity: 0.85,
},
wimOptions: {
type: "layer",
layerType: "agisDynamic",
includeInLayerList: true,
hasOpacitySlider: true,
hasZoomto: false,
includeLegend: false,
},
},
},
},
{
groupHeading: "Auxiliary Layers",
showGroupHeading: true,
includeInLayerList: true,
layers: {
"Mississippi Reaches - zoom in to view": {
url: serviceBaseURL,
visibleLayers: [32],
options: {
id: "streams",
visible: false,
minScale: 3155581.108577,
},
wimOptions: {
type: "layer",
layerType: "agisDynamic",
includeInLayerList: true,
hasOpacitySlider: true,
hasZoomto: false,
zoomScale: 3155581.108577,
includeLegend: false,
},
},
"Reaches > 100 cfs": {
url: serviceBaseURL,
visibleLayers: [33],
options: {
id: "gt100",
visible: false,
},
wimOptions: {
type: "layer",
layerType: "agisDynamic",
includeInLayerList: true,
hasOpacitySlider: true,
hasZoomto: false,
includeLegend: false,
},
},
"NLCD Land Use 2012": {
url: "https://gis1.wim.usgs.gov/server/rest/services/SWTrends/lu2012_100515_test/ImageServer",
options: {
id: "lu2012",
opacity: 0.5,
visible: false,
},
wimOptions: {
type: "layer",
layerType: "agisImage",
includeInLayerList: true,
hasOpacitySlider: true,
hasZoomto: false,
includeLegend: false,
},
},
},
},
];
});
Loading

0 comments on commit 3c52338

Please sign in to comment.