source:
trunk/workshop-routing-foss4g/web/OpenLayers/lib/OpenLayers/Symbolizer/Text.js
@
76
Revision 76, 1.6 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.Text |
12 | * A symbolizer used to render text labels for features. |
13 | */ |
14 | OpenLayers.Symbolizer.Text = OpenLayers.Class(OpenLayers.Symbolizer, { |
15 | |
16 | /** |
17 | * APIProperty: label |
18 | * {String} The text for the label. |
19 | */ |
20 | label: null, |
21 | |
22 | /** |
23 | * APIProperty: fontFamily |
24 | * {String} The font family for the label. |
25 | */ |
26 | fontFamily: null, |
27 | |
28 | /** |
29 | * APIProperty: fontSize |
30 | * {String} The font size for the label. |
31 | */ |
32 | fontSize: null, |
33 | |
34 | /** |
35 | * APIProperty: fontWeight |
36 | * {String} The font weight for the label. |
37 | */ |
38 | fontWeight: null, |
39 | |
40 | /** |
41 | * Property: fontStyle |
42 | * {String} The font style for the label. |
43 | */ |
44 | fontStyle: null, |
45 | |
46 | /** |
47 | * Constructor: OpenLayers.Symbolizer.Text |
48 | * Create a symbolizer for rendering text labels. |
49 | * |
50 | * Parameters: |
51 | * config - {Object} An object containing properties to be set on the |
52 | * symbolizer. Any documented symbolizer property can be set at |
53 | * construction. |
54 | * |
55 | * Returns: |
56 | * A new text symbolizer. |
57 | */ |
58 | initialize: function(config) { |
59 | OpenLayers.Symbolizer.prototype.initialize.apply(this, arguments); |
60 | }, |
61 | |
62 | CLASS_NAME: "OpenLayers.Symbolizer.Text" |
63 | |
64 | }); |
65 |
Note: See TracBrowser
for help on using the repository browser.