js/map.js
/* Highlights all the boundaries of all the currently selected countries. */
Highlights all the boundaries of all the currently selected countries.
Highlights all the boundaries of all the currently selected countries .
highlightBoundariesOfAllSelectedCountries() {
        let i = 1;
        for (let country of this.cropVis.selected_countries) {
            let countryIso = this.data.countryName_iso_map[country];
            let thisCountry = d3.select("#" + countryIso);
            thisCountry.style("stroke", this.selectedCountryColorScheme(i));
            thisCountry.style("stroke-opacity", 0.6);
            thisCountry.style("stroke-width", 4);
            i++;
        }
    }
highlightBoundariesOfAllSelectedCountries ( ) { let i = 1 ; for ( let country of this . cropVis . selected_countries ) { let countryIso = this . data . countryName_iso_map [ country ] ; let thisCountry = d3 . select ( "#" + countryIso ) ; thisCountry . style ( "stroke" , this . selectedCountryColorScheme ( i ) ) ; thisCountry . style ( "stroke-opacity" , 0.6 ) ; thisCountry . style ( "stroke-width" , 4 ) ; i ++ ; } }
Highlights all the boundaries of all the currently selected countries.
Highlights all the boundaries of all the currently selected countries .