An SVG interactive map
npm install @salo/interactive-mapDEMO here https://salo-creative.github.io/react-interactive-map
Install
```
yarn add @salo/interactive-map
The simple will render an
`javascript`
import { SimpleMap } from '@salo/interactive-map';
Implement as follows
`javascript`
for full documentation see README_SIMPLE.md
This map is an SVG mercator projection of the globe. This allows us to plot latitude and longitudes directly on it. In order to keep the implementation straightforward and easy to customise this component simply exposes a render prop with the calculation required to perform the conversion for you. You can then position your child elements as you require based on the X & Y coordinates. If you need to simply handle countries and interaction at that level please see the SimpleMap implementation.
`javascript`
import { MercatorMap } from '@salo/interactive-map';
Implement as follows
`javascript`
for full documentation see README_MERCATOR.md
The project uses storybook for local, abstracted development. All components must have README.s and appropriate stories with knobs.
To get started run the following to install the dependencies
`bash`
yarn
Then run the demo command to run the initial unit tests and boot up the development server
`bash`
yarn demo
1. Create a feature branch from master
2. Open a PR from your feature back to master
3. When you are ready to release the library checkout master and pull down the latest code.
4. run yarn release locally to add changelog and increment version number and then push directly to master to trigger publish actionyarn release:ghp`. This should only be run from master so not before a PR is merged
5. If you want to deploy to GitHub pages then run