0.3.0 • Published 6 years ago

county-selection v0.3.0

Weekly downloads
12
License
-
Repository
-
Last release
6 years ago

county-selection

This package contains a CountySelectionComponent class that displays a state map with county data on a \<county-selection>\ element. Currently state data is limited to "AL" and "AK".

Input Properties

  • selectedState: string ("AL", "AK")
  • unselectedColor: string ("#FFF")
  • selectedColor: string
  • hoverColor: string
  • backgroundColor: string
  • width: int (500)
  • height: int
  • padding: int (60)

Output Events

  • countySelect: EventEmitter\
  • countyHover: EventEmitter\

Example Use

<county-selection
      [selectedState]="'AK'"
      [unselectedColor]="'#000'"
      [hoverColor]="'#AAA'"
      [selectedColor]="'#FFF'"
      [backgroundColor]="'#ADF'"
      [width]="800"
      [height]="1200"
      (countyHover)="onCountyHover($event)"
      (countySelect)="onCountySelect($event)">
</county-selection>