county-selection
TypeScript icon, indicating that this package has built-in type declarations

0.3.0 • Public • Published

county-selection

This package contains a CountySelectionComponent class that displays a state map with county data on a <county-selection></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<string>
  • countyHover: EventEmitter<string>

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>

Package Sidebar

Install

npm i county-selection

Weekly Downloads

1

Version

0.3.0

License

none

Unpacked Size

9.81 MB

Total Files

26

Last publish

Collaborators

  • nbucher