Changes between Initial Version and Version 1 of Ticket #3190


Ignore:
Timestamp:
Nov 2, 2009, 4:56:42 AM (15 years ago)
Author:
dmorissette
Comment:

Steve, I saw in the code that changing only the first style's params is the intended behavior.

What is your opinion about changing it to affect all styles and not the just first one?

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #3190

    • Property Cc dmorissette added
    • Property Milestone6.0 release
  • Ticket #3190 – Description

    initial v1  
    11When you define multiple Styles for a class in a layer and then you select/highlight the feature ( i did this using mapscript c#) the highlight color only seems to apply to the last style used and not the whole (combined) symbol. For example if my class is defined as :
    22
     3{{{
    34CLASS
    4                         STYLE
    5                                 COLOR 138 138 138
    6                                 SYMBOL 'triangle'
    7                                 SIZE 15
    8                         END
    9                         STYLE
    10                                 COLOR 255 0 0
    11                                 SYMBOL "point"
    12                                 SIZE 5
    13                         END
    14                 END
     5        STYLE
     6                COLOR 138 138 138
     7                SYMBOL 'triangle'
     8                SIZE 15
     9        END
     10        STYLE
     11                COLOR 255 0 0
     12                SYMBOL "point"
     13                SIZE 5
     14        END
     15END
     16}}}
    1517
    1618where triangle and point are defined as:
     19{{{
    1720 SYMBOL
    1821        NAME "triangle"
     
    3841  FILLED TRUE
    3942END
     43}}}
    4044
    4145and QUERYMAP as:
    4246
     47{{{
    4348QUERYMAP
    4449    STATUS ON
     
    4651    STYLE HILITE
    4752END
     53}}}
    4854
    4955only the "Point" symbol will be drawn in the highlight color. I would expect/like for the whole symbol to be drawn in the highlight color especially since the last symbol is usually the smallest size and sometimes its not even easily visible to the user that it has been changed/highlighted.