Add @api stable annotations to ol.View
This commit is contained in:
+11
-11
@@ -89,7 +89,7 @@ ol.ViewHint = {
|
|||||||
* @constructor
|
* @constructor
|
||||||
* @extends {ol.Object}
|
* @extends {ol.Object}
|
||||||
* @param {olx.ViewOptions=} opt_options View options.
|
* @param {olx.ViewOptions=} opt_options View options.
|
||||||
* @api
|
* @api stable
|
||||||
*/
|
*/
|
||||||
ol.View = function(opt_options) {
|
ol.View = function(opt_options) {
|
||||||
goog.base(this);
|
goog.base(this);
|
||||||
@@ -239,7 +239,7 @@ ol.View.prototype.constrainRotation = function(rotation, opt_delta) {
|
|||||||
/**
|
/**
|
||||||
* @return {ol.Coordinate|undefined} The center of the view.
|
* @return {ol.Coordinate|undefined} The center of the view.
|
||||||
* @observable
|
* @observable
|
||||||
* @api
|
* @api stable
|
||||||
*/
|
*/
|
||||||
ol.View.prototype.getCenter = function() {
|
ol.View.prototype.getCenter = function() {
|
||||||
return /** @type {ol.Coordinate|undefined} */ (
|
return /** @type {ol.Coordinate|undefined} */ (
|
||||||
@@ -280,7 +280,7 @@ ol.View.prototype.calculateExtent = function(size) {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @return {ol.proj.Projection} The projection of the view.
|
* @return {ol.proj.Projection} The projection of the view.
|
||||||
* @api
|
* @api stable
|
||||||
*/
|
*/
|
||||||
ol.View.prototype.getProjection = function() {
|
ol.View.prototype.getProjection = function() {
|
||||||
return this.projection_;
|
return this.projection_;
|
||||||
@@ -290,7 +290,7 @@ ol.View.prototype.getProjection = function() {
|
|||||||
/**
|
/**
|
||||||
* @return {number|undefined} The resolution of the view.
|
* @return {number|undefined} The resolution of the view.
|
||||||
* @observable
|
* @observable
|
||||||
* @api
|
* @api stable
|
||||||
*/
|
*/
|
||||||
ol.View.prototype.getResolution = function() {
|
ol.View.prototype.getResolution = function() {
|
||||||
return /** @type {number|undefined} */ (
|
return /** @type {number|undefined} */ (
|
||||||
@@ -345,7 +345,7 @@ ol.View.prototype.getResolutionForValueFunction = function(opt_power) {
|
|||||||
/**
|
/**
|
||||||
* @return {number|undefined} The rotation of the view.
|
* @return {number|undefined} The rotation of the view.
|
||||||
* @observable
|
* @observable
|
||||||
* @api
|
* @api stable
|
||||||
*/
|
*/
|
||||||
ol.View.prototype.getRotation = function() {
|
ol.View.prototype.getRotation = function() {
|
||||||
return /** @type {number|undefined} */ (this.get(ol.ViewProperty.ROTATION));
|
return /** @type {number|undefined} */ (this.get(ol.ViewProperty.ROTATION));
|
||||||
@@ -403,7 +403,7 @@ ol.View.prototype.getState = function() {
|
|||||||
* Get the current zoom level. Return undefined if the current
|
* Get the current zoom level. Return undefined if the current
|
||||||
* resolution is undefined or not a "constrained resolution".
|
* resolution is undefined or not a "constrained resolution".
|
||||||
* @return {number|undefined} Zoom.
|
* @return {number|undefined} Zoom.
|
||||||
* @api
|
* @api stable
|
||||||
*/
|
*/
|
||||||
ol.View.prototype.getZoom = function() {
|
ol.View.prototype.getZoom = function() {
|
||||||
var offset;
|
var offset;
|
||||||
@@ -560,7 +560,7 @@ ol.View.prototype.isDef = function() {
|
|||||||
* Rotate the view around a given coordinate.
|
* Rotate the view around a given coordinate.
|
||||||
* @param {number} rotation New rotation value for the view.
|
* @param {number} rotation New rotation value for the view.
|
||||||
* @param {ol.Coordinate=} opt_anchor The rotation center.
|
* @param {ol.Coordinate=} opt_anchor The rotation center.
|
||||||
* @api
|
* @api stable
|
||||||
*/
|
*/
|
||||||
ol.View.prototype.rotate = function(rotation, opt_anchor) {
|
ol.View.prototype.rotate = function(rotation, opt_anchor) {
|
||||||
if (goog.isDef(opt_anchor)) {
|
if (goog.isDef(opt_anchor)) {
|
||||||
@@ -575,7 +575,7 @@ ol.View.prototype.rotate = function(rotation, opt_anchor) {
|
|||||||
* Set the center of the current view.
|
* Set the center of the current view.
|
||||||
* @param {ol.Coordinate|undefined} center The center of the view.
|
* @param {ol.Coordinate|undefined} center The center of the view.
|
||||||
* @observable
|
* @observable
|
||||||
* @api
|
* @api stable
|
||||||
*/
|
*/
|
||||||
ol.View.prototype.setCenter = function(center) {
|
ol.View.prototype.setCenter = function(center) {
|
||||||
this.set(ol.ViewProperty.CENTER, center);
|
this.set(ol.ViewProperty.CENTER, center);
|
||||||
@@ -603,7 +603,7 @@ ol.View.prototype.setHint = function(hint, delta) {
|
|||||||
* Set the resolution for this view.
|
* Set the resolution for this view.
|
||||||
* @param {number|undefined} resolution The resolution of the view.
|
* @param {number|undefined} resolution The resolution of the view.
|
||||||
* @observable
|
* @observable
|
||||||
* @api
|
* @api stable
|
||||||
*/
|
*/
|
||||||
ol.View.prototype.setResolution = function(resolution) {
|
ol.View.prototype.setResolution = function(resolution) {
|
||||||
this.set(ol.ViewProperty.RESOLUTION, resolution);
|
this.set(ol.ViewProperty.RESOLUTION, resolution);
|
||||||
@@ -618,7 +618,7 @@ goog.exportProperty(
|
|||||||
* Set the rotation for this view.
|
* Set the rotation for this view.
|
||||||
* @param {number|undefined} rotation The rotation of the view.
|
* @param {number|undefined} rotation The rotation of the view.
|
||||||
* @observable
|
* @observable
|
||||||
* @api
|
* @api stable
|
||||||
*/
|
*/
|
||||||
ol.View.prototype.setRotation = function(rotation) {
|
ol.View.prototype.setRotation = function(rotation) {
|
||||||
this.set(ol.ViewProperty.ROTATION, rotation);
|
this.set(ol.ViewProperty.ROTATION, rotation);
|
||||||
@@ -632,7 +632,7 @@ goog.exportProperty(
|
|||||||
/**
|
/**
|
||||||
* Zoom to a specific zoom level.
|
* Zoom to a specific zoom level.
|
||||||
* @param {number} zoom Zoom level.
|
* @param {number} zoom Zoom level.
|
||||||
* @api
|
* @api stable
|
||||||
*/
|
*/
|
||||||
ol.View.prototype.setZoom = function(zoom) {
|
ol.View.prototype.setZoom = function(zoom) {
|
||||||
var resolution = this.constrainResolution(
|
var resolution = this.constrainResolution(
|
||||||
|
|||||||
Reference in New Issue
Block a user