react-svg-map react component
npm install @crpt/react-svg-map[![Travis][build-badge]][build]
[![npm package][npm-badge]][npm]
[![Coveralls][coveralls-badge]][coveralls]
SVG Map React component.
javascript
npm i --save @crpt/react-svg-map
`Usage
`javascriptimport Map, { THEMES } from "@crpt/react-svg-map";
`$3
| PropName | Description | Example |
|---|---|---|
| theme: Object | Map theme object. Default: THEMES.defaultTheme |
|
| country: String | Country name. Default: 'russia' | |
| region: String | Country region id. Default: 'RF' | |
| info: Array | Map info. Note1. | |
| visibleInfo: String | Dont hide this info | |
| favorites: Integer | Counter for Flag button | |
| onZoomInClick: Function | Callback for ZoomIn control. Receives new scale. |