yenbao1340 / gmaps-utility-library-dev

Automatically exported from code.google.com/p/gmaps-utility-library-dev
0 stars 0 forks source link

Add support for minimum "box" size #22

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Often, users will try to 'cancel' a dragzoom operation by resizing their
selected rectangle to a point. Instead of not zooming, the map in fact
zooms the maximum amount.

Attached is a patch against r522 that:
 * Adds a new option, 'opts_other.minDragSize' specifying a minimum size in
pixels for the dragged rectangle. The default is 0 (current behaviour) but
something like 3-5 is sensible for most cases.
 * Ignores a zoom if the rectangle is smaller than minDragSize.

Original issue reported on code.google.com by robert.c...@gmail.com on 4 Feb 2008 at 2:55

Attachments:

GoogleCodeExporter commented 8 years ago

Original comment by lem...@gmail.com on 23 May 2008 at 4:18

GoogleCodeExporter commented 8 years ago

Original comment by lem...@gmail.com on 23 May 2008 at 6:44

GoogleCodeExporter commented 8 years ago
Fixed in r622.

Original comment by lem...@gmail.com on 2 Jun 2008 at 5:52