Developer's Guide - MapGuide Open Source - OSGeo
Developer's Guide - MapGuide Open Source - OSGeo
Developer's Guide - MapGuide Open Source - OSGeo
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
Function<br />
CreateLineTypeStyle()<br />
CreateLineRule()<br />
Parameter<br />
$width<br />
$height<br />
$color<br />
$lineRules<br />
$color<br />
$legendLabel<br />
$filter<br />
Description<br />
The width of the symbol (in points). Equivalent<br />
to the Width field in the Style Point dialog<br />
in Studio’s layer editor.<br />
The height of the symbol (in points). Equivalent<br />
to the Height field in the Style Point dialog<br />
in Studio’s layer editor.<br />
The color for the symbol. Equivalent to the<br />
Foreground color field in the Style Point dialog<br />
in Studio’s layer editor.<br />
One or more line rules, created by Cre-<br />
ateLineRule().<br />
The color to be applied to lines that match<br />
this rule. Equivalent to the Color field in Studio’s<br />
layer editor.<br />
The label shown beside this rule in the legend.<br />
Equivalent to the Legend Label field in<br />
Studio’s layer editor.<br />
The filter expression that determines which<br />
features match this rule. Equivalent to the<br />
Condition field in Studio’s layer editor.<br />
For more information on these settings, see the Studio Help.<br />
Example - Creating A Layer That Uses Area Rules<br />
This example shows how to create a new layer using the factory. This layer<br />
uses three area rules to theme parcels by their square footage.<br />
Example - Creating A Layer That Uses Area Rules | 63