Commit 1a4d1f2e authored by Joseph Alberts's avatar Joseph Alberts
Browse files

Add layers for state boundaries and congressional districts

parent 7b9a95da
......@@ -102,8 +102,20 @@ require([
title: "U.S. States"
});
var basemapLayer = new FeatureLayer({
url: "https://services1.arcgis.com/4ezfu5dIwH83BUNL/arcgis/rest/services/USA_States_Generalized_share_air/FeatureServer/0",
title: "U.S. States"
});
var districtsLayer = new FeatureLayer({
url: "https://services1.arcgis.com/4ezfu5dIwH83BUNL/arcgis/rest/services/usa_116th_congressional_districts/FeatureServer/0",
popupTemplate: popupTemplate,
outFields: ["DISTRICTID", "NAME", "PARTY"],
title: "U.S. 116th Congressional Districts"
});
var map = new Map({
layers: [layer]
layers: [districtsLayer, basemapLayer, layer]
});
// Create the map views and assign to their respective containers/divs
......
Supports Markdown
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