{"action":"created","issue":{"url":"https://api.github.com/repos/MicheleBertoli/react-gmaps/issues/44","repository_url":"https://api.github.com/repos/MicheleBertoli/react-gmaps","labels_url":"https://api.github.com/repos/MicheleBertoli/react-gmaps/issues/44/labels{/name}","comments_url":"https://api.github.com/repos/MicheleBertoli/react-gmaps/issues/44/comments","events_url":"https://api.github.com/repos/MicheleBertoli/react-gmaps/issues/44/events","html_url":"https://github.com/MicheleBertoli/react-gmaps/issues/44","id":144963678,"number":44,"title":"Adding properties to Marker component","user":{"login":"pjsinco","id":232094,"avatar_url":"https://avatars.githubusercontent.com/u/232094?v=3","gravatar_id":"","url":"https://api.github.com/users/pjsinco","html_url":"https://github.com/pjsinco","followers_url":"https://api.github.com/users/pjsinco/followers","following_url":"https://api.github.com/users/pjsinco/following{/other_user}","gists_url":"https://api.github.com/users/pjsinco/gists{/gist_id}","starred_url":"https://api.github.com/users/pjsinco/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pjsinco/subscriptions","organizations_url":"https://api.github.com/users/pjsinco/orgs","repos_url":"https://api.github.com/users/pjsinco/repos","events_url":"https://api.github.com/users/pjsinco/events{/privacy}","received_events_url":"https://api.github.com/users/pjsinco/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-03-31T17:23:14Z","updated_at":"2016-04-01T17:41:16Z","closed_at":"2016-04-01T17:41:16Z","body":"Hi Michele.\r\n\r\nI am trying to render a complex marker icon, as Google describes [here](https://developers.google.com/maps/documentation/javascript/markers#complex_icons).\r\n\r\nThis works: \r\n```js\r\nrenderCenterMarker: function () {\r\n\r\n  if (typeof this.props.meta.center === 'undefined') {\r\n    return\r\n  }\r\n\r\n  const { center } = this.props.meta\r\n\r\n  const icon = {\r\n    path: \"M 125,5 155,90 245,90 175,145 200,230 125,180 50,230 75,145 5,90 95,90 z\",\r\n    fillColor: \"#222\",\r\n    fillOpacity: .6,\r\n    strokeWeight: 1,\r\n    scale: .25\r\n  }\r\n\r\n  return (\r\n    <Marker\r\n      lat={center.lat}\r\n      lng={center.lon}\r\n      icon={icon}\r\n    />\r\n  )\r\n},\r\n``` \r\n\r\nHowever, I need to add an ```origin``` property to my icon object:\r\n```js\r\nconst icon = {\r\n  ...\r\n  origin: new google.maps.Point(0, 0),\r\n  ...\r\n}\r\n```\r\n\r\nThis no longer works. Will you please tell me if there's a way to add this property to the marker?"},"comment":{"url":"https://api.github.com/repos/MicheleBertoli/react-gmaps/issues/comments/204484858","html_url":"https://github.com/MicheleBertoli/react-gmaps/issues/44#issuecomment-204484858","issue_url":"https://api.github.com/repos/MicheleBertoli/react-gmaps/issues/44","id":204484858,"user":{"login":"pjsinco","id":232094,"avatar_url":"https://avatars.githubusercontent.com/u/232094?v=3","gravatar_id":"","url":"https://api.github.com/users/pjsinco","html_url":"https://github.com/pjsinco","followers_url":"https://api.github.com/users/pjsinco/followers","following_url":"https://api.github.com/users/pjsinco/following{/other_user}","gists_url":"https://api.github.com/users/pjsinco/gists{/gist_id}","starred_url":"https://api.github.com/users/pjsinco/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pjsinco/subscriptions","organizations_url":"https://api.github.com/users/pjsinco/orgs","repos_url":"https://api.github.com/users/pjsinco/repos","events_url":"https://api.github.com/users/pjsinco/events{/privacy}","received_events_url":"https://api.github.com/users/pjsinco/received_events","type":"User","site_admin":false},"created_at":"2016-04-01T17:41:16Z","updated_at":"2016-04-01T17:41:16Z","body":"Excellent—thank you again for your superb help!"}}