[mapserver-users] unable to set symbol in php?
Daniel Morissette
morissette at dmsolutions.ca
Wed Jun 19 11:11:05 PDT 2002
Which version of PHP MapScript?
In version 3.6, you can set a symbol by name using
$class->set("symbolname", "star");
or overlaysymbol using:
$class->set("overlaysymbolname", "star");
This is new in 3.6 and wasn't there in 3.5
Daniel
Pushkar Pradhan wrote:
>
> I'm using php/mapsc. and unable to set a symbol for a class using a name.
> I can successfully create a symbol for the class using an integer type. If
> anybody knows the soln. please let me know. Thanks,
>
> related .map file:
> METADATA
> "DESCRIPTION" "Cercla Sites"
> "Colors" "64-66"
> "Symbol" "1"
> END
>
> LABELITEM "Npl"
> CLASSITEM "Npl"
>
> code:
> $symbolName = $tmp->getMetaData("Symbol");
> $status = $cl[$c]->set("symbol", $symbolName);
> $status = $cl[$c]->set("size", 15);
>
> $cl[$c] is the class created dynamically.
> If $symbolName is a no. (like in this example - 1) the symbol shows up,
> but if I pass the name no symbol appears.
>
> related sym file:
> #2
> Symbol
> Name 'star' # also tried "star"
> .
> .
> END
>
> -Pushkar S. Pradhan
More information about the MapServer-users
mailing list