source:
trunk/workshop-routing-foss4g/web/OpenLayers/lib/OpenLayers/Symbolizer/Line.js
@
76
Revision 76, 1.9 KB checked in by djay, 12 years ago (diff) | |
---|---|
|
Rev | Line | |
---|---|---|
[76] | 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.Line | |
12 | * A symbolizer used to render line features. | |
13 | */ | |
14 | OpenLayers.Symbolizer.Line = 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 | * Constructor: OpenLayers.Symbolizer.Line | |
52 | * Create a symbolizer for rendering lines. | |
53 | * | |
54 | * Parameters: | |
55 | * config - {Object} An object containing properties to be set on the | |
56 | * symbolizer. Any documented symbolizer property can be set at | |
57 | * construction. | |
58 | * | |
59 | * Returns: | |
60 | * A new line symbolizer. | |
61 | */ | |
62 | initialize: function(config) { | |
63 | OpenLayers.Symbolizer.prototype.initialize.apply(this, arguments); | |
64 | }, | |
65 | ||
66 | CLASS_NAME: "OpenLayers.Symbolizer.Line" | |
67 | ||
68 | }); | |
69 |
Note: See TracBrowser
for help on using the repository browser.