Last active
September 15, 2015 19:39
-
-
Save MicheleBertoli/5d52ef31573cfe11c8c8 to your computer and use it in GitHub Desktop.
Gmaps InfoWindow Style
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import React from 'react'; | |
| import {Gmaps, InfoWindow} from 'react-gmaps'; | |
| const coords = { | |
| lat: 51.5258541, | |
| lng: -0.08040660000006028 | |
| }; | |
| const App = React.createClass({ | |
| render() { | |
| return ( | |
| <div> | |
| <Gmaps | |
| width={'400px'} | |
| height={'300px'} | |
| lat={coords.lat} | |
| lng={coords.lng} | |
| zoom={12}> | |
| <InfoWindow | |
| lat={coords.lat} | |
| lng={coords.lng} | |
| content={'<div class="info-window">I\'m red</div>'} /> | |
| </Gmaps> | |
| </div> | |
| ); | |
| } | |
| }); | |
| React.render(<App />, document.getElementById('gmaps')); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| .info-window { | |
| background-color: red; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment