John Firebaugh
e59d24ed3e
Merge pull request #2089 from mourner/better-hover
...
Better hover experience
2014-01-08 13:26:56 -08:00
Vladimir Agafonkin
fc92f34eab
dry up code for CSS transforms
2014-01-08 19:55:27 +02:00
Vladimir Agafonkin
1ca0282c99
avoid excessive tooltip show/hide with mouseenter/leave
2014-01-08 19:32:31 +02:00
John Firebaugh
4ce9bedb9c
Correct arrow direction on drawn segment ( fixes #2078 )
2014-01-02 17:36:23 -08:00
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
8323c948a7
jshint fixes
2013-10-24 15:33:52 -07:00
John Firebaugh
0a3d2161cd
Fix corner case that could cause getting stuck in drag mode ( #1910 )
2013-10-23 16:44:35 -07:00
John Firebaugh
4b1af71d10
Don't prevent following an existing way when drawing ( fixes #1430 )
2013-10-10 11:29:10 -07:00
tyr
e8d637f2bb
Add iD.geo.sphericalDistance
...
iD.geo.euclideanDistance should only be used for calculations of
projected coordinates or display (pixel) coordinates.
iD.geo.sphericalDistance calculates approximate geographical
distances, accounting for distortions at higher latitudes. This
can be used for determining the nearest node (operations.Delete,
actions.Circularize) or relative length comparisons (actions.Split).
2013-09-29 07:45:04 -07:00
John Firebaugh
a231963510
Tail should appear only first time
2013-08-09 14:42:16 -07:00
John Firebaugh
11e2f1d1fe
Merge geocoder into feature search UI
2013-07-25 19:24:07 -07:00
John Firebaugh
a039f576e9
Port user-select suppression to iD.behavior.Drag
...
Fixes #1585
2013-06-20 15:18:50 -07:00
John Firebaugh
bba761d8ea
size -> dimensions
...
D3 3.2 adds selection.size, where size means "number
of selected elements".
2013-06-20 13:05:20 -07:00
John Firebaugh
994161d08c
Disable hover when panning ( fixes #1550 )
2013-06-17 17:05:50 -07:00
John Firebaugh
2722294cec
Don't trigger hover events on nonentities
2013-06-17 15:43:51 -07:00
John Firebaugh
4bdf66c33a
Remove unused
2013-06-17 15:16:56 -07:00
John Firebaugh
98072bdd27
Use minzoom behavior in all appropriate modes
...
Fixes https://github.com/systemed/iD/issues/1599#issuecomment-19568483
2013-06-17 14:43:16 -07:00
John Firebaugh
82a4f9c366
Avoid duplicate hover events
2013-06-04 18:33:23 -07:00
John Firebaugh
c68635062c
Fix sidebar UI behaviors
...
* Restore preset search autofocus (fixes #1566 )
* Should show hover in draw modes, not preset list
2013-06-03 16:28:30 -07:00
John Firebaugh
a84a3364cc
selection -> selectedIDs
...
Overloading "selection" is a bad idea.
2013-06-03 15:48:03 -07:00
John Firebaugh
eebd9aa030
Remove unused
2013-06-03 15:30:23 -07:00
John Firebaugh
0724e204e8
Don't preventDefault on mousedown events
...
This prevents focus/blur events from getting dispatched,
which was the root cause of #1295 .
Fixes #1295 .
2013-05-31 14:27:37 -07:00
John Firebaugh
884d2d0732
Add hover indicator in sidebar
2013-05-26 14:07:10 -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
2e4207f99b
Cache geometry
2013-05-17 15:31:27 -07:00
John Firebaugh
d238e4eaeb
Convert Tail to a behavior
...
This avoids an extra mousemove listener in base modes.
2013-05-14 17:51:24 -07:00
John Firebaugh
271ddace64
Revert "prevent accidental drags"
...
Not sure this helps a whole lot, and it requires a mousemove listener.
This reverts commit b7760e8747 .
2013-05-14 09:33:27 -07:00
John Firebaugh
1a6a9b5b9e
Better way of doing hover suppression
2013-05-13 12:53:03 -07:00
John Firebaugh
fcafce7517
Really fix area drawing
2013-05-13 12:19:51 -07:00
John Firebaugh
a7bc5d367b
Fix area drawing
2013-05-13 10:29:31 -07:00
John Firebaugh
578224bd63
Optimize hover behavior
...
Add entity IDs to the element class list, so that specific
elements can be selected by ID rather than needing `filter`.
2013-05-12 09:40:34 -07:00
John Firebaugh
1641f38632
Use context.mouse()
2013-05-09 21:55:05 -07:00
John Firebaugh
08949d2fe9
Redo iD.geo.chooseIndex
...
It now calculates proper orthogonal projections and finds
the minimal one. Rename it iD.geo.chooseEdge and minimize
its coupling to context.
This version also copes with 0- and 1-node ways.
Fixes #1428 .
2013-05-07 18:35:45 -07:00
John Firebaugh
24ecf2a697
Don't show radial menu after dragging node ( fixes #1385 )
2013-04-26 11:45:01 -07:00
Ansis Brammanis
a147496cc7
No dangler prevention for areas
...
They don't need it -- they already can't be self-intersected.
2013-04-26 13:14:07 -04:00
Ansis Brammanis
6c6a312c62
fix dangler avoidance for areas
2013-04-25 19:25:43 -04:00
Ansis Brammanis
b95529d5ec
prevent way danglers, issue #1373
2013-04-25 11:48:03 -04: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
2d62a78ac9
Semicolons
2013-04-23 14:31:24 -07:00
John Firebaugh
c8dcba31ad
Auto-zoom to entity specified by id param
2013-04-18 14:24:10 -07:00
Ansis Brammanis
63f2df89b3
Fix drawing areas
...
the way that the vertex is being added to is the original one,
not the one with the 'end' node, so there is no need to remove it.
The new node de-dupe code was making this break area drawing.
Fixes #1322
2013-04-16 22:25:48 -04:00
John Firebaugh
5dda54ea52
Refine focus behavior for inspector ( fixes #1277 )
...
Auto-focus the search field only right after finishing drawing.
At that point, the radial menu isn't shown anyway. So then the
flow for correcting geometry before assigning a preset is:
1. Draw.
2. Finish drawing. The search field is focused, and no
radial menu is open.
3. Click again to reselect the feature and show menu.
Now the search field is blurred.
In other words: when the menu is shown, search should not be
focused. When search is focused, the menu should not be shown.
2013-04-12 10:08:44 -04:00
Ansis Brammanis
a8f41b8c57
Prevent creation of ways with duplicate nodes
...
Related to #1249
2013-04-05 16:35:51 -04:00
Ansis Brammanis
d7cc24b935
shadows for multipolygons
2013-04-05 12:11:23 -04:00
Ansis Brammanis
acdc1b3824
add nodes to all of a segment's ways
...
when
- dragging a node to a way
- starting a line from a way
- starting an area from a way
- drawing a way
2013-04-04 17:58:53 -04:00
Ansis Brammanis
7e85fed027
add .id-container class to container
...
fixes #1228
2013-04-02 14:03:46 -04:00
Ansis Brammanis
3e75943405
block quick second click when drawing
...
- doubleclicking to add point doesn't zoom
- doubleclicking on last node selects way, not node
fixes #1233
2013-04-02 13:21:32 -04:00