Bryan Housel
6d82ae4146
add iD.geo.Extent#contains
2015-02-06 13:56:51 -05:00
Bryan Housel
d5ecd5d52d
add deep equals to extent
2014-10-28 21:37:03 -04:00
John Firebaugh
69af20e44d
Add mutating extent extend, for performance
2014-10-13 16:34:38 -07:00
Guillaume Carbonneau
96fa48faad
fix for the failures under safari/webkit
2014-10-09 16:29:11 -04:00
Bryan Housel
43777d5259
Better inferRestriction for no_u_turn
...
* where from.node === to.node
* where from.way and to.way are oneways joined at a narrow angle
2014-09-02 16:43:31 -04:00
Bryan Housel
cf715a5156
Only use no_u_turn restriction for angles < 5
2014-08-31 21:59:23 -04:00
Bryan Housel
874a3e2ad6
disable Move and Rotate operations if area < 80% contained in the viewport
...
see #542 .
Also included:
1. DRY up code for "% contained in" extent testing.
2. If action.disabled() returns a better reason, show that instead of the too_large one.
2014-07-11 17:11:50 -04:00
Bryan Housel
2723c65506
refactor dLat/dLon <-> meters calcs and use slightly better WGS84 constants
2014-06-23 16:23:04 -04:00
Bryan Housel
c316f87c6f
Fix buggy padByMeters (PI/180 is needed here)
2014-06-20 18:01:53 -04:00
John Firebaugh
a2a4405ed8
Fix restriction type inference ( fixes #2233 )
2014-05-21 16:28:29 -07:00
John Firebaugh
8b6ce214a2
Initial support for only_* restrictions
2014-05-19 15:53:46 -07:00
John Firebaugh
6089a6aaea
Better solution for maintaining selection
2014-05-18 16:02:48 -07:00
John Firebaugh
9d5df793b5
Fix turn generation from ways that need splitting
2014-05-18 16:02:48 -07:00
John Firebaugh
eaaff52d62
Help text
2014-05-18 16:02:48 -07:00
John Firebaugh
573237e94e
Render U-turns
2014-05-18 16:02:48 -07:00
John Firebaugh
3d210ac3c1
Implement basic restriction toggling
2014-05-18 16:02:47 -07:00
John Firebaugh
26422d9c9a
Show ways in restriction editor as if they were split
2014-05-18 16:02:47 -07:00
John Firebaugh
f39ae89177
Render turns of selected way
2014-05-18 16:02:47 -07:00
John Firebaugh
90bc8dd70a
Extract iD.geo.RawMercator
2014-05-18 16:02:46 -07:00
Bryan Housel
1df54a700a
Disable circularize and orthogonalize operations when way is <80% contained in the viewport
2014-03-27 22:47:34 -04:00
John Firebaugh
ab8a4ffd7b
Update GitHub links
2014-01-08 16:14:28 -08:00
John Firebaugh
8323c948a7
jshint fixes
2013-10-24 15:33:52 -07:00
John Firebaugh
156aa90e27
Add more turn logic
2013-08-30 19:27:21 -07:00
John Firebaugh
e30531277d
Support polygon imagery bounds
...
Fixes #768
2013-08-27 11:25:11 -07:00
John Firebaugh
6d506ec6d4
Fix mutation of childNodes array
2013-06-18 14:21:07 -07:00
John Firebaugh
ddd9e4e8cc
Make iD.actions.Join agnostic to selection order
...
This is accomplished by reusing iD.geo.joinMemberWays,
which was refactored, generalized, and renamed to joinWays.
2013-06-18 12:19:53 -07:00
John Firebaugh
2d7cc2a2d1
Preserve member order as much as possible
2013-06-05 16:00:12 -07:00
John Firebaugh
33cf029d43
Extract and refactor iD.geo.joinMemberWays
2013-06-05 16:00:12 -07:00
John Firebaugh
1db99586c4
Render only new features when a data tile is loaded
2013-05-20 12:05:31 -07:00
John Firebaugh
d2e775ac65
Use correct changesets URL for dev
2013-05-19 20:11:41 -07:00
John Firebaugh
d247962324
Handle incomplete relations in simpleMultipolygonOuterMember
2013-05-01 10:28:40 -07:00
Ansis Brammanis
579e6a8a8b
geolocation sets zoom based on accuracy
...
fixes #1375
2013-04-25 11:04:22 -04:00
Tom MacWright
61d7ec45b5
Banish function ( style
2013-02-12 16:35:47 -05:00
Tom MacWright
afcb1837e7
Only do extent build if necessary
2013-02-08 11:36:25 -05:00
Tom MacWright
054ecae5c9
Avoid new indirection with extent
2013-02-07 22:55:21 -05:00
Tom MacWright
b6551e8db0
Name geo constructor so it is profilable
2013-02-07 22:41:47 -05:00
John Firebaugh
5a2444b551
Extract and fix extent/intersection calculations
...
Extents are now [[min x, min y], [max x, max y]].
2013-01-17 14:27:01 -08:00