Skip to content
Snippets Groups Projects
Maps.vue 4.61 KiB
Newer Older
<template>
  <section id="map">
    <div
      id="title"
      class="text-container title-text"
    >
      <h3>Case studies across the Western states</h3>
      <p>Orange = Positively correlated to water insecurity conditions</p>
  <p>Blue = Negatively correlated to water insecurity conditions</p><br>
Azadpour, Elmera's avatar
Azadpour, Elmera committed
      <img src="@/assets/images/tot_households_2022.png" alt="Choropleth map of total households in the contiguous United States aggregated at the county level where counties with the greatest total households in dark red include Los Angeles County, California (3,363,093), Harris County, Texas (1,692,896) and  Maricopa County, Arizona (1,665,560). Data provided by 2022 American Community Survey, U.S. Census Bureau.">
      <img src="@/assets/images/tot_female_households_2022.png" alt="Choropleth map of total female householder (no spouse present) in the contiguous United States aggregated at the county level where counties with the greatest total female householder in dark red include Los Angeles County, California (494,169), Harris County, Texas (258,518) and  Maricopa County, Arizona (202,699). Data provided by 2022 American Community Survey, U.S. Census Bureau.">
      <img src="@/assets/images/med_income_census_2022.png" alt="Choropleth map of median household income in the past 12 months (in 2022 inflation-adjusted dollars) in the contiguous United States aggregated at the county level where counties with the greatest median household income in dark red include Santa Clara County, California (153,792), San Mateo County, California (149,907) and Marin County, California (142,019). Data provided by 2022 American Community Survey, U.S. Census Bureau.">
      <img src="@/assets/images/median_rent_2022.png" alt="Choropleth map of median gross rent in the contiguous United States aggregated at the county level where counties with the greatest median gross rent in dark blue include San Mateo County, California (2,805), Santa Clara County, California (2,719) and Marin County, California (2,487). Data provided by 2022 American Community Survey, U.S. Census Bureau.">
      <img src="@/assets/images/tot_latino_census_2022.png" alt="Choropleth map of total Hispanic or Latino in the contiguous United States aggregated at the county level where counties with the greatest total Hispanic or Latino in dark red include Los Angeles County, California (4,837,594), Harris County, Texas (2,076,103) and Maricopa County, Arizona 1,402,753). Data provided by 2022 American Community Survey, U.S. Census Bureau.">
      <img src="@/assets/images/perc_latino_census_2022.png" alt="Choropleth map of percent of Hispanic or Latino in the contiguous United States aggregated at the county level where counties with the greatest percent Hispanic or Latino in dark red include Kenedy County, Texas (96.6%), Starr County, Texas (96.2%) and Webb County, Texas (95.4%). Data provided by 2022 American Community Survey, U.S. Census Bureau."><br><br>
      Factors associated with social vulnerability to water insecurity are not equally distributed across the Western United States. Certain races and ethnicities are more heavily concentrated in some geographic areas than in others. Similarly, some counties have much lower median household incomes than other counties do. Understanding where these vulnerable populations live is important information for water-resource managers to make equitable decisions about water availability and use. 
</div>
      <!-- <h3 v-html="mapsText.title"/> -->
    <div id="map-container"></div>
    <!-- <div
      id="text1"
      class="text-container"
    >
      <p v-html="mapsText.paragraph1"/>
    </div> -->
  </section>
</template>

<script>
  import { onMounted, ref } from "vue";
  import { isMobile } from 'mobile-device-detect';
  import * as d3 from 'd3';
  import mapText from './../assets/text/mapText';

  // global variables
  const mobileView = isMobile;
  const mapsText = mapText.mapText;
</script>

<style scoped lang="scss">
  #grid-container-interactive {
    display: grid;
    padding: 20px 0 20px 0;
    gap: 5px;
    grid-template-columns: 65vw 25vw;
    grid-template-rows: max-content max-content max-content max-content;
    grid-template-areas:
      "title title"
      "text text"
      "map legend";
    justify-content: center;
    margin: auto;
    max-width: 90vw;
    min-width: 90vw;
    // @media screen and (max-height: 770px) {
    //   row-gap: 4vh;
    //   margin: 4rem 0rem 5rem 0rem;
    // }
  }
  #grid-title {
    grid-area: title;
    align-self: center;
  }
  #text {
    grid-area: text;
  }

  #map-container {
    pointer-events: none;
    grid-area: map;
    height: 100%;
    max-height: 70vh;
  }