Add @api stable annotations for ol.geom.MultiPolygon
This commit is contained in:
@@ -27,7 +27,7 @@ goog.require('ol.geom.flat.simplify');
|
|||||||
* @extends {ol.geom.SimpleGeometry}
|
* @extends {ol.geom.SimpleGeometry}
|
||||||
* @param {ol.geom.RawMultiPolygon} coordinates Coordinates.
|
* @param {ol.geom.RawMultiPolygon} coordinates Coordinates.
|
||||||
* @param {ol.geom.GeometryLayout=} opt_layout Layout.
|
* @param {ol.geom.GeometryLayout=} opt_layout Layout.
|
||||||
* @api
|
* @api stable
|
||||||
*/
|
*/
|
||||||
ol.geom.MultiPolygon = function(coordinates, opt_layout) {
|
ol.geom.MultiPolygon = function(coordinates, opt_layout) {
|
||||||
|
|
||||||
@@ -84,7 +84,7 @@ goog.inherits(ol.geom.MultiPolygon, ol.geom.SimpleGeometry);
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @param {ol.geom.Polygon} polygon Polygon.
|
* @param {ol.geom.Polygon} polygon Polygon.
|
||||||
* @api
|
* @api stable
|
||||||
*/
|
*/
|
||||||
ol.geom.MultiPolygon.prototype.appendPolygon = function(polygon) {
|
ol.geom.MultiPolygon.prototype.appendPolygon = function(polygon) {
|
||||||
goog.asserts.assert(polygon.getLayout() == this.layout);
|
goog.asserts.assert(polygon.getLayout() == this.layout);
|
||||||
@@ -110,7 +110,7 @@ ol.geom.MultiPolygon.prototype.appendPolygon = function(polygon) {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @inheritDoc
|
* @inheritDoc
|
||||||
* @api
|
* @api stable
|
||||||
*/
|
*/
|
||||||
ol.geom.MultiPolygon.prototype.clone = function() {
|
ol.geom.MultiPolygon.prototype.clone = function() {
|
||||||
var multiPolygon = new ol.geom.MultiPolygon(null);
|
var multiPolygon = new ol.geom.MultiPolygon(null);
|
||||||
@@ -151,7 +151,7 @@ ol.geom.MultiPolygon.prototype.containsXY = function(x, y) {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @return {number} Area (on projected plane).
|
* @return {number} Area (on projected plane).
|
||||||
* @api
|
* @api stable
|
||||||
*/
|
*/
|
||||||
ol.geom.MultiPolygon.prototype.getArea = function() {
|
ol.geom.MultiPolygon.prototype.getArea = function() {
|
||||||
return ol.geom.flat.area.linearRingss(
|
return ol.geom.flat.area.linearRingss(
|
||||||
@@ -161,7 +161,7 @@ ol.geom.MultiPolygon.prototype.getArea = function() {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @return {ol.geom.RawMultiPolygon} Coordinates.
|
* @return {ol.geom.RawMultiPolygon} Coordinates.
|
||||||
* @api
|
* @api stable
|
||||||
*/
|
*/
|
||||||
ol.geom.MultiPolygon.prototype.getCoordinates = function() {
|
ol.geom.MultiPolygon.prototype.getCoordinates = function() {
|
||||||
return ol.geom.flat.inflate.coordinatesss(
|
return ol.geom.flat.inflate.coordinatesss(
|
||||||
@@ -195,7 +195,7 @@ ol.geom.MultiPolygon.prototype.getFlatInteriorPoints = function() {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @return {ol.geom.MultiPoint} Interior points.
|
* @return {ol.geom.MultiPoint} Interior points.
|
||||||
* @api
|
* @api stable
|
||||||
*/
|
*/
|
||||||
ol.geom.MultiPolygon.prototype.getInteriorPoints = function() {
|
ol.geom.MultiPolygon.prototype.getInteriorPoints = function() {
|
||||||
var interiorPoints = new ol.geom.MultiPoint(null);
|
var interiorPoints = new ol.geom.MultiPoint(null);
|
||||||
@@ -247,7 +247,7 @@ ol.geom.MultiPolygon.prototype.getSimplifiedGeometryInternal =
|
|||||||
/**
|
/**
|
||||||
* @param {number} index Index.
|
* @param {number} index Index.
|
||||||
* @return {ol.geom.Polygon} Polygon.
|
* @return {ol.geom.Polygon} Polygon.
|
||||||
* @api
|
* @api stable
|
||||||
*/
|
*/
|
||||||
ol.geom.MultiPolygon.prototype.getPolygon = function(index) {
|
ol.geom.MultiPolygon.prototype.getPolygon = function(index) {
|
||||||
goog.asserts.assert(0 <= index && index < this.endss_.length);
|
goog.asserts.assert(0 <= index && index < this.endss_.length);
|
||||||
@@ -278,7 +278,7 @@ ol.geom.MultiPolygon.prototype.getPolygon = function(index) {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @return {Array.<ol.geom.Polygon>} Polygons.
|
* @return {Array.<ol.geom.Polygon>} Polygons.
|
||||||
* @api
|
* @api stable
|
||||||
*/
|
*/
|
||||||
ol.geom.MultiPolygon.prototype.getPolygons = function() {
|
ol.geom.MultiPolygon.prototype.getPolygons = function() {
|
||||||
var layout = this.layout;
|
var layout = this.layout;
|
||||||
@@ -307,7 +307,7 @@ ol.geom.MultiPolygon.prototype.getPolygons = function() {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @inheritDoc
|
* @inheritDoc
|
||||||
* @api
|
* @api stable
|
||||||
*/
|
*/
|
||||||
ol.geom.MultiPolygon.prototype.getType = function() {
|
ol.geom.MultiPolygon.prototype.getType = function() {
|
||||||
return ol.geom.GeometryType.MULTI_POLYGON;
|
return ol.geom.GeometryType.MULTI_POLYGON;
|
||||||
@@ -317,7 +317,7 @@ ol.geom.MultiPolygon.prototype.getType = function() {
|
|||||||
/**
|
/**
|
||||||
* @param {ol.geom.RawMultiPolygon} coordinates Coordinates.
|
* @param {ol.geom.RawMultiPolygon} coordinates Coordinates.
|
||||||
* @param {ol.geom.GeometryLayout=} opt_layout Layout.
|
* @param {ol.geom.GeometryLayout=} opt_layout Layout.
|
||||||
* @api
|
* @api stable
|
||||||
*/
|
*/
|
||||||
ol.geom.MultiPolygon.prototype.setCoordinates =
|
ol.geom.MultiPolygon.prototype.setCoordinates =
|
||||||
function(coordinates, opt_layout) {
|
function(coordinates, opt_layout) {
|
||||||
|
|||||||
Reference in New Issue
Block a user