ThinkGeo.com    |     Documentation    |     Premium Support

DrawTextWithWorldCoordinate method & LayerDrawn event

Hello,


I'm encoutering problems with the DrawTextWithWorldCoordinate method :


When I draw an area and write a text with the same coordinates, the text is not written at the same 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); 


 


Furthermore, the WpfMap.layer_drawn() event seems not to be thrown any more.


Thanks for your response,

guillaume.



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

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