Factor out ol.geom.SimpleGeometry

This commit is contained in:
Tom Payne
2013-12-11 14:43:06 +01:00
parent 12e610e374
commit 76a6e08ec1
12 changed files with 289 additions and 243 deletions

View File

@@ -1,8 +1,8 @@
goog.provide('ol.geom.Polygon');
goog.require('ol.extent');
goog.require('ol.geom.Geometry');
goog.require('ol.geom.LinearRing');
goog.require('ol.geom.SimpleGeometry');
goog.require('ol.geom.closest');
goog.require('ol.geom.flat');
goog.require('ol.geom.simplify');
@@ -11,7 +11,7 @@ goog.require('ol.geom.simplify');
/**
* @constructor
* @extends {ol.geom.Geometry}
* @extends {ol.geom.SimpleGeometry}
* @param {ol.geom.RawPolygon} coordinates Coordinates.
* @param {ol.geom.GeometryLayout=} opt_layout Layout.
*/
@@ -52,7 +52,7 @@ ol.geom.Polygon = function(coordinates, opt_layout) {
this.setCoordinates(coordinates, opt_layout);
};
goog.inherits(ol.geom.Polygon, ol.geom.Geometry);
goog.inherits(ol.geom.Polygon, ol.geom.SimpleGeometry);
/**