|
|
Styles
The final part of a vector layer definition, is the definition of it's styles. A vector layer can have multiple styles, each with it's own formula. These formulae determine which features should have which style.
Configuration<styleDefs> <styleDef id="1"> <name>OPEC and UNESCO Member</name> <formula>((OPEC == 1) AND (UNESCO == 1))</formula> <style> <fillColor>#336633</fillColor> <fillOpacity>0.7</fillOpacity> <strokeColor>#333333</strokeColor> <strokeOpacity>1</strokeOpacity> <strokeWidth>1</strokeWidth> </style> </styleDef> ... First of all, each style definition has an ID. In this case "1". This is not randomly chosen, the ID's should have continuing numbers (1, 2, 3, ...). Then for each style definition there are the following tags:
Symbol definitionsThe definition of rectangular symbols for point layers, is as follows: <symbol> <rect w="10" h="10" /> </symbol> Where w is the width, and h is the height. Both are expressed in pixels.
The definition of circular symbols for point layers, is as follows: <symbol> <circle r="10" /> </symbol> Where r is the radius of the circle, expressed in pixels.
|



