[Mapbender-commits] r8988 - trunk/mapbender/http/widgets
svn_mapbender at osgeo.org
svn_mapbender at osgeo.org
Fri Jul 4 05:50:30 PDT 2014
Author: hwbllmnn
Date: 2014-07-04 05:50:29 -0700 (Fri, 04 Jul 2014)
New Revision: 8988
Modified:
trunk/mapbender/http/widgets/w_digitize.js
Log:
removed obsolete commented code
Modified: trunk/mapbender/http/widgets/w_digitize.js
===================================================================
--- trunk/mapbender/http/widgets/w_digitize.js 2014-07-04 12:48:17 UTC (rev 8987)
+++ trunk/mapbender/http/widgets/w_digitize.js 2014-07-04 12:50:29 UTC (rev 8988)
@@ -200,83 +200,6 @@
}
}
}
-
- // if (pos && drawOptions && !drawOptions.highlightFirst) {
- // this._digitizePoints.push(pos);
- // }
-
- // var len = this._digitizePoints.length;
- // if (len > 0) {
- // for (var k=0; k < len; k++) {
- // var pk = this._digitizePoints[k].pos;
- // var q = this._digitizePoints[k].mousePos;
-
- // str_path += (k === 0) ? 'M' : 'L';
- // str_path += q.x + ' ' + q.y;
-
- // if (drawOptions.highlightFirst && k === len - 1) {
- // var p0 = this._digitizePoints[0].mousePos;
- // str_path += 'L' + p0.x + ' ' + p0.y;
-
- // }
- // if (drawOptions && drawOptions.highlightLast && k === len - 1) {
- // continue;
- // }
-
- // if (drawOptions && drawOptions.drawPoints &&
- // (k === 0 && !this._polygonIsInvalid || k >= len - 2 && !drawOptions.highlightFirst)) {
-
- // var circle = this._canvas.circle(q.x, q.y, this.options.digitizePointDiameter);
-
- // if (k === 0) {
- // circle.attr({
- // fill: drawOptions && drawOptions.highlightFirst ?
- // this.options.pointFillSnapped : this.options.pointFillDefault,
- // "fill-opacity": this.options.opacity,
- // stroke: drawOptions.highlightFirst || drawOptions.highlightLast ?
- // this.options.pointStrokeSnapped: this.options.pointStrokeDefault,
- // "stroke-width": this.options.pointStrokeWidthDefault
- // });
- // }
- // else {
- // circle.attr({
- // fill: drawOptions && drawOptions.highlightLast && k === len - 2 ?
- // this.options.pointFillSnapped : this.options.pointFillDefault,
- // "fill-opacity": this.options.opacity,
- // stroke: drawOptions.highlightFirst || drawOptions.highlightLast ?
- // this.options.pointStrokeSnapped: this.options.pointStrokeDefault,
- // "stroke-width": this.options.pointStrokeWidthDefault
- // });
- // }
- // }
- // }
- // }
- // if (pos && drawOptions && !drawOptions.highlightFirst) {
- // this._digitizePoints.pop();
- // }
-
-
- // if (this._isPolygon(this._digitizePoints, pos) && drawOptions && !drawOptions.highlightLast && !this.polygonIsInvalid) {
- // var poly = this._canvas.path(str_path + 'Z');
- // poly.attr({
- // fill: drawOptions.highlightFirst ?
- // this.options.polygonFillSnapped : this.options.polygonFillDefault,
- // stroke: drawOptions.highlightFirst || drawOptions.highlightLast ?
- // this.options.lineStrokeSnapped: this.options.lineStrokeDefault,
- // "stroke-width": drawOptions.highlightFirst ?
- // this.options.polygonStrokeWidthSnapped : this.options.polygonStrokeWidthDefault,
- // opacity: this.options.opacity
- // });
- // }
-
- // var line = this._canvas.path(str_path);
- // line.attr({
- // stroke: drawOptions && (drawOptions.highlightFirst || drawOptions.highlightLast) ?
- // this.options.lineStrokeSnapped : this.options.lineStrokeDefault,
- // "stroke-width": drawOptions && drawOptions.highlightLast ?
- // this.options.lineStrokeWidthSnapped : this.options.lineStrokeWidthDefault
- // });
- // line.toFront();
},
_digitize: function (e) {
More information about the Mapbender_commits
mailing list