[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.Point |
---|
| 12 | * A symbolizer used to render point features. |
---|
| 13 | */ |
---|
| 14 | OpenLayers.Symbolizer.Point = 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 | * APIProperty: pointRadius |
---|
| 64 | * {Number} Pixel point radius. |
---|
| 65 | */ |
---|
| 66 | pointRadius: null, |
---|
| 67 | |
---|
| 68 | /** |
---|
| 69 | * APIProperty: externalGraphic |
---|
| 70 | * {String} Url to an external graphic that will be used for rendering |
---|
| 71 | * points. |
---|
| 72 | */ |
---|
| 73 | externalGraphic: null, |
---|
| 74 | |
---|
| 75 | /** |
---|
| 76 | * APIProperty: graphicWidth |
---|
| 77 | * {Number} Pixel width for sizing an external graphic. |
---|
| 78 | */ |
---|
| 79 | graphicWidth: null, |
---|
| 80 | |
---|
| 81 | /** |
---|
| 82 | * APIProperty: graphicHeight |
---|
| 83 | * {Number} Pixel height for sizing an external graphic. |
---|
| 84 | */ |
---|
| 85 | graphicHeight: null, |
---|
| 86 | |
---|
| 87 | /** |
---|
| 88 | * APIProperty: graphicOpacity |
---|
| 89 | * {Number} Opacity (0-1) for an external graphic. |
---|
| 90 | */ |
---|
| 91 | graphicOpacity: null, |
---|
| 92 | |
---|
| 93 | /** |
---|
| 94 | * APIProperty: graphicXOffset |
---|
| 95 | * {Number} Pixel offset along the positive x axis for displacing an |
---|
| 96 | * external graphic. |
---|
| 97 | */ |
---|
| 98 | graphicXOffset: null, |
---|
| 99 | |
---|
| 100 | /** |
---|
| 101 | * APIProperty: graphicYOffset |
---|
| 102 | * {Number} Pixel offset along the positive y axis for displacing an |
---|
| 103 | * external graphic. |
---|
| 104 | */ |
---|
| 105 | graphicYOffset: null, |
---|
| 106 | |
---|
| 107 | /** |
---|
| 108 | * APIProperty: rotation |
---|
| 109 | * {Number} The rotation of a graphic in the clockwise direction about its |
---|
| 110 | * center point (or any point off center as specified by |
---|
| 111 | * <graphicXOffset> and <graphicYOffset>). |
---|
| 112 | */ |
---|
| 113 | rotation: null, |
---|
| 114 | |
---|
| 115 | /** |
---|
| 116 | * APIProperty: graphicName |
---|
| 117 | * {String} Named graphic to use when rendering points. Supported values |
---|
| 118 | * include "circle", "square", "star", "x", "cross", and "triangle". |
---|
| 119 | */ |
---|
| 120 | graphicName: null, |
---|
| 121 | |
---|
| 122 | /** |
---|
| 123 | * Constructor: OpenLayers.Symbolizer.Point |
---|
| 124 | * Create a symbolizer for rendering points. |
---|
| 125 | * |
---|
| 126 | * Parameters: |
---|
| 127 | * config - {Object} An object containing properties to be set on the |
---|
| 128 | * symbolizer. Any documented symbolizer property can be set at |
---|
| 129 | * construction. |
---|
| 130 | * |
---|
| 131 | * Returns: |
---|
| 132 | * A new point symbolizer. |
---|
| 133 | */ |
---|
| 134 | initialize: function(config) { |
---|
| 135 | OpenLayers.Symbolizer.prototype.initialize.apply(this, arguments); |
---|
| 136 | }, |
---|
| 137 | |
---|
| 138 | CLASS_NAME: "OpenLayers.Symbolizer.Point" |
---|
| 139 | |
---|
| 140 | }); |
---|
| 141 | |
---|