Opened 14 years ago
Last modified 14 years ago
#3192 new defect
Mapscript badly process the dynamic colors COLOR [mycolor] in a style section when it is not in first position of the styles
Reported by: | sdesplat | Owned by: | sdlime |
---|---|---|---|
Priority: | normal | Milestone: | 5.6 release |
Component: | MapServer C Library | Version: | 5.4 |
Severity: | normal | Keywords: | COLOR [mycolor] |
Cc: |
Description
Dynamic color only works when it is set in first position in a style section:
CLASS
STYLE
COLOR [RGB] WIDTH 6
END STYLE
COLOR 100 100 100 size 4
END
END
...But the following settings don't work:
CLASS
STYLE
COLOR 100 100 100 size 6
END STYLE
COLOR [RGB] WIDTH 4
END
END
The aim of those 2 styles were to set a dynamic color in a line with an outline dynamic color:
CLASS
STYLE
COLOR [RGB_OUTLINE] WIDTH 6
END STYLE
COLOR [RGB] WIDTH 4
END
END
That previous sample doesn't work because COLOR[RGB] is not in the first style section.
Sorry, bad copy paste; you should read:
Dynamic color only works when it is set in first position in a style section:
...But the following settings don't work:
The aim of those 2 styles were to set a dynamic color in a line with an outline dynamic color:
That previous sample doesn't work because COLOR[RGB] is not in the first style section.