Commit Graph

580 Commits

Author SHA1 Message Date
John Firebaugh f64c2df17f Return null rather than empty string
Empty string still generates the error 'Problem parsing d=""',
while null results in no 'd' attribute at all.
2013-01-17 11:57:29 -08:00
John Firebaugh e24b22b518 Extract iD.svg.LineString 2013-01-17 11:57:29 -08:00
John Firebaugh 9f1506af5e Always use rounded projection 2013-01-17 11:57:29 -08:00
Tom MacWright 9b21fae8cb Validation. This adds basic validation and display to commits
Included is

* Untagged POIs, ways, areas
* Tags that suggest that lines should be areas
2013-01-17 14:46:39 -05:00
Tom MacWright feea5065e2 Do not permit values longer than 255 chars in the inspector 2013-01-17 14:18:49 -05:00
Tom MacWright 87c8fbdb2f Remove unreachable code in connection.
This unfortunately prevents loadFromURL from sharing the queue and
cancelling functionality of bboxes
2013-01-17 12:49:43 -05:00
Tom MacWright 36a6c2ffea Merge pull request #417 from systemed/tooltips
Tooltips
2013-01-17 09:35:22 -08:00
Ansis Brammanis ae37003852 prefer taginfo suggestions that startwith input 2013-01-17 12:32:11 -05:00
Tom MacWright fd2ef2a78b Rename tooltip to tail, use tail in modes. 2013-01-17 12:07:26 -05:00
Tom MacWright 061e81d14a Merge branch 'master' into tooltips 2013-01-17 11:32:37 -05:00
Ansis Brammanis b8d9741959 Only update inspector tag list when necessary 2013-01-17 10:48:42 -05:00
Tom MacWright cdbe3d6168 Fix removal of elements on undo. Fixes #410 2013-01-17 10:44:12 -05:00
Tom MacWright 9fde1ae483 Merge branch 'master' of github.com:systemed/iD into tooltips 2013-01-17 10:16:01 -05:00
Brandon Liu 48d93f2f38 tag autocomplete can filter keys by element type. 2013-01-16 23:20:56 -08:00
Tom MacWright eecc6b14fb First shot at tooltips cc @samanbb 2013-01-16 18:39:12 -05:00
Tom MacWright d8a587631b Fix TypeError from race condition between resetting and using
transforms.
2013-01-16 17:37:57 -05:00
Tom MacWright 1c757a7c20 Improve background cache logic. Fixes #411 2013-01-16 17:36:45 -05:00
Tom MacWright ef1af7a731 Only show tags that appear in greater than a percentage of cases. 2013-01-16 14:51:34 -05:00
Tom MacWright 140e6991ed Stack areas as well as ways. Fixes #409 2013-01-16 14:21:20 -05:00
Tom MacWright 6407fa464c Run intersection on difference changes, do not use compact. Fixes #334 2013-01-16 14:06:11 -05:00
Tom MacWright 0e9e14102e Cache fetch results, higher features limit 2013-01-16 13:54:53 -05:00
Tom MacWright 199584fbff Name drawing functions so we can profile them 2013-01-16 13:54:36 -05:00
Tom MacWright 8151b48d34 Request tiles at z15 rather than z16 2013-01-16 13:26:20 -05:00
Ansis Brammanis cb8dedf2c0 Fix element drag mousedown is listening to 2013-01-16 13:16:59 -05:00
Tom MacWright 8def2e0999 Remove style and references to it 2013-01-16 13:07:30 -05:00
Tom MacWright 6aae64bd62 Add waystack, fix bridge coloring 2013-01-16 13:06:01 -05:00
Tom MacWright 396896eec2 Merge branch 'master' of github.com:systemed/iD 2013-01-16 12:52:19 -05:00
Tom MacWright e3775844c8 Refactor lines, keep non-scoped fns out of scope 2013-01-16 12:52:06 -05:00
Ansis Brammanis a9de2500aa Fix undo right after drawing line or area 2013-01-16 12:43:29 -05:00
Tom MacWright 87c341d7e0 Fix jshint problems. 2013-01-16 12:39:35 -05:00
Ansis Brammanis a980695ee7 Avoid creating lines with < 2 nodes (or areas < 3) 2013-01-16 12:20:35 -05:00
Ansis Brammanis fc272199c7 Fix difference 2013-01-16 11:34:50 -05:00
Ansis Brammanis 0a1e16a319 Nodes with changed parents added to difference 2013-01-16 11:31:36 -05:00
Brandon Liu cc59b048e1 Fix reloading of tiles from API after save. 2013-01-15 23:06:58 -08:00
Tom MacWright b303cb796f Rename apply to close. Fixes #325 2013-01-15 18:31:52 -05:00
Ansis Brammanis 1a2b897d06 Fix closing inspector after delete 2013-01-15 17:23:00 -05:00
Ansis Brammanis 55ecf4d473 500ms debounce on typeahead taginfo calls 2013-01-15 13:34:15 -05:00
Ansis Brammanis 91a709685c draw_way only applies to currently selected way 2013-01-15 13:12:05 -05:00
Ansis Brammanis e35ac698a3 Fix notice display 2013-01-15 10:06:05 -05:00
Ansis Brammanis 754225aeb7 Autosave tags when closing inspector 2013-01-14 17:14:10 -05:00
Ansis Brammanis b18457f60b Fix leaking globals and add test case 2013-01-14 15:54:12 -05:00
Ansis Brammanis a0072bfa18 Add map.extent and use in geocoder 2013-01-14 15:36:52 -05:00
Tom MacWright 72afc6dcb9 Namespace UI components 2013-01-14 14:00:51 -05:00
Ansis Brammanis 1dc56aa73f Avoid aborting and re-requesting still wanted reqs 2013-01-14 12:12:59 -05:00
Ansis Brammanis 233b2647cd fix isLine logic (from jfire) 2013-01-14 11:46:45 -05:00
Ansis Brammanis dc9f7f6a03 stop addLine from continuing area's way 2013-01-14 10:45:54 -05:00
Tom MacWright 2f1e219d64 jshint tweak 2013-01-14 10:18:22 -05:00
Ansis Brammanis fcc981db60 Exit select mode if entity gets undone 2013-01-14 10:13:50 -05:00
John Firebaugh 1d707b0eb2 Match inners with outers
After thinking about how the `evenodd` fill rule works, I pretty sure
we don't actually need to do this. If I'm right, I'll back it out, and
it will be in the history if we need it for some other purpose.
2013-01-13 18:17:16 -08:00
John Firebaugh 5089e2370b Point-in-polygon algorithm
No tests. I didn't write it so I assume it's correct!
2013-01-13 17:20:04 -08:00