diff --git a/app/scripts/directives/droughtMap.js b/app/scripts/directives/droughtMap.js index 9a8a59f..c69bf2d 100644 --- a/app/scripts/directives/droughtMap.js +++ b/app/scripts/directives/droughtMap.js @@ -14,12 +14,9 @@ app.directive('droughtMap', ['d3Service', '$q', 'globalService', d3Service.d3().then(function(d3) { // Set size and position - var width = window.innerWidth, - minHeight = Math.max(window.innerHeight - $('#navbar').outerHeight(), 240), - centered, - height = minHeight - $('#details').outerHeight() > 240 ? - minHeight - $('#details').outerHeight() : - minHeight; + var width = $(element[0]).innerWidth(), + height = Math.max(window.innerHeight - $('#navbar').outerHeight(), 240), + centered; var projection = d3.geo.albersUsa() .scale(700) diff --git a/app/styles/view.scss b/app/styles/view.scss index fac821c..30f71cb 100644 --- a/app/styles/view.scss +++ b/app/styles/view.scss @@ -80,10 +80,10 @@ body { opacity: 0; transition: opacity 5ms ease-in, color 15ms ease-in-out; } -path.county { +.county { opacity: 0; } -path.graticule { +.graticule { fill: none; stroke: darken($color-viz-bg, 5); stroke-width: 1px; diff --git a/app/views/main.html b/app/views/main.html index 95ac3e6..dea9d0f 100644 --- a/app/views/main.html +++ b/app/views/main.html @@ -1,29 +1,21 @@ -
- -