Commit Graph

15 Commits

Author SHA1 Message Date
John Firebaugh fb88b046cc Restore leading event for move throttling
Hash updates turn out to be very timing sensitive.
While it's OK for drag gestures to be throttled with
a trailing edge, manual moves such as zooming to a
particular feature should always trigger a leading
edge update.

To recoup the performance, we could refactor the map
events to the standard movestart, move, and moveend,
and update the hash only on moveend.

Fixes #2023
2013-11-26 11:26:30 -08:00
Vladimir Agafonkin 06438489fb don't throttle update on hash change, fixes #2023 2013-11-26 20:15:14 +02:00
Vladimir Agafonkin dab1fa8eaf don't update hash/attrib immediately on move start
Makes panning snappier by avoiding non-critical operations at the very
start.
2013-11-22 00:32:29 +02:00
John Firebaugh 1e78ee5c87 Stricter jshint 2013-10-24 16:08:48 -07:00
John Firebaugh 11e2f1d1fe Merge geocoder into feature search UI 2013-07-25 19:24:07 -07:00
John Firebaugh da00413632 Fix zoom-to-feature annoyances
* Zoom to feature only if map parameter isn't also
  specified.
* Don't zoom too far in (>z20). Fixes #1511.
* Don't zoom too far out (<z16). Fixes #1522.
2013-05-24 21:47:49 -07:00
John Firebaugh c50c3121d8 Make Graph#entity strict
Use Graph#hasEntity for the previous behavior.
2013-04-24 09:27:37 -07:00
John Firebaugh c8dcba31ad Auto-zoom to entity specified by id param 2013-04-18 14:24:10 -07:00
Tom MacWright b21f863312 The one true coordinate order. Fixes #1025 2013-03-13 17:48:40 -04:00
Tom MacWright d584eb2f9d Pan, fix initial loads 2013-02-09 17:56:22 -05:00
Tom MacWright 356fd6edd5 Back off on replacing the location to 1/5 of previous throttle 2013-02-05 17:59:26 -05:00
John Firebaugh 33f5db4d96 Fix hash with selected id 2013-02-02 21:17:43 -05:00
John Firebaugh a78aeeb625 Merge controller into iD 2013-02-01 12:40:15 -05:00
John Firebaugh 7e68e8e114 Add iD.Context
This is a facade interface that ties together a bunch of
different internal objects and will make it easier to write
tests for behaviors, modes, and operations.
2013-02-01 12:40:15 -05:00
John Firebaugh bbccec75be Convert Hash to a behavior 2013-01-31 18:28:24 -05:00