{"action":"created","issue":{"url":"https://api.github.com/repos/Leaflet/Leaflet.draw/issues/48","labels_url":"https://api.github.com/repos/Leaflet/Leaflet.draw/issues/48/labels{/name}","comments_url":"https://api.github.com/repos/Leaflet/Leaflet.draw/issues/48/comments","events_url":"https://api.github.com/repos/Leaflet/Leaflet.draw/issues/48/events","html_url":"https://github.com/Leaflet/Leaflet.draw/issues/48","id":9209966,"number":48,"title":"Is it possible to style edit marker icons?","user":{"login":"Starefossen","id":968267,"avatar_url":"https://avatars.githubusercontent.com/u/968267?v=3","gravatar_id":"","url":"https://api.github.com/users/Starefossen","html_url":"https://github.com/Starefossen","followers_url":"https://api.github.com/users/Starefossen/followers","following_url":"https://api.github.com/users/Starefossen/following{/other_user}","gists_url":"https://api.github.com/users/Starefossen/gists{/gist_id}","starred_url":"https://api.github.com/users/Starefossen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Starefossen/subscriptions","organizations_url":"https://api.github.com/users/Starefossen/orgs","repos_url":"https://api.github.com/users/Starefossen/repos","events_url":"https://api.github.com/users/Starefossen/events{/privacy}","received_events_url":"https://api.github.com/users/Starefossen/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2012-12-12T09:15:02Z","updated_at":"2015-09-28T18:32:52Z","closed_at":"2013-02-11T02:06:23Z","body":"Is any way to change the style of the marker icons in a polyline when it is in edit mode?\r\n\r\nWhen instantiating the drawControl I know that this it is possible:\r\n\r\n\tvar drawControl = new L.Control.Draw({\r\n\t\tpolyline: {\r\n\t\t\ticon: new L.DivIcon({\r\n\t\t\t\ticonSize: new L.Point(10, 10),\r\n\t\t\t\tclassName: 'leaflet-div-icon leaflet-editing-icon my-own-class'\r\n\t\t\t})\r\n\t\t}\r\n\t});\r\n\r\nHowever this only applies to drawing and the style reverts back to the \"default\" when entering edit mode. The only solution for achieving this when editing is to override the `leaflet-editing-icon` css class which is kind of a dirty hack. \r\n\r\nAm I missing something?"},"comment":{"url":"https://api.github.com/repos/Leaflet/Leaflet.draw/issues/comments/143836307","html_url":"https://github.com/Leaflet/Leaflet.draw/issues/48#issuecomment-143836307","issue_url":"https://api.github.com/repos/Leaflet/Leaflet.draw/issues/48","id":143836307,"user":{"login":"mfdickerson","id":7311032,"avatar_url":"https://avatars.githubusercontent.com/u/7311032?v=3","gravatar_id":"","url":"https://api.github.com/users/mfdickerson","html_url":"https://github.com/mfdickerson","followers_url":"https://api.github.com/users/mfdickerson/followers","following_url":"https://api.github.com/users/mfdickerson/following{/other_user}","gists_url":"https://api.github.com/users/mfdickerson/gists{/gist_id}","starred_url":"https://api.github.com/users/mfdickerson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mfdickerson/subscriptions","organizations_url":"https://api.github.com/users/mfdickerson/orgs","repos_url":"https://api.github.com/users/mfdickerson/repos","events_url":"https://api.github.com/users/mfdickerson/events{/privacy}","received_events_url":"https://api.github.com/users/mfdickerson/received_events","type":"User","site_admin":false},"created_at":"2015-09-28T18:32:52Z","updated_at":"2015-09-28T18:32:52Z","body":"This worked:\r\n`\r\nL.Edit.Poly = L.Edit.Poly.extend({\r\n    options : {\r\n        icon: new L.DivIcon({\r\n             iconSize: new L.Point(20, 20),\r\n             className: 'leaflet-div-icon leaflet-editing-icon my-own-icon'\r\n        })\r\n    }\r\n});\r\n`"}}