MapServer / MapServer-import

3 stars 2 forks source link

MIssing MS_FOLLOW constant in PHP MapScript #2058

Open tbonfort opened 12 years ago

tbonfort commented 12 years ago

Reporter: dmorissette Date: 2007/04/04 - 18:57

-------- Original Message --------
Subject:    [UMN_MAPSERVER-USERS] [PHPMapScript] Pb to set the angle 
property of a LabelObj
Date:   Wed, 4 Apr 2007 18:00:52 +0200
From:   Loïc MAZE <lm@GEOSPHERE.FR>
Reply-To:   Loïc MAZE <lm@GEOSPHERE.FR>
To:     MAPSERVER-USERS@LISTS.UMN.EDU

Hi all,

I have some troubles with the current version of PHPMapScript. My 
problem is very simple : I would like to set the "ANGLE" property of a 
LabelObj with the value "FOLLOW". I have searched a way to do a such 
thing but it was unsuccessful. The only thing I have found is how to set 
this property with the value "AUTO" (with the following code : 
$oLabel->set("autoangle", MS_AUTO); ).

For information, I use the latest version of MapServer and PHPMapScript.

Any information in this regard will be really appreciated.
Many thanks in advance,

Loïc
tbonfort commented 12 years ago

Author: dmorissette Date: 2007/04/04 - 18:58

I checked the source and the MS_FOLLOW constant is missing. It simply needs to
be added to php_mapscript.c.

Taking this bug.
tbonfort commented 12 years ago

Author: dmorissette Date: 2007/04/04 - 19:06

Fixed. Added MS_FOLLOW constant to PHP MapScript in CVS HEAD (future 5.0) and in
4.10 branch (will be in 4.10.2)