# Feature Text Display

**URL:** <https://community.thinkgeo.com/t/feature-text-display/5179>\
**Category:** WebForms\
**Created:** [February 10, 2010, 11:21am UTC](https://community.thinkgeo.com/t/feature-text-display/5179 "2010-02-10T11:21:45Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Curtis](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@Curtis](https://community.thinkgeo.com/u/Curtis)\
**Post date:** [February 10, 2010, 11:21am UTC](https://community.thinkgeo.com/t/feature-text-display/5179/1 "2010-02-10T11:21:45Z")

</div>

I&nbsp;am&nbsp;displaying&nbsp;a&nbsp;vehicle&nbsp;moving&nbsp;on&nbsp;a&nbsp;map&nbsp;and&nbsp;am&nbsp;having&nbsp;display&nbsp;issues&nbsp;with&nbsp;the&nbsp;feature&nbsp;text&nbsp;of&nbsp;the&nbsp;vehicle.&nbsp;&nbsp;I&nbsp;am&nbsp;using&nbsp;the&nbsp;code&nbsp;below&nbsp;to&nbsp;generate&nbsp;a&nbsp;custom&nbsp;text&nbsp;style&nbsp;but&nbsp;as&nbsp;the&nbsp;map&nbsp;refreshes,&nbsp;which&nbsp;is&nbsp;done&nbsp;via&nbsp;and&nbsp;open&nbsp;layers&nbsp;redraw&nbsp;method&nbsp;the&nbsp;text&nbsp;seems&nbsp;to&nbsp;get&nbsp;cutoff&nbsp;randomly,&nbsp;etc.&nbsp;&nbsp;I&nbsp;have&nbsp;attached&nbsp;some&nbsp;screen&nbsp;shots&nbsp;as&nbsp;well.&nbsp;&nbsp;The&nbsp;vehicle&nbsp;layers&nbsp;are&nbsp;the&nbsp;top&nbsp;level&nbsp;layers&nbsp;so&nbsp;I&nbsp;don't&nbsp;believe&nbsp;that&nbsp;is&nbsp;what&nbsp;is&nbsp;causing&nbsp;it.&nbsp;&nbsp;Any&nbsp;ideas&nbsp;on&nbsp;this&nbsp;one?

AreaStyle&nbsp;areaStyle&nbsp;=&nbsp;new&nbsp;AreaStyle(new&nbsp;GeoPen(GeoColor.StandardColors.Black),&nbsp;new&nbsp;GeoSolidBrush(GeoColor.StandardColors.White));  
  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;layer.ZoomLevelSet.ZoomLevel01.CustomStyles.Add(TextStyles.CreateMaskTextStyle("[NAME]\nHeading:&nbsp;[HEADING]\nSpeed:&nbsp;[SPEED]",&nbsp;new&nbsp;GeoFont("Arial",&nbsp;8),&nbsp;new&nbsp;GeoSolidBrush(GeoColor.StandardColors.Black),&nbsp;areaStyle,&nbsp;-40,&nbsp;-40));

Thanks.

Curtis

---

<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:** [February 10, 2010, 8:15pm UTC](https://community.thinkgeo.com/t/feature-text-display/5179/2 "2010-02-10T20:15:43Z")

</div>

&nbsp;

&nbsp;  
Curtis,  
&nbsp;  
Some&nbsp;labels&nbsp;will&nbsp;be&nbsp;cut&nbsp;off&nbsp;if&nbsp;the&nbsp;“SuppressPartialLabels”&nbsp;is&nbsp;not&nbsp;set&nbsp;as&nbsp;“true”,&nbsp;please&nbsp;use&nbsp;the&nbsp;code&nbsp;below:  
&nbsp;  
  
&nbsp;  
  
`AreaStyle areaStyle = new AreaStyle(new GeoPen(GeoColor.StandardColors.Black), new GeoSolidBrush(GeoColor.StandardColors.White));TextStyle textStyle = TextStyles.CreateMaskTextStyle("[NAME]\nHeading: [HEADING]\nSpeed: [SPEED]", new GeoFont("Arial", 8), new GeoSolidBrush(GeoColor.StandardColors.Black), areaStyle, -40, -40);textStyle.SuppressPartialLabels = true;layer.ZoomLevelSet.ZoomLevel01.CustomStyles.Add(textStyle);`  
&nbsp;  
&nbsp;  
I&nbsp;think&nbsp;it&nbsp;will&nbsp;be&nbsp;better&nbsp;if&nbsp;the&nbsp;vehicle&nbsp;are&nbsp;rendered&nbsp;with&nbsp;“Markers”,&nbsp;which&nbsp;also&nbsp;can&nbsp;show&nbsp;the&nbsp;text.&nbsp;We&nbsp;have&nbsp;release&nbsp;a&nbsp;new&nbsp;“Starter&nbsp;kit”,&nbsp;maybe&nbsp;which&nbsp;is&nbsp;very&nbsp;simmilar&nbsp;to&nbsp;your&nbsp;scenario,&nbsp;and&nbsp;you&nbsp;can&nbsp;get&nbsp;it&nbsp;from&nbsp;[gis.thinkgeo.com/Products/Ex...fault.aspx](http://gis.thinkgeo.com/Products/ExtensionsAddOnsforMapSuite/VehicleTrackingStarterKit/tabid/771/Default.aspx)&nbsp;  
&nbsp;  
Thanks,  
Johnny,
