Make geom.simplify() exportable
This commit is contained in:
@@ -179,6 +179,7 @@ ol.geom.Geometry.prototype.getExtent = function(opt_extent) {
|
|||||||
* @param {number} tolerance The tolerance distance for simplification.
|
* @param {number} tolerance The tolerance distance for simplification.
|
||||||
* @return {ol.geom.Geometry} A new, simplified version of the original
|
* @return {ol.geom.Geometry} A new, simplified version of the original
|
||||||
* geometry.
|
* geometry.
|
||||||
|
* @api
|
||||||
*/
|
*/
|
||||||
ol.geom.Geometry.prototype.simplify = function(tolerance) {
|
ol.geom.Geometry.prototype.simplify = function(tolerance) {
|
||||||
return this.getSimplifiedGeometry(tolerance * tolerance);
|
return this.getSimplifiedGeometry(tolerance * tolerance);
|
||||||
|
|||||||
@@ -144,7 +144,6 @@ ol.geom.SimpleGeometry.prototype.getLayout = function() {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @inheritDoc
|
* @inheritDoc
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
ol.geom.SimpleGeometry.prototype.getSimplifiedGeometry =
|
ol.geom.SimpleGeometry.prototype.getSimplifiedGeometry =
|
||||||
function(squaredTolerance) {
|
function(squaredTolerance) {
|
||||||
|
|||||||
Reference in New Issue
Block a user