# DrawTextWithWorldCoordinate method & LayerDrawn event

**URL:** <https://community.thinkgeo.com/t/drawtextwithworldcoordinate-method-layerdrawn-event/183>\
**Category:** WinForms\
**Created:** [January 26, 2009, 4:07am UTC](https://community.thinkgeo.com/t/drawtextwithworldcoordinate-method-layerdrawn-event/183 "2009-01-26T04:07:57Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Guillaume](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/g/c67d28/32.png) [@Guillaume](https://community.thinkgeo.com/u/Guillaume)\
**Post date:** [January 26, 2009, 4:07am UTC](https://community.thinkgeo.com/t/drawtextwithworldcoordinate-method-layerdrawn-event/183/1 "2009-01-26T04:07:57Z")

</div>

Hello,

I'm&nbsp;encoutering&nbsp;problems&nbsp;with&nbsp;the&nbsp;DrawTextWithWorldCoordinate&nbsp;method&nbsp;:

When&nbsp;I&nbsp;draw&nbsp;an&nbsp;area&nbsp;and&nbsp;write&nbsp;a&nbsp;text&nbsp;with&nbsp;the&nbsp;same&nbsp;coordinates,&nbsp;the&nbsp;text&nbsp;is&nbsp;not&nbsp;written&nbsp;at&nbsp;the&nbsp;same&nbsp;location

` var upperLeft = new PointShape(x, y);  var lowerRight = new PointShape(x + ioHalfHeight, y - ioHalfHeight);  var io = new RectangleShape(upperLeft, lowerRight);   geo.DrawArea(io, new GeoPen(GeoColor.FromHtml("#000000")), new GeoSolidBrush(GeoColor.FromHtml("#FFFFFF")), DrawingLevel.LevelOne);geo.DrawTextWithWorldCoordinate("text", new GeoFont("arial", 12, DrawingFontStyles.Underline), new GeoSolidBrush(GeoColor.FromHtml("#000000")), x, y, DrawingLevel.LevelTwo); `

&nbsp;

Furthermore,&nbsp;the&nbsp;WpfMap.layer\_drawn()&nbsp;event&nbsp;seems&nbsp;not&nbsp;to&nbsp;be&nbsp;thrown&nbsp;any&nbsp;more.

Thanks&nbsp;for&nbsp;your&nbsp;response,  
  
guillaume.

---

<div class="post-metadata">

**Author:** ![Guillaume](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/g/c67d28/32.png) [@Guillaume](https://community.thinkgeo.com/u/Guillaume)\
**Post date:** [January 26, 2009, 4:52am UTC](https://community.thinkgeo.com/t/drawtextwithworldcoordinate-method-layerdrawn-event/183/2 "2009-01-26T04:52:09Z")

</div>

I&nbsp;forgot&nbsp;to&nbsp;say&nbsp;that&nbsp;the&nbsp;DrawTextWithWorldCoordinate&nbsp;method&nbsp;worked&nbsp;good&nbsp;with&nbsp;beta&nbsp;1.&nbsp;  
&nbsp;&nbsp;  
&nbsp;Guillaume.

---

<div class="post-metadata">

**Author:** ![Ben](https://community.thinkgeo.com/user_avatar/community.thinkgeo.com/ben/32/25720_2.png) [@Ben](https://community.thinkgeo.com/u/Ben)\
**Post date:** [February 1, 2009, 4:11am UTC](https://community.thinkgeo.com/t/drawtextwithworldcoordinate-method-layerdrawn-event/183/3 "2009-02-01T04:11:33Z")

</div>

Guillaume,&nbsp;  
&nbsp;&nbsp;  
&nbsp;This&nbsp;is&nbsp;a&nbsp;bug&nbsp;and&nbsp;thanks&nbsp;for&nbsp;reporting.&nbsp;We&nbsp;will&nbsp;fix&nbsp;it&nbsp;in&nbsp;the&nbsp;next&nbsp;release.&nbsp;&nbsp;  
&nbsp;&nbsp;  
&nbsp;Thanks,&nbsp;  
&nbsp;&nbsp;  
&nbsp;Ben.
