{"action":"created","issue":{"url":"https://api.github.com/repos/istarkov/google-map-react/issues/255","repository_url":"https://api.github.com/repos/istarkov/google-map-react","labels_url":"https://api.github.com/repos/istarkov/google-map-react/issues/255/labels{/name}","comments_url":"https://api.github.com/repos/istarkov/google-map-react/issues/255/comments","events_url":"https://api.github.com/repos/istarkov/google-map-react/issues/255/events","html_url":"https://github.com/istarkov/google-map-react/issues/255","id":182832818,"number":255,"title":"Map Not Showing At All","user":{"login":"junibrosas","id":1171482,"avatar_url":"https://avatars.githubusercontent.com/u/1171482?v=3","gravatar_id":"","url":"https://api.github.com/users/junibrosas","html_url":"https://github.com/junibrosas","followers_url":"https://api.github.com/users/junibrosas/followers","following_url":"https://api.github.com/users/junibrosas/following{/other_user}","gists_url":"https://api.github.com/users/junibrosas/gists{/gist_id}","starred_url":"https://api.github.com/users/junibrosas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/junibrosas/subscriptions","organizations_url":"https://api.github.com/users/junibrosas/orgs","repos_url":"https://api.github.com/users/junibrosas/repos","events_url":"https://api.github.com/users/junibrosas/events{/privacy}","received_events_url":"https://api.github.com/users/junibrosas/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-10-13T16:07:37Z","updated_at":"2016-10-13T16:09:40Z","closed_at":null,"body":"I installed the google-map-react and the map not showing. This code is my map component.\r\n\r\n\r\n`\r\nimport React, { Component } from 'react';\r\nimport GoogleMap from 'google-map-react';\r\nimport MyGreatPlace from './map-pin.jsx';\r\nimport { fitBounds } from 'google-map-react/utils';\r\nimport shouldPureComponentUpdate from 'react-pure-render/function';\r\n\r\nexport default class RestoMap extends Component {\r\n    \r\nstatic defaultProps = {\r\n        center: [59.938043, 30.337157],\r\n        zoom: 9,\r\n        greatPlaceCoords: {lat: 59.724465, lng: 30.080121}\r\n};\r\n\r\n    shouldComponentUpdate = shouldPureComponentUpdate;\r\n\r\n    constructor(props) {\r\n        super(props);\r\n    }\r\n\r\n    render() {\r\n\r\n        const bounds = {\r\n        nw: {\r\n            lat: 50.01038826014866,\r\n            lng: -118.6525866875\r\n        },\r\n        se: {\r\n            lat: 32.698335045970396,\r\n            lng: -92.0217273125\r\n        }\r\n        };\r\n\r\n        const size = {\r\n        width: 640, // Map width in pixels\r\n        height: 380, // Map height in pixels\r\n        };\r\n\r\n        const {center, zoom} = fitBounds(bounds, size);\r\n\r\n        return (\r\n            <GoogleMap\r\n                bootstrapURLKeys={{ key: _apiMapKey, language: 'ru' }}\r\n                center={center}\r\n                zoom={zoom}>\r\n                <MyGreatPlace lat={59.955413} lng={30.337844} text={'A'} /* Kreyser Avrora */ />\r\n                <MyGreatPlace {...this.props.greatPlaceCoords} text={'B'} /* road circle */ />\r\n            </GoogleMap>\r\n        );\r\n    }\r\n}`"},"comment":{"url":"https://api.github.com/repos/istarkov/google-map-react/issues/comments/253560276","html_url":"https://github.com/istarkov/google-map-react/issues/255#issuecomment-253560276","issue_url":"https://api.github.com/repos/istarkov/google-map-react/issues/255","id":253560276,"user":{"login":"istarkov","id":5077042,"avatar_url":"https://avatars.githubusercontent.com/u/5077042?v=3","gravatar_id":"","url":"https://api.github.com/users/istarkov","html_url":"https://github.com/istarkov","followers_url":"https://api.github.com/users/istarkov/followers","following_url":"https://api.github.com/users/istarkov/following{/other_user}","gists_url":"https://api.github.com/users/istarkov/gists{/gist_id}","starred_url":"https://api.github.com/users/istarkov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/istarkov/subscriptions","organizations_url":"https://api.github.com/users/istarkov/orgs","repos_url":"https://api.github.com/users/istarkov/repos","events_url":"https://api.github.com/users/istarkov/events{/privacy}","received_events_url":"https://api.github.com/users/istarkov/received_events","type":"User","site_admin":false},"created_at":"2016-10-13T16:09:40Z","updated_at":"2016-10-13T16:09:40Z","body":"In most cases this is because map parent container has zero height."}}
{"actor":{"display_login":"istarkov"}}