{"action":"closed","issue":{"url":"https://api.github.com/repos/YUzhva/react-leaflet-markercluster/issues/57","repository_url":"https://api.github.com/repos/YUzhva/react-leaflet-markercluster","labels_url":"https://api.github.com/repos/YUzhva/react-leaflet-markercluster/issues/57/labels{/name}","comments_url":"https://api.github.com/repos/YUzhva/react-leaflet-markercluster/issues/57/comments","events_url":"https://api.github.com/repos/YUzhva/react-leaflet-markercluster/issues/57/events","html_url":"https://github.com/YUzhva/react-leaflet-markercluster/issues/57","id":286173728,"number":57,"title":"Support markers within a component or a div","user":{"login":"sguergachi","id":615386,"avatar_url":"https://avatars3.githubusercontent.com/u/615386?v=4","gravatar_id":"","url":"https://api.github.com/users/sguergachi","html_url":"https://github.com/sguergachi","followers_url":"https://api.github.com/users/sguergachi/followers","following_url":"https://api.github.com/users/sguergachi/following{/other_user}","gists_url":"https://api.github.com/users/sguergachi/gists{/gist_id}","starred_url":"https://api.github.com/users/sguergachi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sguergachi/subscriptions","organizations_url":"https://api.github.com/users/sguergachi/orgs","repos_url":"https://api.github.com/users/sguergachi/repos","events_url":"https://api.github.com/users/sguergachi/events{/privacy}","received_events_url":"https://api.github.com/users/sguergachi/received_events","type":"User","site_admin":false},"labels":[{"id":526494206,"url":"https://api.github.com/repos/YUzhva/react-leaflet-markercluster/labels/enhancement","name":"enhancement","color":"84b6eb","default":true}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/YUzhva/react-leaflet-markercluster/milestones/3","html_url":"https://github.com/YUzhva/react-leaflet-markercluster/milestone/3","labels_url":"https://api.github.com/repos/YUzhva/react-leaflet-markercluster/milestones/3/labels","id":2869601,"number":3,"title":"v1.1.8","description":null,"creator":{"login":"YUzhva","id":5191620,"avatar_url":"https://avatars3.githubusercontent.com/u/5191620?v=4","gravatar_id":"","url":"https://api.github.com/users/YUzhva","html_url":"https://github.com/YUzhva","followers_url":"https://api.github.com/users/YUzhva/followers","following_url":"https://api.github.com/users/YUzhva/following{/other_user}","gists_url":"https://api.github.com/users/YUzhva/gists{/gist_id}","starred_url":"https://api.github.com/users/YUzhva/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/YUzhva/subscriptions","organizations_url":"https://api.github.com/users/YUzhva/orgs","repos_url":"https://api.github.com/users/YUzhva/repos","events_url":"https://api.github.com/users/YUzhva/events{/privacy}","received_events_url":"https://api.github.com/users/YUzhva/received_events","type":"User","site_admin":false},"open_issues":1,"closed_issues":4,"state":"open","created_at":"2017-10-27T12:53:48Z","updated_at":"2018-03-12T11:16:54Z","due_on":null,"closed_at":null},"comments":1,"created_at":"2018-01-05T02:28:46Z","updated_at":"2018-03-12T11:16:54Z","closed_at":"2018-03-12T11:16:54Z","author_association":"NONE","body":"At the moment there are 2 issues I'm facing with this plugin:\r\n\r\n1. This can't be rendered because of the div block around it\r\n\r\n```\r\n        <MarkerClusterGroup>\r\n            <div>\r\n              <ReactLeaflet.Marker color=\"orange\" position={[0,1]} />\r\n            </div>\r\n        </MarkerClusterGroup>\r\n```\r\n\r\n2. This can't be rendered because the Marker is rendered from a component\r\n\r\n```\r\n        <MarkerClusterGroup>\r\n            <Thing position={{ y: -70, x: 0 }} color=\"red\"/>\r\n        </MarkerClusterGroup>\r\n\r\nclass Thing extends Component {\r\n  render() {\r\n    return (\r\n          <ReactLeaflet.Marker\r\n            color={this.props.color}\r\n            position={[this.props.position.x, this.props.position.y]}\r\n          >\r\n          </ReactLeaflet.Marker>\r\n    );\r\n  }\r\n}\r\n\r\n```\r\n\r\nI get a `TypeError: latlng is undefined` and `TypeError: i is undefined` error for both cases."}}
{"actor":{"display_login":"YUzhva"}}