ThinkGeo.com    |     Documentation    |     Premium Support

TextStyle Setting for label placement

Generally, it seems that the polygon labels are labeling on the centroid, is there a setting that will label the viewable portion of the polygon if the centroid is off-screen?  I have attached two images as a sample.  In centroidlabel.bmp, oldham and potter counties centroid is visible and so is the label.  In centroidlabeloffsceen.bmp, I panned to enough to move the centroid off screen and now the label is gone.


I'm sure this functionality can be build in a custom layer, but I wanted to verify there was no built in methods to handle this.




Thanks,


Ed



Ed, 
  
 Thanks for your post and images showing us the problem which would be very easy to understand. 
  
 Unfortunately, there is no built-in API which can adjust the labeling position from the centroid to the boundary when the centroid is out of the current view. 
  
 While besides rewrite your own labeling logic, we also provided a properties called LabelPositions to change the labeling positions, while it may cause the first on-screen case not expected. 
  
 Thanks. 
  
 Yale