Ticket #3196 (closed bug: fixed)

Opened 2 years ago

Last modified 2 years ago

Zoom after drawing: Strange behavior of the cursor.

Reported by: jorix Owned by: erilem
Priority: minor Milestone: 2.11 Release
Component: Handler.Path Version: SVN
Keywords: Cc:
State: Commit

Description

Using mobile devices (small screens) is very useful to zoomOut after drawing.

When you zoomOut a blue point appears in the upper left corner (using Handler.Path and Handler.Polygon)

Tested iPad using http://openlayers.org/dev/examples/mobile-drawing.html

Attachments

3196.patch Download (8.4 KB) - added by jorix 2 years ago.

Change History

Changed 2 years ago by jorix

Changed 2 years ago by jorix

  • state set to Review

The patch fixes this problem, and also the issue described in #3179 for Handler.Path and Handler.Polygon.

Tested on Chrome-10 and IE8 (all controls and handlers)

NOTE: It would be useful to add NaN control in tests/geom_eq.js as:

@@ -23,11 +23,15 @@
             got = "undefined";
         } else if (got === null) {
             got = "null";
+        } else if (isNaN(got)) {
+            got = "NaN";
         }
         if(expected === undefined) {
             expected = "undefined";
         } else if (expected === null) {
             expected = "null";
+        } else if (isNaN(expected)) {
+            expected = "NaN";
         }
         if(got != expected) {
             throw msg + ": got '" + got + "' but expected '" + expected + "'";

Please review.

Changed 2 years ago by erilem

The patch doesn't apply to current trunk, does it?

Changed 2 years ago by erilem

  • owner changed from tschaub to erilem

Changed 2 years ago by erilem

  • state changed from Review to Commit

Good patch! Thanks Xavier.

Changed 2 years ago by erilem

  • status changed from new to closed
  • resolution set to fixed

(In [11745]) when zooming out right after drawing a polygon or a line a point appears in the upper left corner, p=jorix, r=me (closes #3196)

Note: See TracTickets for help on using tickets.