{"action":"created","issue":{"url":"https://api.github.com/repos/MapWindow/MapWinGIS/issues/122","repository_url":"https://api.github.com/repos/MapWindow/MapWinGIS","labels_url":"https://api.github.com/repos/MapWindow/MapWinGIS/issues/122/labels{/name}","comments_url":"https://api.github.com/repos/MapWindow/MapWinGIS/issues/122/comments","events_url":"https://api.github.com/repos/MapWindow/MapWinGIS/issues/122/events","html_url":"https://github.com/MapWindow/MapWinGIS/issues/122","id":367686990,"node_id":"MDU6SXNzdWUzNjc2ODY5OTA=","number":122,"title":"Arrows on end on lines? ","user":{"login":"rossmclean","id":1196255,"node_id":"MDQ6VXNlcjExOTYyNTU=","avatar_url":"https://avatars3.githubusercontent.com/u/1196255?v=4","gravatar_id":"","url":"https://api.github.com/users/rossmclean","html_url":"https://github.com/rossmclean","followers_url":"https://api.github.com/users/rossmclean/followers","following_url":"https://api.github.com/users/rossmclean/following{/other_user}","gists_url":"https://api.github.com/users/rossmclean/gists{/gist_id}","starred_url":"https://api.github.com/users/rossmclean/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rossmclean/subscriptions","organizations_url":"https://api.github.com/users/rossmclean/orgs","repos_url":"https://api.github.com/users/rossmclean/repos","events_url":"https://api.github.com/users/rossmclean/events{/privacy}","received_events_url":"https://api.github.com/users/rossmclean/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-10-08T08:40:46Z","updated_at":"2018-10-08T17:50:05Z","closed_at":null,"author_association":"NONE","body":"Hi. \r\nI'm using \r\nTheMap.DrawLineEx(layer, X1, Y1, X2, Y2, Thinkness, Colour)\r\nto draw line on a drawing layer, is there any way to have an arrow head at the end or mid point of the drawn line? Maybe add a symbol on another layer? \r\nIve had a look around but could not see anything....\r\nThanks\r\nRoss\r\n\r\n\r\nP.s is there a better place to ask these questions? Seem like this is more of a bug/issue list..."},"comment":{"url":"https://api.github.com/repos/MapWindow/MapWinGIS/issues/comments/427922874","html_url":"https://github.com/MapWindow/MapWinGIS/issues/122#issuecomment-427922874","issue_url":"https://api.github.com/repos/MapWindow/MapWinGIS/issues/122","id":427922874,"node_id":"MDEyOklzc3VlQ29tbWVudDQyNzkyMjg3NA==","user":{"login":"jerryfaust","id":30758167,"node_id":"MDQ6VXNlcjMwNzU4MTY3","avatar_url":"https://avatars2.githubusercontent.com/u/30758167?v=4","gravatar_id":"","url":"https://api.github.com/users/jerryfaust","html_url":"https://github.com/jerryfaust","followers_url":"https://api.github.com/users/jerryfaust/followers","following_url":"https://api.github.com/users/jerryfaust/following{/other_user}","gists_url":"https://api.github.com/users/jerryfaust/gists{/gist_id}","starred_url":"https://api.github.com/users/jerryfaust/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jerryfaust/subscriptions","organizations_url":"https://api.github.com/users/jerryfaust/orgs","repos_url":"https://api.github.com/users/jerryfaust/repos","events_url":"https://api.github.com/users/jerryfaust/events{/privacy}","received_events_url":"https://api.github.com/users/jerryfaust/received_events","type":"User","site_admin":false},"created_at":"2018-10-08T17:50:05Z","updated_at":"2018-10-08T17:50:05Z","author_association":"CONTRIBUTOR","body":"Hello @rossmclean \r\n\r\nWhat you probably need to do is to draw endpoints on the line using a shapefile layer DrawPoint method.  Unfortunately, I don't think you can do it on the maps Drawing Layer (using DrawPointEx), which only draws points as pixels or rectangles.\r\n\r\nWhen using a shapefile layer, you can specify symbols in the [DefaultDrawingOptions](https://www.mapwindow.org/documentation/mapwingis4.9/class_shape_drawing_options.html). You could, for example, use a 'font' type symbol, picking out an appropriate arrowhead from a font.\r\n\r\nA couple other notes: As you probably know, each shapefile is a distinct shape type.  So you will have to draw the lines in one layer and the endpoints in another layer.  Secondly, you would have to determine the angle of rotation for the arrowheads, using the angle of the first two points of the line and the last two points of the line.  I'm sorry it's not very straightforward, unless someone else knows an easier way.\r\n\r\nRegards.\r\nJerry."}}
{"actor":{"display_login":"jerryfaust"}}