This package is used to generate US SVG Map and also giving ability to set callback function and some parameters to change fill & stocke color.
npm install ng-us-mapThis package is used to generate US SVG Map and also giving ability to set callback function and some parameters to change fill & stocke color.
``bash`
npm i ng-us-map
In app.module.ts
`bash`
import { NgUsMapModule } from 'ng-us-map';
`bash``
Inputs
| Property | Type |
| :---: | :---: |
| backgroundColor | String (eg: #000) |
| strokeColor | String (eg: #FFFFFF) |
| textColor | String (eg: #FFFFFF) |
| statesData | Object Array ( eg: [ { "id" : "AK" , "strokeColor" : "red"} ]) |
Events
| | |
| :---: | :---: |
| (onClickUsMap) | Will be emitted when state area has been clicked. It returns state abbr |