[Mapbender-commits] r8847 - trunk/mapbender/http/widgets

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Mon May 12 06:40:58 PDT 2014


Author: hwbllmnn
Date: 2014-05-12 06:40:58 -0700 (Mon, 12 May 2014)
New Revision: 8847

Modified:
   trunk/mapbender/http/widgets/w_digitize.js
Log:
show circle on mousemove when digitizing point


Modified: trunk/mapbender/http/widgets/w_digitize.js
===================================================================
--- trunk/mapbender/http/widgets/w_digitize.js	2014-05-12 13:36:36 UTC (rev 8846)
+++ trunk/mapbender/http/widgets/w_digitize.js	2014-05-12 13:40:58 UTC (rev 8847)
@@ -345,6 +345,7 @@
 
         if(this.options.type === 'point') {
             this.element.unbind('click', this._addPoint)
+                .unbind("mousemove", this._digitize)
                 .css('cursor', 'auto')
                 .bind('click', $.proxy(this, '_reinitialize'));
             this._trigger("lastpointadded", e);
@@ -392,16 +393,16 @@
         this._digitizePoints = [];
         this._canvas.clear();
 
-        if(this.options.type === 'point') {
+        // if(this.options.type === 'point') {
+        //     this.element
+        //         .bind("click", $.proxy(this, "_addPoint"))
+        //         .css("cursor", "crosshair");
+        // } else {
             this.element
                 .bind("click", $.proxy(this, "_addPoint"))
-                .css("cursor", "crosshair");
-        } else {
-            this.element
-                .bind("click", $.proxy(this, "_addPoint"))
                 .bind("mousemove", $.proxy(this, "_digitize"))
                 .css("cursor", "crosshair");
-        }
+        // }
     },
 
     _create: function () {



More information about the Mapbender_commits mailing list