# TrackInteractiveOverlay Styling

**URL:** <https://community.thinkgeo.com/t/trackinteractiveoverlay-styling/3398>\
**Category:** WPF\
**Created:** [April 18, 2013, 3:52am UTC](https://community.thinkgeo.com/t/trackinteractiveoverlay-styling/3398 "2013-04-18T03:52:31Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kris](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/k/82dd89/32.png) [@Kris](https://community.thinkgeo.com/u/Kris)\
**Post date:** [April 18, 2013, 3:52am UTC](https://community.thinkgeo.com/t/trackinteractiveoverlay-styling/3398/1 "2013-04-18T03:52:31Z")

</div>

Hi,

I&nbsp;have&nbsp;had&nbsp;some&nbsp;good&nbsp;success&nbsp;using&nbsp;the&nbsp;articles&nbsp;in&nbsp;the&nbsp;wiki,&nbsp;and&nbsp;other&nbsp;discussion&nbsp;topics&nbsp;to&nbsp;alter&nbsp;the&nbsp;styling&nbsp;for&nbsp;TrackInteractiveOverlay&nbsp;while&nbsp;the&nbsp;user&nbsp;is&nbsp;digitising&nbsp;their&nbsp;shape.

My&nbsp;problem&nbsp;is&nbsp;this.

I&nbsp;want&nbsp;display&nbsp;metadata&nbsp;about&nbsp;the&nbsp;shape,&nbsp;such&nbsp;as&nbsp;Length,&nbsp;Width,&nbsp;Height,&nbsp;Area,&nbsp;Circumference,&nbsp;Radius,&nbsp;Diameter,&nbsp;while&nbsp;the&nbsp;user&nbsp;is&nbsp;digitising&nbsp;the&nbsp;shape.

I&nbsp;plan&nbsp;to&nbsp;use&nbsp;LabelStyles&nbsp;to&nbsp;show&nbsp;this&nbsp;information&nbsp;around&nbsp;the&nbsp;shape,&nbsp;but&nbsp;I&nbsp;need&nbsp;to&nbsp;add&nbsp;the&nbsp;metadata&nbsp;values&nbsp;to&nbsp;the&nbsp;Feature.ColumnValues&nbsp;as&nbsp;the&nbsp;shape&nbsp;moves.

Where&nbsp;should&nbsp;I&nbsp;put&nbsp;the&nbsp;logic&nbsp;to&nbsp;update&nbsp;these&nbsp;values?&nbsp;(should&nbsp;I&nbsp;override&nbsp;TrackInteractiveOverlay&nbsp;and&nbsp;some&nbsp;method?)

Also,&nbsp;would&nbsp;you&nbsp;suggest&nbsp;a&nbsp;different&nbsp;way&nbsp;to&nbsp;achieve&nbsp;this?

Kris

---

<div class="post-metadata">

**Author:** ![Johnny](https://community.thinkgeo.com/user_avatar/community.thinkgeo.com/johnny/32/19044_2.png) [@Johnny](https://community.thinkgeo.com/u/Johnny)\
**Post date:** [April 19, 2013, 4:31am UTC](https://community.thinkgeo.com/t/trackinteractiveoverlay-styling/3398/2 "2013-04-19T04:31:03Z")

</div>

Hi&nbsp;Kris,&nbsp;  
&nbsp;  
Thanks&nbsp;for&nbsp;your&nbsp;post,&nbsp;attached&nbsp;is&nbsp;a&nbsp;demo&nbsp;to&nbsp;show&nbsp;a&nbsp;polygon’s&nbsp;area&nbsp;information&nbsp;sample&nbsp;while&nbsp;editing,&nbsp;please&nbsp;check&nbsp;it&nbsp;out,&nbsp;Also&nbsp;I&nbsp;guess&nbsp;you&nbsp;can&nbsp;use&nbsp;similar&nbsp;code&nbsp;to&nbsp;display&nbsp;other&nbsp;required&nbsp;information.Following&nbsp;is&nbsp;the&nbsp;screenshot&nbsp;what&nbsp;we&nbsp;got:  
&nbsp;

 ![](https://community.thinkgeo.com/uploads/default/original/2X/1/1d2cc8c9d0e86eeabfd30386334865b6a3b7666d.png)  
&nbsp;  
Thanks,  
Johnny  
  
[Post\_11175Sample.txt](https://community.thinkgeo.com/uploads/default/original/2X/6/689fc94895c1f3b05efa613a7f2eb45bd58a40bb.txt) (2.62 KB)

---

<div class="post-metadata">

**Author:** ![Kris](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/k/82dd89/32.png) [@Kris](https://community.thinkgeo.com/u/Kris)\
**Post date:** [April 19, 2013, 5:00am UTC](https://community.thinkgeo.com/t/trackinteractiveoverlay-styling/3398/3 "2013-04-19T05:00:55Z")

</div>

Hi&nbsp;Johnny,&nbsp;  
&nbsp;&nbsp;  
&nbsp;That&nbsp;simple!&nbsp;  
&nbsp;This&nbsp;looks&nbsp;extremely&nbsp;good&nbsp;-&nbsp;I&nbsp;will&nbsp;try&nbsp;it&nbsp;out.&nbsp;  
&nbsp;&nbsp;  
&nbsp;Thank&nbsp;you&nbsp;very&nbsp;much.&nbsp;  
&nbsp;&nbsp;  
&nbsp;Kris

---

<div class="post-metadata">

**Author:** ![Kris](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/k/82dd89/32.png) [@Kris](https://community.thinkgeo.com/u/Kris)\
**Post date:** [April 19, 2013, 9:05am UTC](https://community.thinkgeo.com/t/trackinteractiveoverlay-styling/3398/4 "2013-04-19T09:05:51Z")

</div>

Hi&nbsp;Johnny,&nbsp;  
&nbsp;&nbsp;  
&nbsp;Sorry&nbsp;to&nbsp;be&nbsp;a&nbsp;pain&nbsp;but&nbsp;this&nbsp;doesn’t&nbsp;meet&nbsp;my&nbsp;requirements.&nbsp;  
&nbsp;&nbsp;  
&nbsp;The&nbsp;problem&nbsp;I&nbsp;have&nbsp;is&nbsp;that&nbsp;I&nbsp;want&nbsp;to&nbsp;display&nbsp;the&nbsp;metadata&nbsp;while&nbsp;the&nbsp;shape&nbsp;is&nbsp;being&nbsp;drawn.&nbsp;  
&nbsp;&nbsp;  
&nbsp;The&nbsp;solution&nbsp;you&nbsp;provided&nbsp;only&nbsp;shows&nbsp;the&nbsp;metadata&nbsp;when&nbsp;the&nbsp;shape&nbsp;is&nbsp;finished.&nbsp;  
&nbsp;&nbsp;  
&nbsp;I&nbsp;tried&nbsp;to&nbsp;change&nbsp;the&nbsp;Feature.ColumnValues&nbsp;in&nbsp;TrackInteractiveOverlay.MouseMoved&nbsp;and&nbsp;TrackInteractiveOverlay.VertexAdded&nbsp;but&nbsp;the&nbsp;Feature.ColumnValues&nbsp;gets&nbsp;overwritten.&nbsp;  
&nbsp;&nbsp;  
&nbsp;I&nbsp;think&nbsp;that&nbsp;I&nbsp;will&nbsp;need&nbsp;to&nbsp;override&nbsp;TrackInteractiveOverlay.DrawCore&nbsp;but&nbsp;I&nbsp;don’t&nbsp;know&nbsp;how,&nbsp;because&nbsp;the&nbsp;parameters&nbsp;are&nbsp;different&nbsp;to&nbsp;the&nbsp;examples&nbsp;on&nbsp;the&nbsp;wiki.&nbsp;  
&nbsp;&nbsp;  
&nbsp;Could&nbsp;you&nbsp;give&nbsp;me&nbsp;an&nbsp;example&nbsp;of&nbsp;how&nbsp;I&nbsp;can&nbsp;override&nbsp;TrackInteractiveOverlay.DrawCore.&nbsp;  
&nbsp;&nbsp;  
&nbsp;Kris

---

<div class="post-metadata">

**Author:** ![Carlos1](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/c/6a8cbe/32.png) [@Carlos1](https://community.thinkgeo.com/u/Carlos1)\
**Post date:** [April 19, 2013, 9:40am UTC](https://community.thinkgeo.com/t/trackinteractiveoverlay-styling/3398/5 "2013-04-19T09:40:13Z")

</div>

Hi&nbsp;Kris,&nbsp;  
&nbsp;&nbsp;  
&nbsp;This&nbsp;codesample&nbsp;might&nbsp;be&nbsp;helpful&nbsp;for&nbsp;you:&nbsp;[wiki.thinkgeo.com/wiki/Map\_Suite\_Wpf\_Desktop\_Edition\_All\_Samples#Dynamic\_Info\_On\_TrackShapes](http://wiki.thinkgeo.com/wiki/Map_Suite_Wpf_Desktop_Edition_All_Samples#Dynamic_Info_On_TrackShapes)&nbsp;  
&nbsp;&nbsp;  
&nbsp;Carlos

---

<div class="post-metadata">

**Author:** ![Kris](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/k/82dd89/32.png) [@Kris](https://community.thinkgeo.com/u/Kris)\
**Post date:** [April 19, 2013, 9:46am UTC](https://community.thinkgeo.com/t/trackinteractiveoverlay-styling/3398/6 "2013-04-19T09:46:59Z")

</div>

Hi&nbsp;Carlos,&nbsp;  
&nbsp;&nbsp;  
&nbsp;Thank&nbsp;you&nbsp;for&nbsp;your&nbsp;suggestion.&nbsp;  
&nbsp;&nbsp;  
&nbsp;I&nbsp;found&nbsp;this&nbsp;sample&nbsp;before,&nbsp;but&nbsp;I&nbsp;wanted&nbsp;to&nbsp;try&nbsp;to&nbsp;display&nbsp;the&nbsp;metadata&nbsp;using&nbsp;a&nbsp;TextStyle.&nbsp;  
&nbsp;&nbsp;  
&nbsp;I&nbsp;will&nbsp;trial&nbsp;this&nbsp;way,&nbsp;perhaps&nbsp;using&nbsp;a&nbsp;ToolTip,&nbsp;and&nbsp;see&nbsp;whether&nbsp;it&nbsp;is&nbsp;the&nbsp;right&nbsp;way&nbsp;to&nbsp;go.&nbsp;  
&nbsp;&nbsp;  
&nbsp;I&nbsp;would&nbsp;still&nbsp;be&nbsp;curious&nbsp;to&nbsp;see&nbsp;and&nbsp;example&nbsp;of&nbsp;how&nbsp;to&nbsp;override&nbsp;TrackInteractiveOverlay.DrawCore.&nbsp;  
&nbsp;&nbsp;  
&nbsp;Kris

---

<div class="post-metadata">

**Author:** ![Carlos1](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/c/6a8cbe/32.png) [@Carlos1](https://community.thinkgeo.com/u/Carlos1)\
**Post date:** [April 19, 2013, 9:52am UTC](https://community.thinkgeo.com/t/trackinteractiveoverlay-styling/3398/7 "2013-04-19T09:52:00Z")

</div>

Hi&nbsp;again,&nbsp;  
  
  
  
The&nbsp;attached&nbsp;code&nbsp;is&nbsp;a&nbsp;ruler&nbsp;tool&nbsp;I&nbsp;did&nbsp;months&nbsp;ago.&nbsp;It&nbsp;draws&nbsp;the&nbsp;line&nbsp;length&nbsp;while&nbsp;tracking.&nbsp;It&nbsp;has&nbsp;some&nbsp;witchcraft-code&nbsp;to&nbsp;address&nbsp;issues&nbsp;when&nbsp;lines&nbsp;span&nbsp;beyond&nbsp;meridian&nbsp;180&nbsp;that&nbsp;could&nbsp;be&nbsp;solved&nbsp;more&nbsp;elegantly&nbsp;by&nbsp;using&nbsp;a&nbsp;protection,&nbsp;but&nbsp;this&nbsp;goes&nbsp;beyond&nbsp;my&nbsp;mapping&nbsp;knowledge/timeframe.&nbsp;  
  
  
  
Anyway&nbsp;I'm&nbsp;sure&nbsp;it&nbsp;will&nbsp;be&nbsp;what&nbsp;you&nbsp;are&nbsp;looking&nbsp;for,&nbsp;as&nbsp;I&nbsp;override&nbsp;Drawcore&nbsp;and&nbsp;use&nbsp;custom&nbsp;text&nbsp;style&nbsp;  
  
  
  
Carlos

[CustomDistanceLineStyle.vb](https://community.thinkgeo.com/uploads/default/original/2X/3/3ffc7137abcdc76f974fccdb65cab5f394dabcd5.vb) (6.01 KB)

---

<div class="post-metadata">

**Author:** ![Edgar](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/e/b487fb/32.png) [@Edgar](https://community.thinkgeo.com/u/Edgar)\
**Post date:** [April 23, 2013, 8:54pm UTC](https://community.thinkgeo.com/t/trackinteractiveoverlay-styling/3398/8 "2013-04-23T20:54:13Z")

</div>

Hi&nbsp;Carlos,  
&nbsp;  
Thanks&nbsp;for&nbsp;your&nbsp;help&nbsp;on&nbsp;this,&nbsp;and&nbsp;Kris,&nbsp;here&nbsp;attached&nbsp;is&nbsp;the&nbsp;sample&nbsp;code&nbsp;from&nbsp;us,&nbsp;would&nbsp;you&nbsp;please&nbsp;try&nbsp;it&nbsp;out?  
&nbsp;  
Hope&nbsp;it&nbsp;helps,  
Edgar  
  
[Post11175Sample.txt](https://community.thinkgeo.com/uploads/default/original/2X/c/cfb7b6f43ba7d69f36b8059787eeb6f6550c87a2.txt) (4.75 KB)
