Opened 15 years ago

Last modified 13 years ago

#3071 assigned defect

Bug with label offsetY and offsetX for point layer

Reported by: kfaschoway Owned by: sdlime
Priority: normal Milestone: 6.0 release
Component: MapServer C Library Version: 5.2
Severity: normal Keywords:
Cc: tbonfort

Description

When setting label options for point layer:

offsetY is not being applied to the drawn label when label position is either Center Left (MS_CL) or Center Right (MS_CR).

offsetX is not being applied to the drawn label when label position is either Upper Center (MS_UC) or Lower Center (MS_LC).

Change History (3)

comment:1 by sdlime, 15 years ago

Milestone: 5.4.2 release
Status: newassigned

I've got a feeling I know what's up and probably how to fix... Thanks for pointing this out. -Steve

comment:2 by sdlime, 15 years ago

Cc: tbonfort added

comment:3 by tbonfort, 13 years ago

Milestone: 5.6 release6.0 release

get_metrics_line() is not applying the ox/oy offset in those cases, but patching them in does not result in correct results (when no offset is set on the label).

it seems like we override the supplied offsets given in the case of CL CR UC and LC so that the text is effectively centered around the label point.

Note: See TracTickets for help on using tickets.