source:
trunk/workshop-routing-foss4g/web/OpenLayers/lib/OpenLayers/Symbolizer/Polygon.js
@
76
Revision 76, 2.1 KB checked in by djay, 12 years ago (diff) | |
---|---|
|
Line | |
---|---|
1 | /* Copyright (c) 2006-2010 by OpenLayers Contributors (see authors.txt for |
2 | * full list of contributors). Published under the Clear BSD license. |
3 | * See http://svn.openlayers.org/trunk/openlayers/license.txt for the |
4 | * full text of the license. */ |
5 | |
6 | /** |
7 | * @requires OpenLayers/Symbolizer.js |
8 | */ |
9 | |
10 | /** |
11 | * Class: OpenLayers.Symbolizer.Polygon |
12 | * A symbolizer used to render line features. |
13 | */ |
14 | OpenLayers.Symbolizer.Polygon = OpenLayers.Class(OpenLayers.Symbolizer, { |
15 | |
16 | /** |
17 | * APIProperty: strokeColor |
18 | * {String} Color for line stroke. This is a RGB hex value (e.g. "#ff0000" |
19 | * for red). |
20 | */ |
21 | strokeColor: null, |
22 | |
23 | /** |
24 | * APIProperty: strokeOpacity |
25 | * {Number} Stroke opacity (0-1). |
26 | */ |
27 | strokeOpacity: null, |
28 | |
29 | /** |
30 | * APIProperty: strokeWidth |
31 | * {Number} Pixel stroke width. |
32 | */ |
33 | strokeWidth: null, |
34 | |
35 | /** |
36 | * APIProperty: strokeLinecap |
37 | * {String} Stroke cap type ("butt", "round", or "square"). |
38 | */ |
39 | strokeLinecap: null, |
40 | |
41 | /** |
42 | * Property: strokeDashstyle |
43 | * {String} Stroke dash style according to the SLD spec. Note that the |
44 | * OpenLayers values for strokeDashstyle ("dot", "dash", "dashdot", |
45 | * "longdash", "longdashdot", or "solid") will not work in SLD, but |
46 | * most SLD patterns will render correctly in OpenLayers. |
47 | */ |
48 | strokeDashstyle: null, |
49 | |
50 | /** |
51 | * APIProperty: fillColor |
52 | * {String} RGB hex fill color (e.g. "#ff0000" for red). |
53 | */ |
54 | fillColor: null, |
55 | |
56 | /** |
57 | * APIProperty: fillOpacity |
58 | * {Number} Fill opacity (0-1). |
59 | */ |
60 | fillOpacity: null, |
61 | |
62 | /** |
63 | * Constructor: OpenLayers.Symbolizer.Polygon |
64 | * Create a symbolizer for rendering polygons. |
65 | * |
66 | * Parameters: |
67 | * config - {Object} An object containing properties to be set on the |
68 | * symbolizer. Any documented symbolizer property can be set at |
69 | * construction. |
70 | * |
71 | * Returns: |
72 | * A new polygon symbolizer. |
73 | */ |
74 | initialize: function(config) { |
75 | OpenLayers.Symbolizer.prototype.initialize.apply(this, arguments); |
76 | }, |
77 | |
78 | CLASS_NAME: "OpenLayers.Symbolizer.Polygon" |
79 | |
80 | }); |
81 |
Note: See TracBrowser
for help on using the repository browser.