# Text Layer

**URL:** <https://community.thinkgeo.com/t/text-layer/1137>\
**Category:** WinForms\
**Created:** [April 7, 2010, 4:59am UTC](https://community.thinkgeo.com/t/text-layer/1137 "2010-04-07T04:59:44Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![deep](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/d/ce7236/32.png) [@deep](https://community.thinkgeo.com/u/deep)\
**Post date:** [April 7, 2010, 4:59am UTC](https://community.thinkgeo.com/t/text-layer/1137/1 "2010-04-07T04:59:44Z")

</div>

Hi&nbsp;Yale,&nbsp;actually&nbsp;am&nbsp;using&nbsp;three&nbsp;layer&nbsp;alreadi,

for&nbsp;map,

bitmap&nbsp;icon

and&nbsp;pie&nbsp;layer.

now&nbsp;i&nbsp;added&nbsp;a&nbsp;text&nbsp;style&nbsp;layer&nbsp;in&nbsp;my&nbsp;design,&nbsp;it&nbsp;throws&nbsp;exception&nbsp;as&nbsp;u&nbsp;cannot&nbsp;add&nbsp;custom&nbsp;style&nbsp;when&nbsp;you&nbsp;use&nbsp;default&nbsp;style.&nbsp;i&nbsp;created&nbsp;tat&nbsp;issue&nbsp;in&nbsp;this&nbsp;sample,&nbsp;can&nbsp;u&nbsp;solve&nbsp;and&nbsp;tell&nbsp;how&nbsp;to&nbsp;show&nbsp;text&nbsp;in&nbsp;below&nbsp;of&nbsp;each&nbsp;icon????

check&nbsp;this&nbsp;[cid-08ec3041618e8ee4.skydriv...sample.rar](http://cid-08ec3041618e8ee4.skydrive.live.com/self.aspx/.SharedFavorites/Copy%20of%20sample.rar)

in&nbsp;that&nbsp;sample&nbsp;u&nbsp;can&nbsp;find&nbsp;two&nbsp;icons&nbsp;in&nbsp;map.&nbsp;i&nbsp;just&nbsp;want&nbsp;to&nbsp;place&nbsp;the&nbsp;label&nbsp;below&nbsp;to&nbsp;each&nbsp;icon.&nbsp;&nbsp;key&nbsp;=&nbsp;m\_Points_.Label;//&nbsp;\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*key&nbsp;is&nbsp;the&nbsp;label&nbsp;want&nbsp;to&nbsp;show&nbsp;below&nbsp;in&nbsp;each&nbsp;icon&nbsp;\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*_

string

---

<div class="post-metadata">

**Author:** ![ThinkGeo](https://community.thinkgeo.com/user_avatar/community.thinkgeo.com/thinkgeo/32/25029_2.png) [@ThinkGeo](https://community.thinkgeo.com/u/ThinkGeo)\
**Post date:** [April 7, 2010, 8:19pm UTC](https://community.thinkgeo.com/t/text-layer/1137/2 "2010-04-07T20:19:21Z")

</div>

Deep,&nbsp;  
&nbsp;&nbsp;  
&nbsp;Thanks&nbsp;for&nbsp;your&nbsp;post.&nbsp;  
&nbsp;&nbsp;  
&nbsp;The&nbsp;Custom&nbsp;styles&nbsp;and&nbsp;Default&nbsp;styles&nbsp;can&nbsp;not&nbsp;be&nbsp;used&nbsp;at&nbsp;the&nbsp;same&nbsp;time.&nbsp;You&nbsp;can&nbsp;only&nbsp;use&nbsp;default&nbsp;styles&nbsp;or&nbsp;custom&nbsp;styles&nbsp;at&nbsp;a&nbsp;given&nbsp;scenario.&nbsp;  
&nbsp;&nbsp;  
&nbsp;Basically&nbsp;the&nbsp;custom&nbsp;styles&nbsp;is&nbsp;targeting&nbsp;for&nbsp;advanced&nbsp;style,&nbsp;for&nbsp;example,&nbsp;ValueStyle,&nbsp;ValueIconStyle&nbsp;etc.&nbsp;I&nbsp;believe&nbsp;there&nbsp;are&nbsp;many&nbsp;topics&nbsp;discussing&nbsp;this&nbsp;topic&nbsp;in&nbsp;the&nbsp;discussion&nbsp;forum.&nbsp;  
&nbsp;&nbsp;  
&nbsp;Thanks.&nbsp;  
&nbsp;&nbsp;  
&nbsp;Yale&nbsp;

---

<div class="post-metadata">

**Author:** ![deep](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/d/ce7236/32.png) [@deep](https://community.thinkgeo.com/u/deep)\
**Post date:** [April 7, 2010, 8:40pm UTC](https://community.thinkgeo.com/t/text-layer/1137/3 "2010-04-07T20:40:07Z")

</div>

Yale&nbsp;  
&nbsp;Is&nbsp;it&nbsp;possible&nbsp;to&nbsp;add&nbsp;text&nbsp;in&nbsp;value&nbsp;style,&nbsp;if&nbsp;so&nbsp;refer&nbsp;me&nbsp;some&nbsp;example,&nbsp;i&nbsp;will&nbsp;make&nbsp;use&nbsp;of&nbsp;that&nbsp;&nbsp;  
&nbsp;&nbsp;  
&nbsp;Thanks

---

<div class="post-metadata">

**Author:** ![ThinkGeo](https://community.thinkgeo.com/user_avatar/community.thinkgeo.com/thinkgeo/32/25029_2.png) [@ThinkGeo](https://community.thinkgeo.com/u/ThinkGeo)\
**Post date:** [April 8, 2010, 12:56am UTC](https://community.thinkgeo.com/t/text-layer/1137/4 "2010-04-08T00:56:12Z")

</div>

Deep,&nbsp;  
&nbsp;&nbsp;  
&nbsp;I&nbsp;am&nbsp;sorry&nbsp;to&nbsp;say&nbsp;that&nbsp;we&nbsp;did&nbsp;not&nbsp;have&nbsp;any&nbsp;existing&nbsp;samples&nbsp;in&nbsp;our&nbsp;how&nbsp;to&nbsp;I&nbsp;sample&nbsp;showing&nbsp;how&nbsp;to&nbsp;add&nbsp;TextStyles&nbsp;to&nbsp;ValueStyle,&nbsp;while&nbsp;it&nbsp;should&nbsp;be&nbsp;exactly&nbsp;same&nbsp;with&nbsp;other&nbsp;style.&nbsp;  
&nbsp;&nbsp;  
&nbsp;Following&nbsp;codes&nbsp;show&nbsp;how&nbsp;to&nbsp;use&nbsp;the&nbsp;ValueStyle&nbsp;correctly,&nbsp;the&nbsp;only&nbsp;difference&nbsp;is&nbsp;that&nbsp;when&nbsp;adding&nbsp;ValueItem,&nbsp;just&nbsp;add&nbsp;a&nbsp;corresponding&nbsp;TextStyle&nbsp;instead&nbsp;of&nbsp;a&nbsp;AreaStyle.&nbsp;  
&nbsp;\HowDoISamples\Styles&#160;DrawAFeatureBasedOnAValue&nbsp;  
&nbsp;\HowDoISamples\Styles\DrawFeaturesBasedOnValues&nbsp;  
&nbsp;[code.thinkgeo.com/projects/show/labelingbasedoncol](http://code.thinkgeo.com/projects/show/labelingbasedoncol)&nbsp;  
&nbsp;&nbsp;  
&nbsp;Any&nbsp;more&nbsp;questions&nbsp;just&nbsp;feel&nbsp;free&nbsp;to&nbsp;let&nbsp;me&nbsp;know.&nbsp;  
&nbsp;&nbsp;  
&nbsp;Thanks.&nbsp;  
&nbsp;&nbsp;  
&nbsp;Yale&nbsp;

---

<div class="post-metadata">

**Author:** ![deep](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/d/ce7236/32.png) [@deep](https://community.thinkgeo.com/u/deep)\
**Post date:** [April 8, 2010, 3:01am UTC](https://community.thinkgeo.com/t/text-layer/1137/5 "2010-04-08T03:01:27Z")

</div>

Yale&nbsp;when&nbsp;am&nbsp;trying&nbsp;to&nbsp;run&nbsp;the&nbsp;sample&nbsp;am&nbsp;getting&nbsp;following&nbsp;exception…&nbsp;  
&nbsp;&nbsp;  
&nbsp;System.NullReferenceException&nbsp;was&nbsp;unhandled&nbsp;  
&nbsp;&nbsp;&nbsp;Message="Object&nbsp;reference&nbsp;not&nbsp;set&nbsp;to&nbsp;an&nbsp;instance&nbsp;of&nbsp;an&nbsp;object."&nbsp;  
&nbsp;&nbsp;&nbsp;Source="DesktopEdition"&nbsp;  
&nbsp;&nbsp;&nbsp;StackTrace:&nbsp;  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;at&nbsp;ThinkGeo.MapSuite.DesktopEdition.Overlay.Draw(GeoCanvas&nbsp;canvas)&nbsp;  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;at&nbsp;ThinkGeo.MapSuite.DesktopEdition.WpfMap.x03e3d48bcfe7bb6c(IEnumerable`1&nbsp;xa6f0db4f183189f1)&nbsp;  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;at&nbsp;ThinkGeo.MapSuite.DesktopEdition.WpfMap.xff5b27c00f9678c2(RectangleShape&nbsp;x178b193eec228e6e)&nbsp;  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;at&nbsp;ThinkGeo.MapSuite.DesktopEdition.WpfMap.xe3cee4adb9c72451()&nbsp;  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;at&nbsp;ThinkGeo.MapSuite.DesktopEdition.WpfMap.x9ac8c50f434f4b39(Int32&nbsp;xb565f4681f05557a)&nbsp;  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;at&nbsp;ThinkGeo.MapSuite.DesktopEdition.WpfMap.Refresh()&nbsp;  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;at&nbsp;CSWpfHowDoISamples.DrawAFeatureBasedOnAValue.DrawAFeatureBasedOnAValue\_Loaded(Object&nbsp;sender,&nbsp;RoutedEventArgs&nbsp;e)&nbsp;in&nbsp;C:\Program&nbsp;Files&nbsp;(x86)\ThinkGeo\Map&nbsp;Suite&nbsp;Desktop&nbsp;Evaluation&nbsp;Edition&nbsp;3.0\Samples\CSharp&nbsp;Wpf&nbsp;How&nbsp;Do&nbsp;I&nbsp;Samples\Styles\DrawAFeatureBasedOnAValue.xaml.cs:line&nbsp;54&nbsp;  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;at&nbsp;System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object&nbsp;target,&nbsp;RoutedEventArgs&nbsp;routedEventArgs)&nbsp;  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;at&nbsp;System.Windows.EventRoute.InvokeHandlersImpl(Object&nbsp;source,&nbsp;RoutedEventArgs&nbsp;args,&nbsp;Boolean&nbsp;reRaised)&nbsp;  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;at&nbsp;System.Windows.UIElement.RaiseEventImpl(DependencyObject&nbsp;sender,&nbsp;RoutedEventArgs&nbsp;args)&nbsp;  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;at&nbsp;System.Windows.UIElement.RaiseEvent(RoutedEventArgs&nbsp;e)&nbsp;  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;at&nbsp;System.Windows.BroadcastEventHelper.BroadcastEvent(DependencyObject&nbsp;root,&nbsp;RoutedEvent&nbsp;routedEvent)&nbsp;  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;at&nbsp;System.Windows.BroadcastEventHelper.BroadcastLoadedEvent(Object&nbsp;root)&nbsp;  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;at&nbsp;MS.Internal.LoadedOrUnloadedOperation.DoWork()&nbsp;  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;at&nbsp;System.Windows.Media.MediaContext.FireLoadedPendingCallbacks()&nbsp;  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;at&nbsp;System.Windows.Media.MediaContext.FireInvokeOnRenderCallbacks()&nbsp;  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;at&nbsp;System.Windows.Media.MediaContext.RenderMessageHandlerCore(Object&nbsp;resizedCompositionTarget)&nbsp;  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;at&nbsp;System.Windows.Media.MediaContext.RenderMessageHandler(Object&nbsp;resizedCompositionTarget)&nbsp;  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;at&nbsp;System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate&nbsp;callback,&nbsp;Object&nbsp;args,&nbsp;Boolean&nbsp;isSingleParameter)&nbsp;  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;at&nbsp;System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object&nbsp;source,&nbsp;Delegate&nbsp;callback,&nbsp;Object&nbsp;args,&nbsp;Boolean&nbsp;isSingleParameter,&nbsp;Delegate&nbsp;catchHandler)&nbsp;  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;at&nbsp;System.Windows.Threading.Dispatcher.WrappedInvoke(Delegate&nbsp;callback,&nbsp;Object&nbsp;args,&nbsp;Boolean&nbsp;isSingleParameter,&nbsp;Delegate&nbsp;catchHandler)&nbsp;  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;at&nbsp;System.Windows.Threading.DispatcherOperation.InvokeImpl()&nbsp;  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;at&nbsp;System.Windows.Threading.DispatcherOperation.InvokeInSecurityContext(Object&nbsp;state)&nbsp;  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;at&nbsp;System.Threading.ExecutionContext.runTryCode(Object&nbsp;userData)&nbsp;  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;at&nbsp;System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode&nbsp;code,&nbsp;CleanupCode&nbsp;backoutCode,&nbsp;Object&nbsp;userData)&nbsp;  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;at&nbsp;System.Threading.ExecutionContext.RunInternal(ExecutionContext&nbsp;executionContext,&nbsp;ContextCallback&nbsp;callback,&nbsp;Object&nbsp;state)&nbsp;  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;at&nbsp;System.Threading.ExecutionContext.Run(ExecutionContext&nbsp;executionContext,&nbsp;ContextCallback&nbsp;callback,&nbsp;Object&nbsp;state)&nbsp;  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;at&nbsp;System.Windows.Threading.DispatcherOperation.Invoke()&nbsp;  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;at&nbsp;System.Windows.Threading.Dispatcher.ProcessQueue()&nbsp;  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;at&nbsp;System.Windows.Threading.Dispatcher.WndProcHook(IntPtr&nbsp;hwnd,&nbsp;Int32&nbsp;msg,&nbsp;IntPtr&nbsp;wParam,&nbsp;IntPtr&nbsp;lParam,&nbsp;Boolean&&nbsp;handled)&nbsp;  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;at&nbsp;MS.Win32.HwndWrapper.WndProc(IntPtr&nbsp;hwnd,&nbsp;Int32&nbsp;msg,&nbsp;IntPtr&nbsp;wParam,&nbsp;IntPtr&nbsp;lParam,&nbsp;Boolean&&nbsp;handled)&nbsp;  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;at&nbsp;MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object&nbsp;o)&nbsp;  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;at&nbsp;System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate&nbsp;callback,&nbsp;Object&nbsp;args,&nbsp;Boolean&nbsp;isSingleParameter)&nbsp;  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;at&nbsp;System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object&nbsp;source,&nbsp;Delegate&nbsp;callback,&nbsp;Object&nbsp;args,&nbsp;Boolean&nbsp;isSingleParameter,&nbsp;Delegate&nbsp;catchHandler)&nbsp;  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;at&nbsp;System.Windows.Threading.Dispatcher.WrappedInvoke(Delegate&nbsp;callback,&nbsp;Object&nbsp;args,&nbsp;Boolean&nbsp;isSingleParameter,&nbsp;Delegate&nbsp;catchHandler)&nbsp;  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;at&nbsp;System.Windows.Threading.Dispatcher.InvokeImpl(DispatcherPriority&nbsp;priority,&nbsp;TimeSpan&nbsp;timeout,&nbsp;Delegate&nbsp;method,&nbsp;Object&nbsp;args,&nbsp;Boolean&nbsp;isSingleParameter)&nbsp;  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;at&nbsp;System.Windows.Threading.Dispatcher.Invoke(DispatcherPriority&nbsp;priority,&nbsp;Delegate&nbsp;method,&nbsp;Object&nbsp;arg)&nbsp;  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;at&nbsp;MS.Win32.HwndSubclass.SubclassWndProc(IntPtr&nbsp;hwnd,&nbsp;Int32&nbsp;msg,&nbsp;IntPtr&nbsp;wParam,&nbsp;IntPtr&nbsp;lParam)&nbsp;  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;at&nbsp;MS.Win32.UnsafeNativeMethods.DispatchMessage(MSG&&nbsp;msg)&nbsp;  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;at&nbsp;System.Windows.Threading.Dispatcher.PushFrameImpl(DispatcherFrame&nbsp;frame)&nbsp;  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;at&nbsp;System.Windows.Threading.Dispatcher.PushFrame(DispatcherFrame&nbsp;frame)&nbsp;  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;at&nbsp;System.Windows.Threading.Dispatcher.Run()&nbsp;  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;at&nbsp;System.Windows.Application.RunDispatcher(Object&nbsp;ignore)&nbsp;  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;at&nbsp;System.Windows.Application.RunInternal(Window&nbsp;window)&nbsp;  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;at&nbsp;System.Windows.Application.Run(Window&nbsp;window)&nbsp;  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;at&nbsp;System.Windows.Application.Run()&nbsp;  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;at&nbsp;CS\_Wpf\_HowDoISamples\_For\_Debug.App.Main()&nbsp;in&nbsp;C:\Program&nbsp;Files&nbsp;(x86)\ThinkGeo\Map&nbsp;Suite&nbsp;Desktop&nbsp;Evaluation&nbsp;Edition&nbsp;3.0\Samples\CSharp&nbsp;Wpf&nbsp;How&nbsp;Do&nbsp;I&nbsp;Samples\obj\x86\Debug\App.g.cs:line&nbsp;0&nbsp;  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;at&nbsp;System.AppDomain.\_nExecuteAssembly(Assembly&nbsp;assembly,&nbsp;String[]&nbsp;args)&nbsp;  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;at&nbsp;System.AppDomain.ExecuteAssembly(String&nbsp;assemblyFile,&nbsp;Evidence&nbsp;assemblySecurity,&nbsp;String[]&nbsp;args)&nbsp;  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;at&nbsp;Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()&nbsp;  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;at&nbsp;System.Threading.ThreadHelper.ThreadStart\_Context(Object&nbsp;state)&nbsp;  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;at&nbsp;System.Threading.ExecutionContext.Run(ExecutionContext&nbsp;executionContext,&nbsp;ContextCallback&nbsp;callback,&nbsp;Object&nbsp;state)&nbsp;  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;at&nbsp;System.Threading.ThreadHelper.ThreadStart()&nbsp;  
&nbsp;&nbsp;&nbsp;InnerException:&nbsp;&nbsp;

---

<div class="post-metadata">

**Author:** ![ThinkGeo](https://community.thinkgeo.com/user_avatar/community.thinkgeo.com/thinkgeo/32/25029_2.png) [@ThinkGeo](https://community.thinkgeo.com/u/ThinkGeo)\
**Post date:** [April 8, 2010, 8:00pm UTC](https://community.thinkgeo.com/t/text-layer/1137/6 "2010-04-08T20:00:59Z")

</div>

Deep,&nbsp;  
&nbsp;&nbsp;  
&nbsp;I&nbsp;am&nbsp;a&nbsp;bit&nbsp;confused&nbsp;with&nbsp;your&nbsp;problem.&nbsp;This&nbsp;exception&nbsp;seems&nbsp;a&nbsp;new&nbsp;problem&nbsp;in&nbsp;your&nbsp;environment?&nbsp;I&nbsp;even&nbsp;did&nbsp;not&nbsp;have&nbsp;a&nbsp;chance&nbsp;to&nbsp;fix&nbsp;your&nbsp;problem&nbsp;reported&nbsp;in&nbsp;the&nbsp;email&nbsp;you&nbsp;sent&nbsp;to&nbsp;me.&nbsp;  
&nbsp;&nbsp;  
&nbsp;I&nbsp;am&nbsp;curious&nbsp;how&nbsp;and&nbsp;when&nbsp;this&nbsp;problem&nbsp;will&nbsp;happen?&nbsp;I&nbsp;doubt&nbsp;you&nbsp;change&nbsp;some&nbsp;of&nbsp;the&nbsp;code&nbsp;in&nbsp;the&nbsp;HowDoI&nbsp;samples.&nbsp;Can&nbsp;you&nbsp;have&nbsp;a&nbsp;try&nbsp;on&nbsp;some&nbsp;other&nbsp;HowDoI&nbsp;Samples&nbsp;to&nbsp;see&nbsp;if&nbsp;it&nbsp;works&nbsp;or&nbsp;if&nbsp;just&nbsp;create&nbsp;a&nbsp;very&nbsp;simple&nbsp;sample&nbsp;from&nbsp;begging&nbsp;to&nbsp;see&nbsp;if&nbsp;it&nbsp;can&nbsp;display&nbsp;maps.&nbsp;Besides,&nbsp;did&nbsp;you&nbsp;change&nbsp;the&nbsp;data&nbsp;used&nbsp;in&nbsp;this&nbsp;DrawAFeatureBasedOnAValue?&nbsp;  
&nbsp;&nbsp;  
&nbsp;Any&nbsp;all,&nbsp;this&nbsp;problem&nbsp;seems&nbsp;very&nbsp;wield,&nbsp;and&nbsp;I&nbsp;hope&nbsp;we&nbsp;can&nbsp;get&nbsp;to&nbsp;it&nbsp;soon.&nbsp;  
&nbsp;&nbsp;  
&nbsp;Thanks.&nbsp;  
&nbsp;&nbsp;  
&nbsp;Yale&nbsp;

---

<div class="post-metadata">

**Author:** ![deep](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/d/ce7236/32.png) [@deep](https://community.thinkgeo.com/u/deep)\
**Post date:** [April 8, 2010, 8:38pm UTC](https://community.thinkgeo.com/t/text-layer/1137/7 "2010-04-08T20:38:22Z")

</div>

Yale,&nbsp;  
&nbsp;&nbsp;I&nbsp;didnt&nbsp;make&nbsp;any&nbsp;changes&nbsp;in&nbsp;your&nbsp;howdoi&nbsp;samples,&nbsp;also&nbsp;i&nbsp;reinstalled&nbsp;and&nbsp;tried&nbsp;it&nbsp;out,&nbsp;the&nbsp;same&nbsp;above&nbsp;exception&nbsp;is&nbsp;thrown&nbsp;in&nbsp;wpfmap1.refresh()&nbsp;method.&nbsp;  
&nbsp;but&nbsp;yale,&nbsp;i&nbsp;don&nbsp;have&nbsp;much&nbsp;time&nbsp;to&nbsp;see&nbsp;the&nbsp;problem&nbsp;in&nbsp;howdoi&nbsp;samples,&nbsp;so&nbsp;that&nbsp;i&nbsp;sent&nbsp;a&nbsp;mail&nbsp;regarding&nbsp;my&nbsp;issue.can&nbsp;u&nbsp;plz&nbsp;fix&nbsp;that&nbsp;issue&nbsp;so&nbsp;that&nbsp;it&nbsp;can&nbsp;very&nbsp;helpful.&nbsp;so&nbsp;in&nbsp;my&nbsp;sample&nbsp;is&nbsp;there&nbsp;any&nbsp;way&nbsp;to&nbsp;bind&nbsp;the&nbsp;key&nbsp;as&nbsp;label&nbsp;to&nbsp;ploted&nbsp;icons.Is&nbsp;there&nbsp;any&nbsp;possibility&nbsp;to&nbsp;show&nbsp;my&nbsp;requirement&nbsp;in&nbsp;your&nbsp;tool.&nbsp;If&nbsp;so&nbsp;wat&nbsp;the&nbsp;right&nbsp;way&nbsp;to&nbsp;do&nbsp;like&nbsp;that???

---

<div class="post-metadata">

**Author:** ![ThinkGeo](https://community.thinkgeo.com/user_avatar/community.thinkgeo.com/thinkgeo/32/25029_2.png) [@ThinkGeo](https://community.thinkgeo.com/u/ThinkGeo)\
**Post date:** [April 8, 2010, 8:57pm UTC](https://community.thinkgeo.com/t/text-layer/1137/8 "2010-04-08T20:57:16Z")

</div>

Deep,&nbsp;  
&nbsp;&nbsp;  
&nbsp;Thanks&nbsp;for&nbsp;your&nbsp;reply.&nbsp;  
&nbsp;&nbsp;  
&nbsp;I&nbsp;am&nbsp;crazy&nbsp;busy&nbsp;recently,&nbsp;I&nbsp;am&nbsp;so&nbsp;sorry&nbsp;not&nbsp;replying&nbsp;your&nbsp;email&nbsp;in&nbsp;a&nbsp;prompt&nbsp;way.&nbsp;I&nbsp;promise&nbsp;to&nbsp;dig&nbsp;into&nbsp;this&nbsp;problem&nbsp;and&nbsp;reply&nbsp;to&nbsp;you&nbsp;via&nbsp;email&nbsp;if&nbsp;you&nbsp;want&nbsp;today.&nbsp;  
&nbsp;&nbsp;  
&nbsp;Thanks.&nbsp;  
&nbsp;&nbsp;  
&nbsp;Yale&nbsp;

---

<div class="post-metadata">

**Author:** ![deep](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/d/ce7236/32.png) [@deep](https://community.thinkgeo.com/u/deep)\
**Post date:** [April 28, 2010, 12:19am UTC](https://community.thinkgeo.com/t/text-layer/1137/9 "2010-04-28T00:19:24Z")

</div>

Hai&nbsp;Yale&nbsp;&nbsp;  
&nbsp;&nbsp;  
&nbsp;Sorry&nbsp;&nbsp;for&nbsp;delay,&nbsp;i&nbsp;sent&nbsp;u&nbsp;a&nbsp;mail&nbsp;regardng&nbsp;a&nbsp;small&nbsp;&nbsp;issue&nbsp;in&nbsp;text&nbsp;layer.&nbsp;i&nbsp;sent&nbsp;u&nbsp;that&nbsp;working&nbsp;sample,&nbsp;you&nbsp;told&nbsp;that&nbsp;will&nbsp;dig&nbsp;into&nbsp;this&nbsp;problem&nbsp;to&nbsp;solve,&nbsp;but&nbsp;i&nbsp;didnt&nbsp;get&nbsp;any&nbsp;mail,&nbsp;so&nbsp;let&nbsp;me&nbsp;know&nbsp;if&nbsp;u&nbsp;want&nbsp;more&nbsp;details&nbsp;from&nbsp;myside…&nbsp;  
&nbsp;&nbsp;  
&nbsp;Thanks&nbsp;  
&nbsp;&nbsp;  
&nbsp;deep

---

<div class="post-metadata">

**Author:** ![ThinkGeo](https://community.thinkgeo.com/user_avatar/community.thinkgeo.com/thinkgeo/32/25029_2.png) [@ThinkGeo](https://community.thinkgeo.com/u/ThinkGeo)\
**Post date:** [April 30, 2010, 12:20am UTC](https://community.thinkgeo.com/t/text-layer/1137/10 "2010-04-30T00:20:22Z")

</div>

Deep,

I&nbsp;am&nbsp;sorry&nbsp;for&nbsp;the&nbsp;delay,&nbsp;we&nbsp;are&nbsp;recently&nbsp;very&nbsp;busy&nbsp;for&nbsp;the&nbsp;May&nbsp;1st&nbsp;release&nbsp;and&nbsp;now&nbsp;we&nbsp;are&nbsp;almost&nbsp;on&nbsp;the&nbsp;edge.  
&nbsp;  
I&nbsp;think&nbsp;in&nbsp;your&nbsp;sample,&nbsp;your&nbsp;problem&nbsp;is&nbsp;you&nbsp;forget&nbsp;to&nbsp;add&nbsp;the&nbsp;column&nbsp;value&nbsp;which&nbsp;you&nbsp;want&nbsp;to&nbsp;show&nbsp;your&nbsp;text&nbsp;to&nbsp;the&nbsp;features.&nbsp;Try&nbsp;change&nbsp;following&nbsp;code:  
`if (string.Equals(key, key, StringComparison.InvariantCulture)){    feature.ColumnValues.Add("PointType", key);    feature.ColumnValues.Add("DynamicLabel", "Pie" + "You want to put text here");    pieMemoryLayer.InternalFeatures.Add("pie" + key, new Feature(BuildPiePolygon(new PointShape(longitude, latitude), 20, 10, 30)));                        // i tried to add the label layer to show label below in each icon.    //labelLayer.InternalFeatures.Add("pie" + key,new TextStyle("DynamicLabel", "Arial", 10, DrawingFontStyles.Regular, GeoColor.StandardColors.Red, 0, -12));    labelLayer.InternalFeatures.Add(feature); }`  
&nbsp;  
The&nbsp;screenshot&nbsp;probably&nbsp;will&nbsp;be:

 ![](https://community.thinkgeo.com/uploads/default/original/2X/9/96f167afd228430cf76babd97baa7794dc821b77.png)  
&nbsp;  
Any&nbsp;more&nbsp;questions&nbsp;just&nbsp;feel&nbsp;free&nbsp;to&nbsp;let&nbsp;me&nbsp;know.  
&nbsp;  
Thanks.  
&nbsp;  
Yale
