Martin Raifer
e4d34c2203
improve sorting search results categories:
...
1. direct OSM id results (e.g. `node/123`)
2. local osm data matches
3. lat/lon coordinate
4. geocoded results
5. other results (currently: only guessed OSM ids if the search looks like a number)
2025-03-21 17:58:23 +01:00
Martin Raifer
607f953465
add alternative formats for coordinate search: ( #10805 )
...
* zoom/x/y – copy/paste from an osm.org URL or web map with map-hash param (this also sets map zoom to the respective value)
* x/y – like the above, but does not set zoom level
* x y – where x and y are numbers in the user's locale's number format
2025-03-11 21:20:21 +01:00
Marwin Hochfelsner
a5b9479429
Change zoomToNote to moveToNote ( #10819 )
2025-02-28 09:57:13 +01:00
Deeptanshu Sankhwar
f7fc707159
Show both lat/lon and lon/lat when searching coordinates ( #10725 )
2025-02-11 12:50:07 +01:00
Martin Raifer
bb57d34413
fix: coordinate search result's label should upate while typing
2025-01-31 16:00:31 +01:00
Kyℓe Hensel
a585e7f946
fix crash when searching for coordinates ( #10679 )
2025-01-15 11:10:12 +01:00
Martin Raifer
e0937f34bb
also highlight search results when focusing entries using keyboard (tab)
2025-01-11 14:02:30 +01:00
Martin Raifer
415c30e60b
fix search results from being stuck in highlighted state
...
fixes #10661 , replaces and closes #10666
See https://github.com/openstreetmap/iD/pull/10666#issuecomment-2585256927 for more details about this fix
2025-01-11 14:02:29 +01:00
Martin Raifer
342a03bcfe
allow type/id syntax in id hash param, and add support for notes
2024-05-28 20:18:53 +02:00
NaVis0mple
01d650d450
Expand DMS format and fix sec rounding logic ( #10066 )
...
Most DMS format parsed by @mapbox/sexagesimal,
add a expandable matcher and two new formats for coordinates in DMS format in search bar
example: `35 11 10.1 , 136 49 53.8` (D M SS format), or `35 11.168 , 136 49.896` (D MM format)
2024-02-02 15:26:47 +01:00
NaVis0mple
59668638ac
Search OSM notes by ID ( #10062 )
2024-01-24 13:32:35 +01:00
Martin Raifer
20b72a2b68
only render route colours if the value is a valid color
...
addresses https://github.com/openstreetmap/iD/pull/9424#discussion_r1046495633
2023-11-17 13:47:16 +01:00
Martin Raifer
beea585251
Merge branch 'develop' into relation-colours
2023-11-14 10:02:55 +01:00
Kyℓe Hensel
0ec1b45bf9
tweak regex when searching for a feature ID ( #9520 )
2023-03-06 13:58:48 +01:00
Martin Raifer
4e3e942127
show (route) relation colours in lists and comboboxes
2022-12-12 22:49:50 +01:00
Martin Raifer
60ee70f016
replace parseFloat with Number
2022-12-02 13:41:48 +01:00
Martin Raifer
cc6f16d480
Merge branch 'develop' into accessible_ui
2021-12-07 16:22:01 +01:00
Milos Brzakovic (E-Search)
30ef0b80e1
headings - more appropriate h2's and disclosure h3
2021-12-01 18:17:19 +01:00
Martin Raifer
9f3f8e1366
rename method
2021-11-29 19:26:18 +01:00
Martin Raifer
f3d05e4b01
fix restrictions field and global search results
2021-11-29 19:09:10 +01:00
Martin Raifer
d78c357588
replace raw html injection of localized texts
...
by using d3 to insert the localized text spans directly into the DOM
2021-11-26 18:51:45 +01:00
Martin Raifer
040257fd44
replace unnecessary setting of raw "html" with "text"
2021-11-18 18:53:33 +01:00
Bryan Housel
a0b7f9f99f
Pass d3_event to click handler
2021-03-12 09:55:38 -05:00
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