{"action":"created","issue":{"url":"https://api.github.com/repos/mapbox/mapbox-gl-draw/issues/284","repository_url":"https://api.github.com/repos/mapbox/mapbox-gl-draw","labels_url":"https://api.github.com/repos/mapbox/mapbox-gl-draw/issues/284/labels{/name}","comments_url":"https://api.github.com/repos/mapbox/mapbox-gl-draw/issues/284/comments","events_url":"https://api.github.com/repos/mapbox/mapbox-gl-draw/issues/284/events","html_url":"https://github.com/mapbox/mapbox-gl-draw/issues/284","id":146974959,"number":284,"title":"Marker positioning within draw feature. ","user":{"login":"mjpbradley","id":17411907,"avatar_url":"https://avatars.githubusercontent.com/u/17411907?v=3","gravatar_id":"","url":"https://api.github.com/users/mjpbradley","html_url":"https://github.com/mjpbradley","followers_url":"https://api.github.com/users/mjpbradley/followers","following_url":"https://api.github.com/users/mjpbradley/following{/other_user}","gists_url":"https://api.github.com/users/mjpbradley/gists{/gist_id}","starred_url":"https://api.github.com/users/mjpbradley/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mjpbradley/subscriptions","organizations_url":"https://api.github.com/users/mjpbradley/orgs","repos_url":"https://api.github.com/users/mjpbradley/repos","events_url":"https://api.github.com/users/mjpbradley/events{/privacy}","received_events_url":"https://api.github.com/users/mjpbradley/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-04-08T16:26:17Z","updated_at":"2016-04-08T16:54:10Z","closed_at":null,"body":"It seems that the z-index of markers cannot be controlled, causing them to be loaded after a new polygon is drawn - see below. \r\n\r\nHere I am handling a click event and it is causing the polygon to change mode each time. I am not sure if this is a mapbox-gl issue or separate draw issue?\r\n\r\n![image](https://cloud.githubusercontent.com/assets/17411907/14390418/c156a96e-fdae-11e5-9c15-e58b7e5f6ab2.png)"},"comment":{"url":"https://api.github.com/repos/mapbox/mapbox-gl-draw/issues/comments/207512948","html_url":"https://github.com/mapbox/mapbox-gl-draw/issues/284#issuecomment-207512948","issue_url":"https://api.github.com/repos/mapbox/mapbox-gl-draw/issues/284","id":207512948,"user":{"login":"mcwhittemore","id":1551510,"avatar_url":"https://avatars.githubusercontent.com/u/1551510?v=3","gravatar_id":"","url":"https://api.github.com/users/mcwhittemore","html_url":"https://github.com/mcwhittemore","followers_url":"https://api.github.com/users/mcwhittemore/followers","following_url":"https://api.github.com/users/mcwhittemore/following{/other_user}","gists_url":"https://api.github.com/users/mcwhittemore/gists{/gist_id}","starred_url":"https://api.github.com/users/mcwhittemore/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mcwhittemore/subscriptions","organizations_url":"https://api.github.com/users/mcwhittemore/orgs","repos_url":"https://api.github.com/users/mcwhittemore/repos","events_url":"https://api.github.com/users/mcwhittemore/events{/privacy}","received_events_url":"https://api.github.com/users/mcwhittemore/received_events","type":"User","site_admin":false},"created_at":"2016-04-08T16:54:09Z","updated_at":"2016-04-08T16:54:09Z","body":"Draw works as an overlay on your style so this bug is 'by design' :(. That said, I'd like to understand this a bit more to see how/if Draw could make this easier.\r\n\r\n- How did this the polygon on the map? Did I draw it or was it added via Draw.add? Are both of these options possible.\r\n- Why am I clicking on 'civic center plaza'?"}}