Bryan Housel
2c11b693b8
Merge branch 'edit_menu'
2017-02-25 15:29:01 -05:00
Martin Raifer
224059bdee
fix typo: iterate over imagery blacklist
...
see https://github.com/openstreetmap/iD/issues/3858#issuecomment-282130145
2017-02-24 13:45:02 +01:00
Bryan Housel
5ba72292ac
Fix mouse xy calculation for mousewheel scroll normalization
2017-02-23 21:45:36 -05:00
Bryan Housel
334188c6fe
Normalize mousewheel zooming across browsers
...
(closes #3029 )
2017-02-23 20:11:21 -05:00
Bryan Housel
f7c3de9545
Preserve backward compability with radial menu
...
Old menu behavior can be restored with 2 cookies:
- `edit-menu-style=radial` - Display menu as a radial menu, limited to 8 items
- `edit-menu-show-always=1` - Show menu on all clicks, not just contextmenu/right
2017-02-22 16:50:42 -05:00
Bryan Housel
e756520bd8
suppressMenu(true) is now the default
2017-02-21 15:47:22 -05:00
Bryan Housel
c5383c1f55
Darker unintrusive flash.. WIP flash operations on keypress
2017-02-10 16:39:08 -05:00
Kushan Joshi
ca25a34987
semver compliance for edit_menu
2017-02-09 13:03:12 +05:30
Bryan Housel
1a5f155e39
Fix zoom behavior bind in map, delay removals to avoid flicker
2017-01-18 23:44:03 +05:30
Bryan Housel
6ca4b13304
Store view transform and selectedIDs w/history, and undo/redo them
...
(closes #2204 )
2016-12-10 23:25:58 -05:00
Bryan Housel
6b18ea76ff
Hide labels along selected ways, or near selected vertices
...
(closes #3636 )
2016-12-07 15:38:14 -05:00
Bryan Housel
77b78a73ca
Complete orphaned d3-zoom gestures that were preventing clicks
...
(closes #2151 ), (see also d3/d3-zoom#60 , d3/d3-brush#18 )
Intercept `mousedown` and check if there is an orphaned zoom gesture.
This can happen if a previous `mousedown` occurred without a `mouseup`.
If we detect this, dispatch `mouseup` to complete the orphaned gesture,
so that d3-zoom won't stop propagation of new `mousedown` events.
2016-12-06 16:54:42 -05:00
Bryan Housel
aa3c1c8431
All sources have id now, so compare by id
...
Fixes an issue where a source might not compare strictly equal e.g.:
1. custom imagery gets blacklisted and replaced with a
`rendererBackgroundSource.None()`
2. which doesn't strictly === the `rendererBackgroundSource.None()` on the
background pane switcher
3. so the radio button would not appear checked
2016-12-04 21:47:46 -05:00
Bryan Housel
a7ac44f6e8
Refactor imageryBlacklists so it can be called without triggering a GET
...
Previous code was problematic because we need the function to
to properly blacklist custom imagery passed in through the url hash,
before iD is completely initialized. Triggering GET causes tests to
break because osm service testing has side effects :-/
2016-12-04 21:35:55 -05:00
Bryan Housel
c353684ad3
Add imagery blacklist tests to rendererBackground#baseLayerSource
2016-12-04 13:55:18 -05:00
Bryan Housel
80d9cd6c72
Use traditional interpolation for zoom interpolator, not fly-out-in
2016-11-23 09:55:16 -05:00
Bryan Housel
e331bb7f8c
Use imagery ids instead of names, update blacklist, npm run imagery
2016-11-17 14:16:52 -05:00
Bryan Housel
ff5372490b
Fix url parser to work with lat/lng when checking for "best" imagery
...
(closes #3586 )
2016-11-15 13:13:28 -05:00
Bryan Housel
93d50b4e87
Use live bound object for imagery array, remove context.imagery() accessor
...
Also update documentation, closes #3359
2016-11-14 11:16:45 -05:00
Bryan Housel
16ada1f29a
Better error handling for common osm api error conditions
...
* if 509 Bandwidth Exceeded / 429 Too Many Requests, prompt for login
(closes #2262 )
* if 400 Bad Request / 401 Unauthorized / 403 Forbidden - logout and retry
(closes #3546 )
2016-11-08 21:43:27 -05:00
Bryan Housel
f98b89cd15
Eliminate some more unnecessary lodash in hot code
2016-10-30 22:39:32 -04:00
Bryan Housel
6123782a9c
use _.throttle instead of _.debounce, call cancel for immediate redraws
2016-10-30 22:38:47 -04:00
Bryan Housel
457357598d
Merge branch 'performance-improvement-debounce-redraw' of https://github.com/guillaume/iD into guillaume-performance-improvement-debounce-redraw
2016-10-30 13:00:11 -04:00
Bryan Housel
e7f20a379e
Fix label autohiding
...
(closes #3464 )
2016-10-17 11:55:56 -04:00
Bryan Housel
07fa5fcc34
Refactor Entity, Node, Relation, Tags, Way from core to osm
2016-10-11 22:41:24 -04:00
Bryan Housel
1c3e778baf
Check for rtl url parameter for testing (rather than regex)
2016-10-08 12:45:01 -04:00
Bryan Housel
0d0e54fdff
Fix more namespaces that were missed in the first pass
2016-10-04 21:15:30 -04:00
Bryan Housel
3102a4ae6a
Rename all the things to include pseudonamespaces
2016-10-04 19:06:20 -04:00
Bryan Housel
6d2e999885
Fix enter/update selections for textpaths and text labels
2016-09-26 23:25:59 -04:00
Bryan Housel
cd4e6f038e
Fix and cleanup all map easing transitions, now supports eased zoom, pan
2016-09-22 23:51:40 -04:00
Bryan Housel
a6d683eaf7
Code cleanups in svg, ui for selection merging, fix Mapillary.
2016-09-17 23:26:49 -04:00
Bryan Housel
f1b918cf43
Fix map-in-map to use new d3 v4 zoom behavior
2016-09-12 21:40:58 -04:00
Bryan Housel
273407da3d
Fix svg layer selections, fix and add tests..
2016-09-09 14:19:13 -04:00
Bryan Housel
afb88f2ae6
Fix rendering selections for all the OSM layers
...
This includes some renames for clarity.. "surface" -> "selection"
to make it clearer that rendering functions take a selection, and
don't necessarily render to the literal `#surface` node anymore.
2016-09-08 22:37:06 -04:00
Bryan Housel
15b3a44c9a
Add projection.transform, simplify projection code, WIP on minimap
2016-09-07 08:59:31 -04:00
Tom MacWright
ed135ce9ef
Enable lib tests
2016-09-05 10:22:45 -04:00
Bryan Housel
8029d4de62
Fix zoomPanning
...
for simplicity, use raw mercator like context.projection()
2016-09-03 01:18:36 -04:00
Bryan Housel
a86f34b4ef
Pacify eslint, get build and tests running again
2016-08-26 01:15:07 -04:00
Tom MacWright
6f762a92a8
Fix dynamic panning and zooming
2016-08-24 10:30:19 -04:00
Tom MacWright
580b907b30
Fix timers
2016-08-24 10:11:21 -04:00
Tom MacWright
29f2c20e35
Fix selection usage
2016-08-24 09:34:30 -04:00
Tom MacWright
cdb533fa84
Begin d3 v4 update
2016-08-21 15:19:27 -04:00
Guillaume Carbonneau
1ce1119de2
Performance improvement. Debounce redraw call.
2016-08-18 00:39:20 -04:00
Tom MacWright
6341d4e4b5
one-shot build ( #3266 )
...
* One-shot development
* Move jsonp to module
* Tooltip -> module
* Remove d3.jsonp
* Fix tooltip lint
* Load all libs but d3 itself with require
* Add top-level brfs
* Unformat intro graph
2016-08-10 15:25:19 -07:00
Tom MacWright
af776501d3
Require locale, second pass ( #3259 )
...
* Require locale, second pass
* Remove t global, remove t where it isn't needed
2016-07-21 16:20:13 -04:00
Tom MacWright
604d1e2719
import lodash ( #3257 )
2016-07-19 12:04:16 -04:00
Kushan Joshi
39c82af158
Sort modules [eslint rule]
2016-07-06 12:12:08 +05:30
Kushan Joshi
780960c711
interim
2016-07-06 00:34:35 +05:30
Kushan Joshi
6a56ad547c
external modules for renderer
2016-06-22 12:34:43 +05:30
Kushan Joshi
46d68bca87
modularize iD.renderer
2016-06-17 12:53:19 +05:30