source:
trunk/workshop-routing-foss4g/web/OpenLayers/lib/OpenLayers/Symbolizer.js
@
76
Revision 76, 1.5 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 | * Class: OpenLayers.Symbolizer | |
8 | * Base class representing a symbolizer used for feature rendering. | |
9 | */ | |
10 | OpenLayers.Symbolizer = OpenLayers.Class({ | |
11 | ||
12 | ||
13 | /** | |
14 | * APIProperty: zIndex | |
15 | * {Number} The zIndex determines the rendering order for a symbolizer. | |
16 | * Symbolizers with larger zIndex values are rendered over symbolizers | |
17 | * with smaller zIndex values. Default is 0. | |
18 | */ | |
19 | zIndex: 0, | |
20 | ||
21 | /** | |
22 | * Constructor: OpenLayers.Symbolizer | |
23 | * Instances of this class are not useful. See one of the subclasses. | |
24 | * | |
25 | * Parameters: | |
26 | * config - {Object} An object containing properties to be set on the | |
27 | * symbolizer. Any documented symbolizer property can be set at | |
28 | * construction. | |
29 | * | |
30 | * Returns: | |
31 | * A new symbolizer. | |
32 | */ | |
33 | initialize: function(config) { | |
34 | OpenLayers.Util.extend(this, config); | |
35 | }, | |
36 | ||
37 | /** | |
38 | * APIMethod: clone | |
39 | * Create a copy of this symbolizer. | |
40 | * | |
41 | * Returns a symbolizer of the same type with the same properties. | |
42 | */ | |
43 | clone: function() { | |
44 | var Type = eval(this.CLASS_NAME); | |
45 | return new Type(OpenLayers.Util.extend({}, this)); | |
46 | }, | |
47 | ||
48 | CLASS_NAME: "OpenLayers.Symbolizer" | |
49 | ||
50 | }); | |
51 |
Note: See TracBrowser
for help on using the repository browser.