fullstackreact / google-maps-react

Companion code to the "How to Write a Google Maps React Component" Tutorial
https://www.fullstackreact.com/articles/how-to-write-a-google-maps-react-component/
MIT License
1.63k stars 818 forks source link

Modal semantic-ui-react dont work #180

Open emersoncodetv opened 6 years ago

emersoncodetv commented 6 years ago

I am trying to use modal from semantic-ui-react with Map but when I use relative position doesn't work.

import React, { Component } from "react";
import { Map, Marker, GoogleApiWrapper } from 'google-maps-react';

export class MapContainer extends Component {
  render() {
    return (
      <Map style={{
        height: "250px"
        , width: "100%"
        , position: "relative"
      }} google={this.props.google} zoom={14}>

        <Marker onClick={this.onMarkerClick}
          name={'Current location'} />
      </Map>
    );
  }
}

export default GoogleApiWrapper({
  apiKey: ("API_KEY")
})(MapContainer)
auser commented 6 years ago

Please make a https://codesandbox.io/ to demonstrate the error. Thanks