{"action":"created","issue":{"url":"https://api.github.com/repos/PaulLeCam/react-leaflet/issues/163","repository_url":"https://api.github.com/repos/PaulLeCam/react-leaflet","labels_url":"https://api.github.com/repos/PaulLeCam/react-leaflet/issues/163/labels{/name}","comments_url":"https://api.github.com/repos/PaulLeCam/react-leaflet/issues/163/comments","events_url":"https://api.github.com/repos/PaulLeCam/react-leaflet/issues/163/events","html_url":"https://github.com/PaulLeCam/react-leaflet/issues/163","id":156691678,"number":163,"title":"LayerControl does not work correctly","user":{"login":"fschimandl","id":19567091,"avatar_url":"https://avatars.githubusercontent.com/u/19567091?v=3","gravatar_id":"","url":"https://api.github.com/users/fschimandl","html_url":"https://github.com/fschimandl","followers_url":"https://api.github.com/users/fschimandl/followers","following_url":"https://api.github.com/users/fschimandl/following{/other_user}","gists_url":"https://api.github.com/users/fschimandl/gists{/gist_id}","starred_url":"https://api.github.com/users/fschimandl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fschimandl/subscriptions","organizations_url":"https://api.github.com/users/fschimandl/orgs","repos_url":"https://api.github.com/users/fschimandl/repos","events_url":"https://api.github.com/users/fschimandl/events{/privacy}","received_events_url":"https://api.github.com/users/fschimandl/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-05-25T08:30:06Z","updated_at":"2016-06-09T19:49:12Z","closed_at":null,"body":"Hey ... thx for this awesome lib!\r\n\r\nCurrently I'm having issues with the LayerControl-Component. Even the simplest example does not work correctly for me.\r\n\r\nWhen using the following within my render() method:\r\n```\r\n<Map id=\"map\" ref=\"map\" center={position} zoom={8} onContextMenu={this.handleClick}>\r\n        <ZoomControl position=\"topright\" />\r\n        <LayersControl position=\"topright\" >\r\n          <BaseLayer checked name=\"Karte\">\r\n            <TileLayer\r\n            url='http://{s}.basemaps.cartocdn.com/light_all/{z}/{x}/{y}.png'\r\n            attribution='&nbsp;&nbsp;&nbsp;<table style=\"display:inline-block; vertical-align: middle; text-align: right;\"><tr><td style=\"vertical-align: bottom;\">Map imagery/data &copy; <a href=\"http://www.openstreetmap.org/copyright\">OpenStreetMap</a> &copy;, <a href=\"http://cartodb.com/attributions\">CartoDB</a>.</td><td rowspan=2>&nbsp;&nbsp;&nbsp;</td></tr><tr><td style=\"vertical-align: top;\" ><td></tr></table>'\r\n            unloadInvisibleTiles={true}\r\n            updateWhenIdle={true}\r\n            reuseTiles={true}\r\n            />\r\n          </BaseLayer>\r\n        </LayersControl>\r\n      </Map>\r\n```\r\nI get the following error messages: \r\n`Warning: React.createElement: type should not be null, undefined, boolean, or number. It should be a string (for DOM elements) or a ReactClass (for composite components). Check the render method of `...`.`\r\n\r\nWhen working without the LayersControl everything is working fine. Maybe you can just help me out with that.\r\n\r\nThanks a lot,\r\nFlo\r\n\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/PaulLeCam/react-leaflet/issues/comments/225006072","html_url":"https://github.com/PaulLeCam/react-leaflet/issues/163#issuecomment-225006072","issue_url":"https://api.github.com/repos/PaulLeCam/react-leaflet/issues/163","id":225006072,"user":{"login":"PaulLeCam","id":790995,"avatar_url":"https://avatars.githubusercontent.com/u/790995?v=3","gravatar_id":"","url":"https://api.github.com/users/PaulLeCam","html_url":"https://github.com/PaulLeCam","followers_url":"https://api.github.com/users/PaulLeCam/followers","following_url":"https://api.github.com/users/PaulLeCam/following{/other_user}","gists_url":"https://api.github.com/users/PaulLeCam/gists{/gist_id}","starred_url":"https://api.github.com/users/PaulLeCam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PaulLeCam/subscriptions","organizations_url":"https://api.github.com/users/PaulLeCam/orgs","repos_url":"https://api.github.com/users/PaulLeCam/repos","events_url":"https://api.github.com/users/PaulLeCam/events{/privacy}","received_events_url":"https://api.github.com/users/PaulLeCam/received_events","type":"User","site_admin":false},"created_at":"2016-06-09T19:49:12Z","updated_at":"2016-06-09T19:49:12Z","body":"Hard to say just from the imports, I suppose if you `console.log()` each component you would find one is undefined."}}
{"actor":{"display_login":"PaulLeCam"}}