Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Undocumented STYLE POSITION keyword #462

Open
geographika opened this issue Mar 2, 2021 · 1 comment
Open

Undocumented STYLE POSITION keyword #462

geographika opened this issue Mar 2, 2021 · 1 comment
Milestone

Comments

@geographika
Copy link
Member

@geographika
Copy link
Member Author

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
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants