Commit Graph

56 Commits

Author SHA1 Message Date
Quincy Morgan
99689f65b2 Update missed d3 v6 endpoints (re: #8056) 2020-10-21 19:02:38 -04:00
Quincy Morgan
21a49bbec8 Initial support for D3 v6.2.0 2020-10-06 15:08:39 -04:00
Quincy Morgan
a0d4d01804 Minor styling fixes 2020-09-24 13:11:38 -04:00
Quincy Morgan
5435082d9c Revert t function to returning the plain string by default
Add `t.html` function for getting the string with the `lang` attribute
2020-09-22 12:03:29 -04:00
Quincy Morgan
a3549f9a76 Merge branch 'develop' into lang-attributes
# Conflicts:
#	modules/ui/commit_warnings.js
#	modules/ui/field.js
#	modules/ui/fields/wikidata.js
#	modules/ui/fields/wikipedia.js
#	modules/ui/full_screen.js
#	modules/ui/panels/history.js
#	modules/ui/sections/entity_issues.js
#	modules/ui/sections/map_features.js
#	modules/ui/sections/raw_member_editor.js
#	modules/ui/sections/validation_rules.js
#	modules/ui/tag_reference.js
2020-09-22 10:55:07 -04:00
Quincy Morgan
ed14595784 Adjust styling 2020-09-22 09:37:52 -04:00
Quincy Morgan
6f2a746440 Standardize return key comments 2020-09-17 15:20:33 -04:00
Quincy Morgan
32f8274929 Make t function return a span element with a lang attribute unless html: false is specified in the options (re: #7963)
Update `text` functions to `html` to support inserting the `span` elements
Specify `html: false` for various instances where a `span` is not desired, e.g. `placeholder` and `title` attributes
2020-09-15 21:56:22 -04:00
SilentSpike
42f0b3dcd1 Fix GPS coordinate searches returning OSM elements
Simply let a loction search match take priority over an ID pattern
match
2020-09-15 20:51:32 +01:00
Quincy Morgan
b980e47c3c Continue making the UI responsive to text zoom (re: #7965) 2020-09-10 11:15:24 -04:00
Quincy Morgan
969a4254fd Revert "added function to strip whitespace from searches" 2020-09-03 14:52:33 -04:00
Nate Grobe
1de39ad9c6 changed stripWhitespace function to use string.prototype.replace per secan's suggestion 2020-07-24 10:31:42 -04:00
Nate Grobe
4b4afb051c fixed indentation 2020-07-21 00:02:55 -04:00
Nate Grobe
e425caeba8 added function to strip whitespace from searches 2020-07-20 17:16:35 -04:00
Alex Hennings
0789b861b4 Updating regex to simplify and account for leading zeros in the element id. 2020-07-10 13:37:16 -04:00
Alex Hennings
009f7f2664 Fixing whitespace. 2020-07-09 11:08:15 -04:00
Alex Hennings
a0de2c7706 Fix https://github.com/openstreetmap/iD/issues/7627
Accept a variety of formats in Feature Search when specifying an element by type and id.
For example: n123, n 123, node123, node 123 or even https://www.openstreetmap.org/node/123/history#map=19/43.66140/-70.25415
2020-07-09 11:05:51 -04:00
Quincy Morgan
f14577b2d0 Fix lint warning 2020-06-05 14:32:59 -04:00
Quincy Morgan
fac0eea761 Use eased zoom when selecting features from search results and zoom to their full extent 2020-06-05 12:12:37 -04:00
Quincy Morgan
3506389d83 Fix JS error when zooming to lat/lon values coded in search bar (close #7670) 2020-06-05 12:06:21 -04:00
Quincy Morgan
60f7dc7c0b Replace presets property of context with singleton
Remove utilPreset
2020-04-01 13:08:45 -07:00
Quincy Morgan
a1af118f0e Ensure locales and presets are loaded before the UI loads (close #7406)
Consolidate localization behavior and init to a coreLocalizer function and singleton
Explicitly support `en-US` locale
Rename coreData to coreFileFetcher and export a singleton rather than using a property of coreContext
Add `apiConnections` property of coreContext to simplify adding a source switcher
Replace some init functions with re-callable, promise-supporting `ensureLoaded` functions
Make coreContext itself load the UI if a container has been specified at init time
Fix code tests
2020-03-31 12:23:31 -07:00
Quincy Morgan
3c0b926ec7 Replace coreContext.geometry function with a more explicit coreGraph.geometry function 2020-03-21 14:23:44 -07:00
Quincy Morgan
fac613e1dc Remove context.childNodes function 2020-03-21 13:56:11 -07:00
Quincy Morgan
05925b15f2 Use standard hover-highlighting mechanism in feature search results list 2020-02-13 10:20:32 -08:00
Quincy Morgan
5468b66eda Fix issue with searching features with a deleted feature in history 2020-01-06 13:44:41 -05:00
Quincy Morgan
a319bf75d6 Search all downloaded features instead of just visible ones on 2.x (re: #6516, re: 480140442677644ba3d758565b7d08672d037976) 2019-12-12 13:05:55 -05:00
Quincy Morgan
f6266de357 Show all OSM entity options when searching for a number without a prefix (close #7112) 2019-12-12 12:45:44 -05:00
Quincy Morgan
d01bb78707 Reduce circular dependencies caused by importing from indexes, the location of the validation models, and the location of areaKeys (close #6237) 2019-04-24 13:45:59 -07:00
Bryan Housel
3fe6c0dbe7 Support more eased transitions, cleanup code
(re: #3967, #5169, #5407)
2019-01-16 13:42:32 -05:00
Bryan Housel
152022aec4 Use context.keybinding for keybindings that don't change
(closes #5487)
2018-11-13 20:57:21 -05:00
Bryan Housel
bb30cbf555 Move lib/d3.keybinding.js -> util/keybinding.js
almost none of the original d3 "plugin" code remains
2018-11-13 13:42:09 -05:00
Bryan Housel
b238d442a6 Adjust default zoom for points to z19
(closes #5099)
2018-06-21 01:33:18 -04:00
Bryan Housel
470835b38f Extract all graphics from iD sprite, reassemble with svg-sprite
All iD sprite graphics are now prefixed with `iD-`
Also includes support for sending the preset logos to taginfo
2018-06-08 16:06:46 -04:00
Bryan Housel
db96246ddf Create fake entities for nominatim serach results, so they can be localized
(closes #4725)
2018-01-26 00:41:04 -05:00
Bryan Housel
0bb812c916 Merge pull request #4672 from openstreetmap/1ec5-num-format-3597
Localize numbers, units in scale, info panels
2018-01-23 18:05:37 -05:00
Bryan Housel
efc2678610 Fix feature list / current view searching
(closes #4690)
2018-01-18 17:55:14 -05:00
Minh Nguyễn
702e3d2a90 DMS coordinates 2018-01-09 03:25:55 -08:00
Minh Nguyễn
fe8c218fb3 Localized geocoded coordinate formatting 2018-01-09 02:24:03 -08:00
Bryan Housel
3440b5523c Use ⌘F to focus the feature search box
(closes #4545)
2017-12-06 01:19:02 -05:00
Bryan Housel
3d13620705 Convert lodah-es and d3 to named imports for ui 2017-09-26 11:22:43 -04:00
Seth Fitzsimmons
41ee1236d9 Omit global search UI when no geocoder 2017-05-09 17:01:49 -07:00
Bryan Housel
2c11b693b8 Merge branch 'edit_menu' 2017-02-25 15:29:01 -05:00
Bryan Housel
e756520bd8 suppressMenu(true) is now the default 2017-02-21 15:47:22 -05:00
Bryan Housel
2314acfec7 Add utilNoAuto to remove autocorrect/spellcheck features from inputs
(closes #3839)
2017-02-14 17:19:24 -05:00
Bryan Housel
3408ef1282 Bump sexagesimal dependency to 1.0.0 2017-02-13 11:56:33 -05:00
Kushan Joshi
781f4540e0 Add a pluggable geocoder 2017-01-13 15:42:03 +05:30
Bryan Housel
9b7d79a3fe Use live bound object for presets object, change context.presets() getter 2016-11-14 15:44:02 -05:00
Bryan Housel
07fa5fcc34 Refactor Entity, Node, Relation, Tags, Way from core to osm 2016-10-11 22:41:24 -04:00
Bryan Housel
3102a4ae6a Rename all the things to include pseudonamespaces 2016-10-04 19:06:20 -04:00