Annotations for exports
This commit is contained in:
@@ -21,6 +21,7 @@ goog.require('ol.style.Style');
|
||||
* @param {ol.geom.Geometry|Object.<string, *>=} opt_geometryOrValues
|
||||
* Values or geometry.
|
||||
* @todo stability experimental
|
||||
* @todo api
|
||||
*/
|
||||
ol.Feature = function(opt_geometryOrValues) {
|
||||
|
||||
@@ -81,6 +82,7 @@ goog.inherits(ol.Feature, ol.Object);
|
||||
/**
|
||||
* @return {ol.geom.Geometry|undefined} Geometry.
|
||||
* @todo stability experimental
|
||||
* @todo api
|
||||
*/
|
||||
ol.Feature.prototype.getGeometry = function() {
|
||||
return /** @type {ol.geom.Geometry|undefined} */ (
|
||||
@@ -95,6 +97,7 @@ goog.exportProperty(
|
||||
/**
|
||||
* @return {number|string|undefined} Id.
|
||||
* @todo stability experimental
|
||||
* @todo api
|
||||
*/
|
||||
ol.Feature.prototype.getId = function() {
|
||||
return this.id_;
|
||||
@@ -104,6 +107,7 @@ ol.Feature.prototype.getId = function() {
|
||||
/**
|
||||
* @return {string} Geometry property name.
|
||||
* @todo stability experimental
|
||||
* @todo api
|
||||
*/
|
||||
ol.Feature.prototype.getGeometryName = function() {
|
||||
return this.geometryName_;
|
||||
@@ -114,6 +118,7 @@ ol.Feature.prototype.getGeometryName = function() {
|
||||
* @return {ol.style.Style|Array.<ol.style.Style>|
|
||||
* ol.feature.FeatureStyleFunction} User provided style.
|
||||
* @todo stability experimental
|
||||
* @todo api
|
||||
*/
|
||||
ol.Feature.prototype.getStyle = function() {
|
||||
return this.style_;
|
||||
@@ -123,6 +128,7 @@ ol.Feature.prototype.getStyle = function() {
|
||||
/**
|
||||
* @return {ol.feature.FeatureStyleFunction|undefined} Style function.
|
||||
* @todo stability experimental
|
||||
* @todo api
|
||||
*/
|
||||
ol.Feature.prototype.getStyleFunction = function() {
|
||||
return this.styleFunction_;
|
||||
@@ -157,6 +163,7 @@ ol.Feature.prototype.handleGeometryChanged_ = function() {
|
||||
/**
|
||||
* @param {ol.geom.Geometry|undefined} geometry Geometry.
|
||||
* @todo stability experimental
|
||||
* @todo api
|
||||
*/
|
||||
ol.Feature.prototype.setGeometry = function(geometry) {
|
||||
this.set(this.geometryName_, geometry);
|
||||
@@ -171,6 +178,7 @@ goog.exportProperty(
|
||||
* @param {ol.style.Style|Array.<ol.style.Style>|
|
||||
* ol.feature.FeatureStyleFunction} style Feature style.
|
||||
* @todo stability experimental
|
||||
* @todo api
|
||||
*/
|
||||
ol.Feature.prototype.setStyle = function(style) {
|
||||
this.style_ = style;
|
||||
@@ -182,6 +190,7 @@ ol.Feature.prototype.setStyle = function(style) {
|
||||
/**
|
||||
* @param {number|string|undefined} id Id.
|
||||
* @todo stability experimental
|
||||
* @todo api
|
||||
*/
|
||||
ol.Feature.prototype.setId = function(id) {
|
||||
this.id_ = id;
|
||||
@@ -191,6 +200,7 @@ ol.Feature.prototype.setId = function(id) {
|
||||
/**
|
||||
* @param {string} name Geometry property name.
|
||||
* @todo stability experimental
|
||||
* @todo api
|
||||
*/
|
||||
ol.Feature.prototype.setGeometryName = function(name) {
|
||||
goog.events.unlisten(
|
||||
|
||||
Reference in New Issue
Block a user