styleObj
final class styleObj (View source)
Instances of styleObj are always embedded inside a classObj
or labelObj
.
Properties
float | $angle | ||
int | $antialias | ||
colorObj | $backgroundcolor | ||
colorObj | $color | ||
float | $maxsize | ||
float | $maxvalue | ||
float | $maxwidth | ||
float | $minsize | ||
float | $minvalue | ||
float | $minwidth | ||
int | $offsetx | ||
int | $offsety | ||
int | $opacity | only supported for the AGG driver |
|
colorObj | $outlinecolor | ||
string | $rangeitem | ||
float | $size | ||
int | $symbol | ||
string | $symbolname | ||
float | $width |
Methods
The second argument 'style' is optional. If given, the new style created will be a copy of the style passed as argument.
Saves the object to a string. Provides the inverse option for updateFromString.
Free the object properties and break the internal references.
Get the attribute binding for a specfiled style property. Returns NULL if there is no binding for this property.
No description
Remove the attribute binding for a specfiled style property.
Set object property to a new value.
Set the attribute binding for a specfiled style property.
No description
Update a style from a string snippet. Returns MS_SUCCESS/MS_FAILURE.
Details
final
__construct(labelObj $label, styleObj $style)
The second argument 'style' is optional. If given, the new style created will be a copy of the style passed as argument.
final string
convertToString()
Saves the object to a string. Provides the inverse option for updateFromString.
final void
free()
Free the object properties and break the internal references.
Note that you have to unset the php variable to free totally the resources.
final string
getBinding(mixed $stylebinding)
Get the attribute binding for a specfiled style property. Returns NULL if there is no binding for this property.
.. code-block:: php $oStyle->setbinding(MS_STYLE_BINDING_COLOR, "FIELD_NAME_COLOR"); echo $oStyle->getbinding(MS_STYLE_BINDING_COLOR); // FIELD_NAME_COLOR
final string
getGeomTransform()
No description
final int
removeBinding(mixed $stylebinding)
Remove the attribute binding for a specfiled style property.
Added in MapServer 5.0. .. code-block:: php $oStyle->removebinding(MS_STYLE_BINDING_COLOR);
final int
set(string $property_name, $new_value)
Set object property to a new value.
final int
setBinding(mixed $stylebinding, string $value)
Set the attribute binding for a specfiled style property.
Added in MapServer 5.0. .. code-block:: php $oStyle->setbinding(MS_STYLE_BINDING_COLOR, "FIELD_NAME_COLOR"); This would bind the color parameter with the data (ie will extract the value of the color from the field called "FIELD_NAME_COLOR"
final int
setGeomTransform(string $value)
No description
final int
updateFromString(string $snippet)
Update a style from a string snippet. Returns MS_SUCCESS/MS_FAILURE.