From fb1c764a3813743339ba3cb5da1f3f99739da2a6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89ric=20Lemoine?= Date: Thu, 21 Aug 2014 10:40:54 +0200 Subject: [PATCH] Remove the ol.geom.RawLineString type --- src/ol/geom/geometry.js | 10 +--------- src/ol/geom/linestring.js | 6 +++--- 2 files changed, 4 insertions(+), 12 deletions(-) diff --git a/src/ol/geom/geometry.js b/src/ol/geom/geometry.js index d65860418a..f151cfb733 100644 --- a/src/ol/geom/geometry.js +++ b/src/ol/geom/geometry.js @@ -203,14 +203,6 @@ ol.geom.Geometry.prototype.transform = function(source, destination) { }; -/** - * Array representation of a linestring. - * @typedef {Array.} - * @api stable - */ -ol.geom.RawLineString; - - /** * Array representation of a linear ring. * @typedef {Array.} @@ -237,7 +229,7 @@ ol.geom.RawMultiPoint; /** * Array representation of a multilinestring. - * @typedef {Array.} + * @typedef {Array.>} * @api stable */ ol.geom.RawMultiLineString; diff --git a/src/ol/geom/linestring.js b/src/ol/geom/linestring.js index 967de88134..12a0529343 100644 --- a/src/ol/geom/linestring.js +++ b/src/ol/geom/linestring.js @@ -20,7 +20,7 @@ goog.require('ol.geom.flat.simplify'); * * @constructor * @extends {ol.geom.SimpleGeometry} - * @param {ol.geom.RawLineString} coordinates Coordinates. + * @param {Array.} coordinates Coordinates. * @param {ol.geom.GeometryLayout=} opt_layout Layout. * @api stable */ @@ -131,7 +131,7 @@ ol.geom.LineString.prototype.getCoordinateAtM = function(m, opt_extrapolate) { /** - * @return {ol.geom.RawLineString} Coordinates. + * @return {Array.} Coordinates. * @api stable */ ol.geom.LineString.prototype.getCoordinates = function() { @@ -190,7 +190,7 @@ ol.geom.LineString.prototype.getType = function() { /** - * @param {ol.geom.RawLineString} coordinates Coordinates. + * @param {Array.} coordinates Coordinates. * @param {ol.geom.GeometryLayout=} opt_layout Layout. * @api stable */