0.0.7 • Published 3 years ago
react-simple-mapy-cz v0.0.7
React Simple Mapy.cz
Mapy.cz for React, easy to lazy load
Getting started
Install
npm install --save react-simple-mapy-cz
or
yarn add react-simple-mapy-cz
Use it
import Map from 'react-simple-mapy-cz';
...
<Map style={{ width: 400, height: 400 }} center={{ lat: 50.0674706, lon: 14.4715394 }} />
Another examples
More examples are in examples
dir and you can explore Storybook.
Mapy.cz docs
For English developers: Mapy.cz documentation is only available in Czech.
Tips
Tailwind
If you are using Tailwind on your project, you need to add the following code to tailwind.css
, otherwise the map backgrounds will not be visible
/* Mapy.cz */
.smap img {
max-width: none;
}