Commit 3ad33431 authored by Rodrigo Tapia-McClung's avatar Rodrigo Tapia-McClung

Update color scheme

parent 000ab706
...@@ -162,7 +162,7 @@ const populateMap = async(mapData) => { ...@@ -162,7 +162,7 @@ const populateMap = async(mapData) => {
}); });
timeLayer.addTo(map); timeLayer.addTo(map);
// FIX: comment out to avoid DB calls // FIX: comment out to avoid DB calls
// style currentTiles // style currentTiles
/*let option = $("#indicatorSelect").val(); // option selected from dropdrown /*let option = $("#indicatorSelect").val(); // option selected from dropdrown
styleTiles(option, minIndicators, maxIndicators) styleTiles(option, minIndicators, maxIndicators)
...@@ -209,8 +209,11 @@ const mapboxLayer = (table) => { ...@@ -209,8 +209,11 @@ const mapboxLayer = (table) => {
"interpolate", "interpolate",
["linear"], ["linear"],
["get", "yeartrimes"], ["get", "yeartrimes"],
2014, "rgba(0, 255, 0, 0.5)", // green 2014, "rgb(49,54,149)",
2019, "rgba(255, 0, 0, 0.5)", // red 2016, "rgb(255,255,191)",
2019, "rgb(158,1,66)"
/*2014, "rgba(0, 255, 0, 0.5)", // green
2019, "rgba(255, 0, 0, 0.5)", // red*/
],/* ],/*
"fill-outline-color": [ "fill-outline-color": [
"interpolate", "interpolate",
...@@ -366,5 +369,5 @@ $("#mexmap").show(); ...@@ -366,5 +369,5 @@ $("#mexmap").show();
setupTimeDimensionControl(); setupTimeDimensionControl();
getMinMax("urbanization_year") // get minmax year.Q values to popoulate timeDimension getMinMax("urbanization_year") // get minmax year.Q values to popoulate timeDimension
.then(dates => setupMap(dates)) .then(dates => setupMap(dates))
.then(map => populateMap(map)); .then(map => populateMap(map));
\ No newline at end of file \ No newline at end of file
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