Skip to content

Undocumented STYLE POSITION keyword #462

Open

Activity

  1. added this to the 8.0 Release milestone on Mar 8, 2021
  2. geographika commented on Mar 8, 2021

    @geographika
    MemberAuthor

    On further investigations I'm not sure if this keyword has any effect. It is read and written to Mapfiles as part of the STYLE object but I can't find any references to style->position in the code.

    I've set it in a test Mapfile and it doesn't change the styling of a point.
    I thought it may be a LABEL specific style setting but various combinations of below don't change anything to the image output.

    This may be something to remove from the codebase rather than document.

    LAYER
        NAME "center"
        TYPE POINT
        STATUS on
        CLASS
            STYLE
                COLOR 0 0 255
                SIZE 30
                WIDTH 1
                SYMBOL "circle"
            END
    
            LABEL
                TEXT "UL"
                FONT "default"
                TYPE truetype
                SIZE 10
                STYLE
                    #GEOMTRANSFORM LABELPNT
                    SYMBOL 'circle'
                    COLOR 255 0 0
                    SIZE 10
                    POSITION UL
                END
            END
    
            LABEL
                TEXT "UR"
                FONT "default"
                TYPE truetype
                SIZE 10
                STYLE
                    #GEOMTRANSFORM LABELPNT
                    SYMBOL 'circle'
                    COLOR 0 255 0
                    SIZE 20
                    POSITION UR
                END
            END
    
        END
    
        FEATURE POINTS 50 50 END END
        FEATURE POINTS 200 200 END END
    END
    

    image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      ⌂ Proxy