Nicer dragbox style

This commit is contained in:
Frederic Junod
2013-11-18 16:17:57 +01:00
committed by Tom Payne
parent 479ec441ab
commit 99ce67aedc
2 changed files with 21 additions and 13 deletions

View File

@@ -65,8 +65,7 @@ ol.geom.Polygon.prototype.getType = function() {
* @param {ol.geom.RawPolygon} coordinates Coordinates.
* @param {ol.geom.Layout=} opt_layout Layout.
*/
ol.geom.Polygon.prototype.setCoordinates =
function(coordinates, opt_layout) {
ol.geom.Polygon.prototype.setCoordinates = function(coordinates, opt_layout) {
this.setLayout(opt_layout, coordinates, 2);
ol.geom.flat.deflateCoordinatess(
this.flatCoordinates, 0, coordinates, this.stride, this.ends_);