Document rotation property for point symbolizers.

git-svn-id: http://svn.openlayers.org/trunk/openlayers@9932 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
Tim Schaub
2010-01-05 22:13:29 +00:00
parent f6b00d7ced
commit bae2fa59ed
2 changed files with 14 additions and 12 deletions
+13 -12
View File
@@ -1,13 +1,8 @@
<html xmlns="http://www.w3.org/1999/xhtml"> <html xmlns="http://www.w3.org/1999/xhtml">
<head> <head>
<title>OpenLayers Styles Rotation Example</title> <title>OpenLayers Styles Rotation Example</title>
<style type="text/css"> <link rel="stylesheet" href="../theme/default/style.css" type="text/css" />
#map { <link rel="stylesheet" href="style.css" type="text/css" />
width: 800px;
height: 475px;
border: 1px solid black;
}
</style>
<script src="../lib/OpenLayers.js" type="text/javascript"></script> <script src="../lib/OpenLayers.js" type="text/javascript"></script>
<script type="text/javascript"> <script type="text/javascript">
@@ -76,10 +71,16 @@
</head> </head>
<body onload="init()"> <body onload="init()">
<h1 id="title">Rotation Style Example</h1> <h1 id="title">Rotation Style Example</h1>
<p id="shortdesc">To style point features with rotation, use the rotation <p id="shortdesc">
property of the symbolizer. The center of the rotation is the point of the Use the rotation property of a point symbolizer to rotate
image specified by graphicXOffset and graphicYOffset.</p> point symbolizers.
<div id="map"></div> </p>
<div id="docs"/> <div id="map" class="smallmap"></div>
<div id="docs">
To style point features with rotation, use the rotation property of the
symbolizer. The center of the rotation is the point of the image
specified by graphicXOffset and graphicYOffset. The rotation is
specified in degrees clockwise.
</div>
</body> </body>
</html> </html>
+1
View File
@@ -339,6 +339,7 @@ OpenLayers.Feature.Vector = OpenLayers.Class(OpenLayers.Feature, {
* graphicOpacity - {Number} Opacity (0-1) for an external graphic. * graphicOpacity - {Number} Opacity (0-1) for an external graphic.
* graphicXOffset - {Number} Pixel offset along the positive x axis for displacing an external graphic. * graphicXOffset - {Number} Pixel offset along the positive x axis for displacing an external graphic.
* graphicYOffset - {Number} Pixel offset along the positive y axis for displacing an external graphic. * graphicYOffset - {Number} Pixel offset along the positive y axis for displacing an external graphic.
* rotation - {Number} For point symbolizers, this is the rotation of a graphic in the clockwise direction about its center point (or any point off center as specified by graphicXOffset and graphicYOffset).
* graphicZIndex - {Number} The integer z-index value to use in rendering. * graphicZIndex - {Number} The integer z-index value to use in rendering.
* graphicName - {String} Named graphic to use when rendering points. Supported values include "circle" (default), * graphicName - {String} Named graphic to use when rendering points. Supported values include "circle" (default),
* "square", "star", "x", "cross", "triangle". * "square", "star", "x", "cross", "triangle".