Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Shorter name for ol.Feature

  • Loading branch information...
commit 7ef127cfacffb105a493f8ae5aec9fb3afea168b 1 parent b4d44f8
@tschaub tschaub authored
Showing with 40 additions and 64 deletions.
  1. +40 −0 src/ol/feature.js
  2. +0 −64 src/ol/feature/feature.js
View
40 src/ol/feature.js
@@ -0,0 +1,40 @@
+goog.provide('ol.Feature');
+
+goog.require('ol.Object');
+
+
+
+/**
+ * @constructor
+ * @extends {ol.Object}
+ * @param {ol.geom.Geometry=} opt_geometry Geometry.
+ * @param {Object=} opt_values Attributes.
+ */
+ol.Feature = function(opt_geometry, opt_values) {
+
+ goog.base(this, opt_values);
+
+ /**
+ * @private
+ * @type {ol.geom.Geometry}
+ */
+ this.geometry_ = goog.isDef(opt_geometry) ? opt_geometry : null;
+
+};
+goog.inherits(ol.Feature, ol.Object);
+
+
+/**
+ * @return {ol.geom.Geometry} The geometry (or null if none).
+ */
+ol.Feature.prototype.getGeometry = function() {
+ return this.geometry_;
+};
+
+
+/**
+ * @param {ol.geom.Geometry} geometry The geometry.
+ */
+ol.Feature.prototype.setGeometry = function(geometry) {
+ this.geometry_ = geometry;
+};
View
64 src/ol/feature/feature.js
@@ -1,64 +0,0 @@
-goog.provide('ol.feature.Feature');
-
-
-goog.require('ol.Object');
-
-
-
-/**
- * @constructor
- * @extends {ol.Object}
- * @param {ol.geom.Geometry=} opt_geometry Geometry.
- * @param {Object=} opt_values Attributes.
- * @param {ol.style.LiteralSymbolizer=} opt_symbolizer Symbolizer.
- */
-ol.feature.Feature = function(opt_geometry, opt_values, opt_symbolizer) {
-
- goog.base(this, opt_values);
-
- /**
- * @private
- * @type {?ol.geom.Geometry}
- */
- this.geometry_ = goog.isDef(opt_geometry) ? opt_geometry : null;
-
- /**
- * @private
- * @type {?ol.style.LiteralSymbolizer}
- */
- this.symbolizer_ = goog.isDef(opt_symbolizer) ? opt_symbolizer : null;
-
-};
-goog.inherits(ol.feature.Feature, ol.Object);
-
-
-/**
- * @return {?ol.geom.Geometry} The geometry.
- */
-ol.feature.Feature.prototype.getGeometry = function() {
- return this.geometry_;
-};
-
-
-/**
- * @param {?ol.geom.Geometry} geometry The geometry.
- */
-ol.feature.Feature.prototype.setGeometry = function(geometry) {
- this.geometry_ = geometry;
-};
-
-
-/**
- * @return {?ol.style.LiteralSymbolizer} The symbolizer.
- */
-ol.feature.Feature.prototype.getSymbolizer = function() {
- return this.symbolizer_;
-};
-
-
-/**
- * @param {?ol.style.LiteralSymbolizer} symbolizer The symbolizer.
- */
-ol.feature.Feature.prototype.setSymblizer = function(symbolizer) {
- this.symbolizer_ = symbolizer;
-};
Please sign in to comment.
Something went wrong with that request. Please try again.