Commit 0331873b authored by Peter Knoop's avatar Peter Knoop
Browse files

An favicon for the project

parent f166875d
......@@ -4,6 +4,7 @@
<meta charset="utf-8" />
<meta name="viewport" content="initial-scale=1, maximum-scale=1, user-scalable=no" />
<title>SharedAir</title>
<link rel="shortcut icon" href="favicon.ico">
<link rel="stylesheet" href="sharedAir.css">
<link rel="stylesheet" href="https://js.arcgis.com/4.15/esri/themes/light/main.css" />
......
......@@ -100,7 +100,7 @@ require([
}
// Create a layer from Perry's alert and Yale's opinion data at the level of Congressional Districts (115th).
var layer = new FeatureLayer({
const layer = new FeatureLayer({
//url: "https://services1.arcgis.com/4ezfu5dIwH83BUNL/arcgis/rest/services/Yale_Congressional_District_115_Level/FeatureServer/0",
url: "https://services1.arcgis.com/4ezfu5dIwH83BUNL/arcgis/rest/services/Yale_Perry_115_Congressional_Districts/FeatureServer/0",
popupTemplate: popupTemplate,
......@@ -109,7 +109,7 @@ require([
title: "U.S. 115th Congressional Districts"
});
var map = new Map({
const map = new Map({
layers: [layer]
});
......@@ -212,7 +212,7 @@ require([
});
// Create legend for layer to place in mainView.
var legend = new Legend({
const legend = new Legend({
view: mainView,
layerInfos: [
{
......@@ -225,7 +225,7 @@ require([
mainView.ui.add(legend, "top-right");
// Add Home button to mainView.
var homeButton = new Home({
const homeButton = new Home({
view: mainView
});
// Add the home button to the top left corner of the view
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment