phpmapserver

The setHex method of PHP MapScript doesn't work


I'm using PHP MapScript 6.4 to interact with my Mapfile. I try to use the setHex() colorObj method like that:

$oStyle->color->setHex($color);

Where $color is an hexadecimal value as we can see in my logs setHex() error

But regarding the MapScript https://mapserver.org/mapscript/php/phpmapscript.html#colorObj I can use setHex() method.

It works perfectly fine with $oStyle->color->setRGB(255,255,255); for example, so why not setHex()?

I'm using MapScript 6.4, I have looked at the 6.0.1 release documentation and the setHex() method exists.


Solution

  • thanks for using MapServer ! Here are some important points:

    Please also note:

    Thanks for using MapServer. Happy (fast) mapserving!

    -Jeff McKenna