react-mappy-monster is a react component that allows you to create a map quickly and easily.
- Installation
yarn add react-mappy-monster or npm i react-mappy-monster
- Usage & Configuration
import MappyMonster, { InfoWindow, Content, Youtube } from 'react-mappy-monster';
<MappyMonster
id='mappyMonster'
apiKey=''
width=''
height='450px'
markerIcon={''}
markerTitle='YOUR_TITLE'
location={{
lat: 37.422204,
lng: -122.083596
}}
zoom={5}
onClickZoom={17}
mapTypeControl={true}
streetViewControl={true}
rotateControl={true}
fullscreenControl={true}
scrollwheel={false}
infoWindowOffSetY={-60}
infoWindowStartOpen={false}
>
<InfoWindow>
<Youtube code="RiIE5GsiVWQ" autoPlay={true} />
<Content>
<p>Your content goes here</p>
<button onClick={() => alert('this is amazing!!!')} className="yourClass" style={
{
color: '#ee6f9b',
background: '#333',
padding: '10px 20px',
borderRadius: '50px',
border:'4px solid #000',
fontWeight:'600',
background: 'transparent'
}}>Call To Action
</button>
</Content>
</InfoWindow>
</MappyMonster>
Soon!
The react-mappy-monster
library follows Semantic Versioning.
[MAJOR].[MINOR].[PATCH]
If you encounter an issue or want to request a feature, you can create an issue.