Factor out ol.geom.flat.simplify

This commit is contained in:
Tom Payne
2014-03-12 11:21:55 +01:00
parent 2b6845244c
commit c8165a8168
8 changed files with 81 additions and 80 deletions

View File

@@ -17,7 +17,7 @@ goog.require('ol.color');
goog.require('ol.extent');
goog.require('ol.extent.Relationship');
goog.require('ol.geom.flat');
goog.require('ol.geom.simplify');
goog.require('ol.geom.flat.simplify');
goog.require('ol.render.IReplayGroup');
goog.require('ol.render.IVectorContext');
goog.require('ol.render.canvas');
@@ -1310,7 +1310,7 @@ ol.render.canvas.PolygonReplay.prototype.finish = function() {
var coordinates = this.coordinates;
var i, ii;
for (i = 0, ii = coordinates.length; i < ii; ++i) {
coordinates[i] = ol.geom.simplify.snap(coordinates[i], tolerance);
coordinates[i] = ol.geom.flat.simplify.snap(coordinates[i], tolerance);
}
}
};