Opened 13 years ago

Closed 13 years ago

Last modified 12 years ago

#3920 closed defect (fixed)

PHP MapScript opacity property of StyleObj no longer works

Reported by: iap Owned by: aboudreault
Priority: normal Milestone:
Component: MapScript-PHP Version: 6.0
Severity: normal Keywords:
Cc: aboudreault

Description

$styleObj->set('opacity', 25); does not work, in my test case I apply it to a polygon geometry and the opacity does not change (visually on the map); thought echo $styleObj->opacity reports '25'.

This works in 5.6.6. Does not in MapServer version 6.0.0 (Ubuntu 10.04)

OUTPUTFORMAT
    NAME 'jpeg'
    DRIVER AGG/JPEG
    IMAGEMODE RGB
    EXTENSION "jpg"
    MIMETYPE "image/jpeg"
    FORMATOPTION "QUALITY=90"
END

Change History (5)

comment:1 by aboudreault, 13 years ago

Does it work if you set the OPACITY in the mapfile directly?

comment:2 by iap, 13 years ago

Yes, If I define my styles from a mapfile it works. Also things like color, size, outlinecolor work, just the opacity property stopped working in 6.0.

comment:3 by aboudreault, 13 years ago

Resolution: fixed
Status: newclosed

Fixed and committed in r11825.

comment:4 by iap, 12 years ago

This fix was not applied to 6.0.2 (tested with ubuntugis-unstable)

comment:5 by aboudreault, 12 years ago

Backported in 6.0 in r13154.

Note: See TracTickets for help on using tickets.