# Increase the arrow head size

**URL:** <https://community.thinkgeo.com/t/increase-the-arrow-head-size/1754>\
**Category:** WinForms\
**Created:** [July 11, 2011, 4:16am UTC](https://community.thinkgeo.com/t/increase-the-arrow-head-size/1754 "2011-07-11T04:16:24Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Amila](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/a/c37758/32.png) [@Amila](https://community.thinkgeo.com/u/Amila)\
**Post date:** [July 11, 2011, 4:16am UTC](https://community.thinkgeo.com/t/increase-the-arrow-head-size/1754/1 "2011-07-11T04:16:24Z")

</div>

Hi,

I&nbsp;would&nbsp;like&nbsp;to&nbsp;draw&nbsp;an&nbsp;arrow&nbsp;at&nbsp;the&nbsp;end&nbsp;of&nbsp;each&nbsp;line.&nbsp;But&nbsp;my&nbsp;line&nbsp;width&nbsp;is&nbsp;around&nbsp;5&nbsp;(the&nbsp;default&nbsp;size&nbsp;of&nbsp;default&nbsp;line&nbsp;style&nbsp;when&nbsp;it’s&nbsp;not&nbsp;set).&nbsp;So&nbsp;that&nbsp;the&nbsp;arrow&nbsp;head&nbsp;at&nbsp;the&nbsp;end&nbsp;of&nbsp;line&nbsp;is&nbsp;not&nbsp;very&nbsp;clearly&nbsp;visible.&nbsp;&nbsp;I&nbsp;should&nbsp;not&nbsp;include&nbsp;an&nbsp;arrow&nbsp;shaped&nbsp;point&nbsp;at&nbsp;the&nbsp;end&nbsp;of&nbsp;line&nbsp;and&nbsp;also&nbsp;I&nbsp;would&nbsp;like&nbsp;to&nbsp;keep&nbsp;width&nbsp;of&nbsp;the&nbsp;line&nbsp;on&nbsp;same&nbsp;size.&nbsp;(If&nbsp;increased&nbsp;the&nbsp;line&nbsp;width&nbsp;arrow&nbsp;head&nbsp;is&nbsp;starting&nbsp;to&nbsp;display)

Is&nbsp;there&nbsp;is&nbsp;a&nbsp;way&nbsp;to&nbsp;make&nbsp;arrow&nbsp;head&nbsp;little&nbsp;bit&nbsp;big?

Below&nbsp;is&nbsp;my&nbsp;code&nbsp;and&nbsp;screenshot.&nbsp;&nbsp;

\_trackShapeLayer.ZoomLevelSet.ZoomLevel01.DefaultLineStyle.CenterPen.EndCap&nbsp;=&nbsp;DrawingLineCap.ArrowAnchor;

Also&nbsp;could&nbsp;you&nbsp;provide&nbsp;me&nbsp;an&nbsp;example&nbsp;usage&nbsp;of&nbsp;DrawingLineCap.custom&nbsp;enum.

Thanks

Amila

&nbsp;

 ![](https://community.thinkgeo.com/uploads/default/original/1X/5780db925a92d1b8227fdf01f9aa3eb7574d44d9.JPG)

---

<div class="post-metadata">

**Author:** ![Gary2](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/g/49beb7/32.png) [@Gary2](https://community.thinkgeo.com/u/Gary2)\
**Post date:** [July 11, 2011, 1:40pm UTC](https://community.thinkgeo.com/t/increase-the-arrow-head-size/1754/2 "2011-07-11T13:40:58Z")

</div>

Amila,&nbsp;  
  
  
  
Thanks&nbsp;for&nbsp;your&nbsp;post,&nbsp;sorry&nbsp;you&nbsp;can't&nbsp;use&nbsp;custom&nbsp;enum,&nbsp;but&nbsp;there&nbsp;is&nbsp;a&nbsp;way&nbsp;to&nbsp;resolve&nbsp;this&nbsp;problem,&nbsp;you&nbsp;can&nbsp;write&nbsp;a&nbsp;linestyle&nbsp;and&nbsp;override&nbsp;the&nbsp;DrawCore&nbsp;method,&nbsp;get&nbsp;the&nbsp;endpoint&nbsp;at&nbsp;the&nbsp;beginning&nbsp;then&nbsp;call&nbsp;the&nbsp;base.DrawCore,&nbsp;draw&nbsp;a&nbsp;symbol&nbsp;you&nbsp;want&nbsp;after&nbsp;base.DrawCode.&nbsp;  
  
  
  
You&nbsp;can&nbsp;view&nbsp;this&nbsp;post&nbsp;to&nbsp;have&nbsp;some&nbsp;sample&nbsp;code.&nbsp;  
  
[gis.thinkgeo.com/Support/Discussion...fault.aspx](http://gis.thinkgeo.com/Support/DiscussionForums/tabid/143/aff/21/aft/9244/afv/topic/Default.aspx)  
  
Any&nbsp;more&nbsp;questions&nbsp;please&nbsp;feel&nbsp;free&nbsp;to&nbsp;let&nbsp;me&nbsp;know.&nbsp;  
  
  
  
Regards,&nbsp;  
  
  
  
Gary

---

<div class="post-metadata">

**Author:** ![Amila](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/a/c37758/32.png) [@Amila](https://community.thinkgeo.com/u/Amila)\
**Post date:** [July 12, 2011, 2:25am UTC](https://community.thinkgeo.com/t/increase-the-arrow-head-size/1754/3 "2011-07-12T02:25:05Z")

</div>

Hi&nbsp;Gray,&nbsp;  
&nbsp;&nbsp;  
&nbsp;Thanks&nbsp;for&nbsp;the&nbsp;sample.&nbsp;It&nbsp;helps&nbsp;to&nbsp;reach&nbsp;requirement.&nbsp;&nbsp;  
&nbsp;&nbsp;  
&nbsp;Thanks&nbsp;  
&nbsp;Amila

---

<div class="post-metadata">

**Author:** ![Gary2](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/g/49beb7/32.png) [@Gary2](https://community.thinkgeo.com/u/Gary2)\
**Post date:** [July 12, 2011, 7:06am UTC](https://community.thinkgeo.com/t/increase-the-arrow-head-size/1754/4 "2011-07-12T07:06:28Z")

</div>

Amila,&nbsp;  
&nbsp;&nbsp;  
&nbsp;I’m&nbsp;glad&nbsp;it&nbsp;helped.&nbsp;  
&nbsp;&nbsp;  
&nbsp;Gary

---

<div class="post-metadata">

**Author:** ![Marc\_Ferguson](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/m/c2a13f/32.png) [@Marc\_Ferguson](https://community.thinkgeo.com/u/Marc_Ferguson)\
**Post date:** [August 15, 2017, 6:53pm UTC](https://community.thinkgeo.com/t/increase-the-arrow-head-size/1754/5 "2017-08-15T18:53:46Z")

</div>

I am having the same issue. The link for sample code to make this work is invalid. Please post a new link or sample.  
I am using ThinkGeo Desktop Edition version 10, Visual Studio 2017, and [VB.Net](http://VB.Net).  
Thank you.

Serena

---

<div class="post-metadata">

**Author:** ![Ethan](https://community.thinkgeo.com/user_avatar/community.thinkgeo.com/ethan/32/19964_2.png) [@Ethan](https://community.thinkgeo.com/u/Ethan)\
**Post date:** [August 16, 2017, 5:00am UTC](https://community.thinkgeo.com/t/increase-the-arrow-head-size/1754/6 "2017-08-16T05:00:58Z")

</div>

Hi Serena,

As below is the topic mentioned by Gary:

> [@Putting images on top of lines](http://community.thinkgeo.com/t/putting-images-on-top-of-lines/1716):
>
> I&nbsp;have&nbsp;a&nbsp;LineStyle&nbsp;I&nbsp;created&nbsp;to&nbsp;display&nbsp;lines&nbsp;with&nbsp;images&nbsp;for&nbsp;endpoints.&nbsp;The&nbsp;issue&nbsp;I&nbsp;am&nbsp;having&nbsp;is&nbsp;that&nbsp;no&nbsp;matter&nbsp;what&nbsp;order&nbsp;I&nbsp;draw&nbsp;them,&nbsp;the&nbsp;images&nbsp;always&nbsp;appear&nbsp;beneath&nbsp;the&nbsp;line.&nbsp;Is&nbsp;there&nbsp;any&nbsp;way&nbsp;to&nbsp;force&nbsp;the&nbsp;images&nbsp;to&nbsp;appear&nbsp;on&nbsp;top&nbsp;of&nbsp;the&nbsp;line? &nbsp;The&nbsp;code&nbsp;I&nbsp;am&nbsp;using&nbsp;is: &nbsp;&nbsp;&nbsp;&nbsp;public&nbsp;class&nbsp;ImageEndpointLineStyle&nbsp;:&nbsp;LineStyle &nbsp;&nbsp;&nbsp;&nbsp;{ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;private&nbsp;LineStyle&nbsp;\_lineStyle; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;private&nbsp;GeoImage&nbsp;\_firstPointImage; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;private&nbsp;GeoImage&nbsp;\_lastPointImage; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;public&nbsp;ImageEndpointLineStyle(Line…

Please let me know whether that’s helpful for your scenario.

Regards,

Don

---

<div class="post-metadata">

**Author:** ![Marc\_Ferguson](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/m/c2a13f/32.png) [@Marc\_Ferguson](https://community.thinkgeo.com/u/Marc_Ferguson)\
**Post date:** [August 16, 2017, 2:50pm UTC](https://community.thinkgeo.com/t/increase-the-arrow-head-size/1754/7 "2017-08-16T14:50:44Z")

</div>

Hi Don,  
This does not help. It looks like the topic for Gary was regarding the level at which the symbol was drawn below the line.  
My issue is that I want the arrow to be larger. Here is a sample of my code:  
lnStyle = New LineStyle  
lnStyle = LineStyles.CreateSimpleLineStyle(GeoColor.StandardColors.Red, 3, False)  
lnStyle.CenterPen.EndCap = DrawingLineCap.ArrowAnchor  
valueStyle.ValueItems.Add(New ValueItem(“XferRoute1”, lnStyle))

the arrow displays, but it is very small. I would like to make the arrow larger.

---

<div class="post-metadata">

**Author:** ![Ethan](https://community.thinkgeo.com/user_avatar/community.thinkgeo.com/ethan/32/19964_2.png) [@Ethan](https://community.thinkgeo.com/u/Ethan)\
**Post date:** [August 17, 2017, 8:40am UTC](https://community.thinkgeo.com/t/increase-the-arrow-head-size/1754/8 "2017-08-17T08:40:12Z")

</div>

Hi Marc,

If you modify the width of the line, the arrow size will get changed like this:

 ![](https://community.thinkgeo.com/uploads/default/original/3X/3/1/31453f5cf2367ddf373e08f17dc213f7041fabc2.png)

If you don’t want to modify the line size but only want to modify the arrow size, you should want to implement your custom linestyle, draw a custom arrow in the end of line, you can override the DrawCore function for that.

If you don’t know how to implement that, you can create a ticket about that, so our developer can help you on that.

Regards,

Don
