Issue in polygon name display

TeeChart for ActiveX, COM and ASP
Post Reply
Bhanu
Newbie
Newbie
Posts: 16
Joined: Thu May 31, 2018 12:00 am

Issue in polygon name display

Post by Bhanu » Sat Jun 23, 2018 10:00 am

Hi,

We are facing an issue in polygon name display as shown in snap shot attached. The issue is that when the size of polygon is small then polygon name does not appear, however when we zoom in or the polygon is bigger in size, the polygon name appears.

Thanks & regards,
Bhanu
PolygonNameIssue.PNG
PolygonNameIssue.PNG (44.21 KiB) Viewed 16981 times

Yeray
Site Admin
Site Admin
Posts: 9614
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: Issue in polygon name display

Post by Yeray » Mon Jun 25, 2018 8:15 am

Hello,

What series type are you using to draw these polygons?
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

Bhanu
Newbie
Newbie
Posts: 16
Joined: Thu May 31, 2018 12:00 am

Re: Issue in polygon name display

Post by Bhanu » Mon Jun 25, 2018 12:49 pm

Hi Yeray,

Thanks for your reply. We are currently using map series for polygon drawing.

Thanks & regards,
Bhanu.

Yeray
Site Admin
Site Admin
Posts: 9614
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: Issue in polygon name display

Post by Yeray » Wed Jun 27, 2018 8:47 am

Hello,

By default, the TMapSeries has "MapMarks.AutoSize" property set to "True". This changes the font size trying to fit the text in the shape bounds, with a minimum size of 5.
If you set the "MapMarks.AutoSize" property to "False", the "Marks.Font.Size" will be respected and the marks will be shown if they fit in the shape bounds.
If you want to draw the the marks out of the shape bounds, you can draw the text manually at OnAfterDraw event.
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

Post Reply