Opened 12 years ago

Closed 12 years ago

Last modified 12 years ago

#4249 closed enhancement (duplicate)

Improve default label placement for "POSITION auto"

Reported by: olt Owned by: sdlime
Priority: normal Milestone:
Component: MapServer C Library Version: svn-trunk (development)
Severity: normal Keywords:
Cc: olt

Description

With POSITION auto, MapServer tries to place each label at different positions until if finds enough free space. It starts with UL (upper/left) even if there is space for UC (upper/center) which would look much better IMO.

I changed the order to the following and the results are much better, again IMO. Line 2578 in mapdraw.c

positions[0]=MS_UC; positions[1]=MS_LC; positions[2]=MS_UR; positions[3]=MS_CR; positions[4]=MS_LR; positions[5]=MS_UL; positions[6]=MS_CL; positions[7]=MS_LL;

See attached images.

Attachments (2)

label-placement-auto-new.png (123.9 KB ) - added by olt 12 years ago.
label-placement-auto.png (124.6 KB ) - added by olt 12 years ago.

Download all attachments as: .zip

Change History (4)

by olt, 12 years ago

by olt, 12 years ago

Attachment: label-placement-auto.png added

comment:1 by tbonfort, 12 years ago

Resolution: duplicate
Status: newclosed

duplicates #4242

comment:2 by olt, 12 years ago

Oh, my fault. I searched for "placement" and not "position" when I checked for similar tickets.

Note: See TracTickets for help on using tickets.