Commit Graph

131 Commits

Author SHA1 Message Date
Bryan Housel f9f369b806 Merge branch 'master' of https://github.com/cedarstudios/iD into cedarstudios-master 2017-01-03 17:10:15 -05:00
Nick Doiron 94ee7d4916 move changes to svg display name 2017-01-03 18:18:18 +08:00
Bryan Housel fc5aea739f Update fontstack to use better system fonts over Helvetecia Neue 2017-01-02 18:51:12 -05:00
Milad Karbasizadeh af1ac89df7 Rename fix-string.js and fixTextForSvg function name to a more readable name.
User regex to detect arabic characters.

Fix editing bugs.
2017-01-02 14:48:22 +03:30
Bryan Housel fac0429c4c Don't call updateTags extra times
(closes #3650)
2016-12-17 22:38:28 -05:00
Bryan Housel a3de3534c3 Don't reuse click handler in enter selection, set on update
(closes #3638)
2016-12-08 11:08:21 -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 9b7d79a3fe Use live bound object for presets object, change context.presets() getter 2016-11-14 15:44:02 -05:00
Bryan Housel 3667541b2a Add background tooltips to label, not list item
(closes #3581)

This is to avoid conflicting with the tooltip on the custom button,
which is a descendent of the list item.
2016-11-13 20:41:22 -05:00
Bryan Housel a2933bc42d Ensure setCustom calls clickSetSource, also update custom source datum 2016-11-13 20:34:13 -05:00
Bryan Housel c46c5d94f5 Prevent imagery offset nudging buttons from getting stuck
(closes #3576)
2016-11-10 14:04:03 -05:00
Bryan Housel 02850f3c60 Show scale bar for values <1m or <1ft
(closes #3567)
2016-11-09 21:56:01 -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
Martin Raifer 7069ca8ef7 fix info box content and crash when drawing areas while info box is open 2016-11-08 17:21:08 +01:00
Martin Raifer cc599f3c03 fix undefined underscore keycode (#3564) 2016-11-08 12:13:31 +01:00
Bryan Housel 48621d3155 Add callback to ui() that will be called after loadLocale completes
(closes #3550)
2016-11-07 17:03:33 -05:00
Bryan Housel 20406f81ca Merge pull request #3539 from openstreetmap/vertex-keyboard-nav
Add vertex keyboard navigation
2016-11-07 14:06:59 -05:00
Bryan Housel cb6801c2b6 Address field improvements and bugfixes
(closes #3553)

* eliminate duplicate values in suggestions
* set minItems(1) on all combo boxes
* setup dropdowns for all common address fields
2016-11-05 23:48:14 -04:00
Bryan Housel 3224130821 Add uiCmd to fix modifier, add keybind arrays to simplify code 2016-11-04 10:17:30 -04:00
Bryan Housel 1043402b88 Don't call behavior.off unless behaviors were actually added 2016-11-01 21:42:37 -04:00
Bryan Housel 98d484fc1f Restore hover behavior to restrictions editor, add breathe behavior
The issue was: now that selections are immutable you can't add behaviors
to them unless they are already entered.  i.e. the surface selection in
enter does not end up being the real surface after merging to update.
2016-10-30 11:35:36 -04:00
Bryan Housel 8b6e5db004 Fix turn restrictions editor enter/update selection issues 2016-10-30 00:01:05 -04:00
Bryan Housel 46b6086dcf Update projection arg for d3.geoPath(), deprecate d3.geoClipExtent() 2016-10-29 15:27:06 -04:00
Bryan Housel 226d8d6676 Leave transition duration as undefined, interrupt existing transitions 2016-10-27 15:11:50 -04:00
Bryan Housel 59496c4547 Fix bugs in intro
* connection.flush is now connection.reset
* Calculate correct tooltip dimensions after changing content
* Position tooltip based on visible box, not full box
(closes #3463)
2016-10-27 14:15:23 -04:00
Bryan Housel 5fb966c35b utilSetDimensions/utilGetDimensions improvements
utilSetDimensions should always return a selection for chaining
Add `force` argument to utilGetDimensions to override cached dimensions
2016-10-27 14:13:39 -04:00
Bryan Housel 8fb5f3a5a1 Degunk data sources by named-importing single toplevel key
See: https://github.com/openstreetmap/iD/issues/3403#issuecomment-245150454

This change drops the iD.js bundle size from 4.5MB to 3.4MB, and makes it
much more readable, which is nice for debugging.  This does not affect the
minified bundle size.
2016-10-26 16:29:49 -04:00
Bryan Housel b93e9f1a1a Merge enter selection into update selection for raw member list
(closes #3524)
2016-10-26 11:31:19 -04:00
Bryan Housel 699da57ad1 Let user know if the documentation is a redirect page
(closes #3337)
2016-10-25 11:03:35 -04:00
Bryan Housel e4e2298ad6 Fix TagReference not updating
(closes #3521)
2016-10-25 10:19:39 -04:00
Bryan Housel e83b2ea2be Allow delete key without modifier as shortcut for deleting
(closes #3455)

Also fixed a minor bug in `iD.uiCmd` that was causing keyboard shortcuts
like '⌘⌫' to convert to 'Ctrl+Backspace+'  (note extra trailing '+')
It affected only the tooltip display, not the key event binding.
2016-10-24 23:57:44 -04:00
Bryan Housel b5c95af3b7 Refactor from coreConnection to serviceOsm
(closes #3497)
2016-10-19 09:25:34 -04:00
Bryan Housel efd9e6df4b Memoize and avoid extra calls to utilDetect() 2016-10-18 21:48:39 -04:00
Bryan Housel bf857c419a Center label baseline hack for IE11, Edge
(closes #3020)
2016-10-18 21:28:20 -04:00
Bryan Housel ad17220577 Pacify eslint 2016-10-18 00:44:31 -04:00
Bryan Housel 053074d076 Export live binding for services in iD.services, fix init/reset
(closes #3324)

Previously we allowed devs to swap out services that they didn't need.
This became difficult now that ES6 exports are immutable bindings.
But we can wrap the immutable bindings themselves in a live object,
to get back the flexibility that we used to have.

This change also drops the `taginfo` accessor on Context, since devs who want
to swap out taginfo service with something else can now do so through the live
binding.  `iD.services.taginfo = myTaginfo()`
2016-10-14 10:38:09 -04:00
Bryan Housel f50e80d0b5 Refactor Intersection, Multipolygon from geo to osm 2016-10-11 23:09:27 -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 6224ad3290 Merge branch 'rtl_editor' of https://github.com/mapmeld/iD into mapmeld-rtl_editor 2016-10-08 10:01:20 -04:00
Bryan Housel 84ba112ff4 Rebind clickhandler in update selection (bc it uses wrap selection) 2016-10-07 15:28:16 -04:00
Bryan Housel 7f61d36a5e Rename countryCode->code to avoid rollup name collision bug 2016-10-05 23:01:56 -04:00
Nick Doiron c22867c279 search results and layer names 2016-10-05 01:38:13 -04:00
Nick Doiron 581bade5f3 update RTL detection 2016-10-05 01:38:13 -04:00
Nick Doiron 6bc9e63fc3 map controls and menus 2016-10-05 01:33:16 -04:00
Nick Doiron a9ee42bd94 undo and redo buttons 2016-10-05 01:32:45 -04:00
Nick Doiron 34a6382752 revised RTL features and detection 2016-10-05 01:31:14 -04:00
Bryan Housel 87950fd472 Fix lib export, flatten names in tests and docs 2016-10-04 21:56:09 -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 4a94474a3a Better guard code around wiki services, always call callbacks 2016-09-28 14:42:30 -04:00