[mapserver-users] Labels colliding with symbols

Steve Lime sdlime at gmail.com
Tue Feb 16 17:41:42 PST 2021


Hmmm... Point symbols are automatically considered as part of label
placement and collision detection. Since they are drawn first, their
placement is cached and labels are placed around them. Can you share
specifics on your layers and symbols - perhaps a small test case? --Steve

On Tue, Feb 16, 2021 at 4:28 PM Iljya Kalai <iljya.kalai at gmail.com> wrote:

> Hi,
>
> On my map, labels sometimes overlap symbols. Is there a way to avoid this,
> or are only label/label conflicts avoided? I tried both CC and AUTO for
> LAYER::CLASS::LABEL::POSITION.
>
> https://i.imgur.com/C9Ir7dA.png
>
> Thanks!
> Iljya
>
>
> *# *Map file extract
> ...
> LAYER
>     NAME "LINE"
>     TYPE LINE
>     CLASS
>       STYLE
>         COLOR 0 0 0
>         WIDTH 1
>       END
>       LABEL
>         COLOR 150 150 150
>         TYPE truetype
>         SIZE 10
>         ANGLE AUTO
>         POSITION CC
>         TEXT "hello"
>       END
>     END
>   END
>
> LAYER
>     NAME "SYMBOLS"
>     TYPE POINT
>     ...
>     CLASS
>         STYLE
>           SYMBOL "ABC"
>        END
>     END
> END
> ...
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/mapserver-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20210216/05afdfc5/attachment.html>


More information about the mapserver-users mailing list