ThinkGeo.com    |     Documentation    |     Premium Support

Issue with label and 0,0 points

Hello,


I've some label rendered at an incorrect place.

I'm using 3.1.302 and this code in metric mode:


PointShape pt = new PointShape();

pt.X = 10000;  

pt.Y = 10000;  

Columns.Add("Name", "Pt1");

l.EditTools.Add(pt, Columns);


pt = new PointShape();

pt.X = 10010;  

pt.Y = 10010;  

Columns.Add("Name", "Pt2");

l.EditTools.Add(pt, Columns);


pt = new PointShape();

pt.X = 0;  

pt.Y = 0;  

Columns.Add("Name", "Pt3");

l.EditTools.Add(pt, Columns);


If I set currentextent to see pt1 & Pt2 only, then the label of Pt3 is displayed very close to Pt2; which is of course not what I want.



Please ignore … my error. 
  
 Patrick.

Patrick,


I try to recreate your problem, but I found the result is not like you said.


The first screen-shot is contains all three points that the current extent is {-10503.3938461538,16898.08,25508.44,-6817.92}


The pt1 is overlap the pt2, so you can not see the pt2. The distance between pt3  and pt1 is 10000, but the distance between pt1 and pt2 is just 100, so pt1 and pt2 is overlapping.



If you keep zoom in many times, you can see the second screen-shot that the current extent is {9947.28378496307,10043.6888219924,10077.9336579685,9957.64787219144}, at this time, pt3 is out of screen, so you only can see pt1 and pt2.



Please let me know if I am not clear.


Thanks


James