joaopereirawd / react-mappy-monster

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

MappyMonster

react-mappy-monster is a react component that allows you to create a map quickly and easily.

Getting Started

  1. Installation
    yarn add react-mappy-monster
    or
    npm i react-mappy-monster
    
  2. 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>

Props

 Soon!

Versioning

The react-mappy-monster library follows Semantic Versioning.
[MAJOR].[MINOR].[PATCH]

Support

If you encounter an issue or want to request a feature, you can create an issue.

About


Languages

Language:JavaScript 90.8%Language:CSS 9.2%