[mapserver-users] Label position not as expected version 7.0.x

Ian Walberg ian.walberg at airborne.aero
Mon Jan 2 09:58:30 PST 2017


Thomas.

Hmm, I do not understand why the change was made from the older versions.

So the vertical ‘center’ position is actually align the text baseline with the point position and not the ‘center’ of the text as previously?

Regards

Ian

From: thomas bonfort [mailto:thomas.bonfort at gmail.com]
Sent: Monday, January 2, 2017 9:41 AM
To: Ian Walberg <ian.walberg at airborne.aero>; mapserver-users at lists.osgeo.org; mapserver-dev at lists.osgeo.org
Subject: Re: [mapserver-users] Label position not as expected version 7.0.x

Ian,
It's the intented effect, with the label baseline aligned with the symbol baseline. You can probably nudge it manually with an offset if you need to.

--
thomas

On Mon, Jan 2, 2017 at 6:30 PM Ian Walberg <ian.walberg at airborne.aero<mailto:ian.walberg at airborne.aero>> wrote:
Folks,

Happy New Year to everyone.

Using version 7.0.x we are not seeing the label positon as we had for previous versions for mapserver.

The vertical label position now appears to not center naturally on the text but is towards the bottom of the center line.

Are we missing something?

Thanks

Ian

MAP

  EXTENT 0.0 0.0 10.0 10.0
  SIZE 1024 720
  IMAGECOLOR 140 140 140

  SYMBOL
    NAME 'City'
    TYPE ELLIPSE
    POINTS 1 1 END
    FILLED true
  END

  LAYER

    NAME "Label position"
    TYPE POINT
    STATUS DEFAULT

    FEATURE
        POINTS
          1.00 5.00
          1.00 8.00
        END # POINTS
    END # FEATURE

    CLASS
      TEXT 'Label text'
      STYLE
        SYMBOL 'City'
        SIZE 12
        COLOR 255 255 255
      END # STYLE

      LABEL
        TYPE BITMAP
        SIZE 30
        COLOR 255 255 255
        POSITION CR
      END # LABEL

    END # CLASS

  END # LAYER

END # MAP
_______________________________________________
mapserver-users mailing list
mapserver-users at lists.osgeo.org<mailto:mapserver-users at lists.osgeo.org>
http://lists.osgeo.org/mailman/listinfo/mapserver-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20170102/9164853f/attachment.htm>


More information about the MapServer-users mailing list