[OpenLayers-Commits] r1814 - sandbox/vector/lib/OpenLayers/Feature
commits at openlayers.org
commits at openlayers.org
Mon Nov 13 03:10:37 EST 2006
Author: bertil
Date: 2006-11-13 03:10:36 -0500 (Mon, 13 Nov 2006)
New Revision: 1814
Modified:
sandbox/vector/lib/OpenLayers/Feature/Geometry.js
Log:
Geometry.getStyle() and Geometry.setStyle()
Modified: sandbox/vector/lib/OpenLayers/Feature/Geometry.js
===================================================================
--- sandbox/vector/lib/OpenLayers/Feature/Geometry.js 2006-11-13 04:52:13 UTC (rev 1813)
+++ sandbox/vector/lib/OpenLayers/Feature/Geometry.js 2006-11-13 08:10:36 UTC (rev 1814)
@@ -9,6 +9,9 @@
OpenLayers.Feature.Geometry.prototype =
OpenLayers.Class.inherit( OpenLayers.Feature, {
+ /** @type OpenLayers.Style */
+ style: null,
+
/** @type array */
attributes: [],
@@ -56,6 +59,23 @@
// do something to remove attributes
// not implemented yet
},
+
+ /**
+ * Set geometry style
+ *
+ * @param {OpenLayers.Style} attributes to remove, can be an array
+ */
+ setStyle: function(style) {
+ this.style = style;
+ },
+
+ /**
+ * Get the current geometry style
+ *
+ */
+ getStyle: function() {
+ return style;
+ },
CLASS_NAME: "OpenLayers.Feature.Geometry"
More information about the Commits
mailing list