{"action":"created","issue":{"url":"https://api.github.com/repos/mapbox/leaflet-image/issues/41","labels_url":"https://api.github.com/repos/mapbox/leaflet-image/issues/41/labels{/name}","comments_url":"https://api.github.com/repos/mapbox/leaflet-image/issues/41/comments","events_url":"https://api.github.com/repos/mapbox/leaflet-image/issues/41/events","html_url":"https://github.com/mapbox/leaflet-image/issues/41","id":62512238,"number":41,"title":"Issue when using L.icon image as marker","user":{"login":"EricSarmany","id":981384,"avatar_url":"https://avatars.githubusercontent.com/u/981384?v=3","gravatar_id":"","url":"https://api.github.com/users/EricSarmany","html_url":"https://github.com/EricSarmany","followers_url":"https://api.github.com/users/EricSarmany/followers","following_url":"https://api.github.com/users/EricSarmany/following{/other_user}","gists_url":"https://api.github.com/users/EricSarmany/gists{/gist_id}","starred_url":"https://api.github.com/users/EricSarmany/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/EricSarmany/subscriptions","organizations_url":"https://api.github.com/users/EricSarmany/orgs","repos_url":"https://api.github.com/users/EricSarmany/repos","events_url":"https://api.github.com/users/EricSarmany/events{/privacy}","received_events_url":"https://api.github.com/users/EricSarmany/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-03-17T20:39:28Z","updated_at":"2015-04-14T14:21:30Z","closed_at":null,"body":"If a .png image is used as a marker, leaflet-image fails as follows:\r\n\r\n```\r\nleaflet-image.js (line 194, col 59)\r\nTypeError: size.divideBy is not a function\r\n\r\nanchor = L.point(options.iconAnchor || size && size.divideBy(2, true))\r\n```\r\n\r\nThe marker displays fine on the original map in the browser."},"comment":{"url":"https://api.github.com/repos/mapbox/leaflet-image/issues/comments/92869819","html_url":"https://github.com/mapbox/leaflet-image/issues/41#issuecomment-92869819","issue_url":"https://api.github.com/repos/mapbox/leaflet-image/issues/41","id":92869819,"user":{"login":"EricSarmany","id":981384,"avatar_url":"https://avatars.githubusercontent.com/u/981384?v=3","gravatar_id":"","url":"https://api.github.com/users/EricSarmany","html_url":"https://github.com/EricSarmany","followers_url":"https://api.github.com/users/EricSarmany/followers","following_url":"https://api.github.com/users/EricSarmany/following{/other_user}","gists_url":"https://api.github.com/users/EricSarmany/gists{/gist_id}","starred_url":"https://api.github.com/users/EricSarmany/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/EricSarmany/subscriptions","organizations_url":"https://api.github.com/users/EricSarmany/orgs","repos_url":"https://api.github.com/users/EricSarmany/repos","events_url":"https://api.github.com/users/EricSarmany/events{/privacy}","received_events_url":"https://api.github.com/users/EricSarmany/received_events","type":"User","site_admin":false},"created_at":"2015-04-14T14:21:30Z","updated_at":"2015-04-14T14:21:30Z","body":"That fix worked. Thanks Pierre!"}}