Merge pull request #6370 from tchandelle/feature-events

Feature apidoc, fix events and observable properties
This commit is contained in:
Frédéric Junod
2017-01-23 12:40:37 +01:00
committed by GitHub
+2 -4
View File
@@ -150,7 +150,6 @@ ol.Feature.prototype.getGeometry = function() {
* calling {@link ol.Feature#setId}. * calling {@link ol.Feature#setId}.
* @return {number|string|undefined} Id. * @return {number|string|undefined} Id.
* @api stable * @api stable
* @observable
*/ */
ol.Feature.prototype.getId = function() { ol.Feature.prototype.getId = function() {
return this.id_; return this.id_;
@@ -175,7 +174,6 @@ ol.Feature.prototype.getGeometryName = function() {
* @return {ol.style.Style|Array.<ol.style.Style>| * @return {ol.style.Style|Array.<ol.style.Style>|
* ol.FeatureStyleFunction} The feature style. * ol.FeatureStyleFunction} The feature style.
* @api stable * @api stable
* @observable
*/ */
ol.Feature.prototype.getStyle = function() { ol.Feature.prototype.getStyle = function() {
return this.style_; return this.style_;
@@ -237,7 +235,7 @@ ol.Feature.prototype.setGeometry = function(geometry) {
* @param {ol.style.Style|Array.<ol.style.Style>| * @param {ol.style.Style|Array.<ol.style.Style>|
* ol.FeatureStyleFunction} style Style for this feature. * ol.FeatureStyleFunction} style Style for this feature.
* @api stable * @api stable
* @observable * @fires ol.events.Event#event:change
*/ */
ol.Feature.prototype.setStyle = function(style) { ol.Feature.prototype.setStyle = function(style) {
this.style_ = style; this.style_ = style;
@@ -254,7 +252,7 @@ ol.Feature.prototype.setStyle = function(style) {
* method. * method.
* @param {number|string|undefined} id The feature id. * @param {number|string|undefined} id The feature id.
* @api stable * @api stable
* @observable * @fires ol.events.Event#event:change
*/ */
ol.Feature.prototype.setId = function(id) { ol.Feature.prototype.setId = function(id) {
this.id_ = id; this.id_ = id;