Commit Graph

1679 Commits

Author SHA1 Message Date
Martin Raifer
f19a55fa13 Add support for icons on multiCombo/semiCombo fields (#9433) 2023-05-26 20:35:12 +02:00
Martin Raifer
6c362b6517 Merge branch 'develop' into 1ec5-number-field-format-3615 2023-05-26 13:06:09 +02:00
Martin Raifer
f517b867de add tests for #9650 2023-05-25 15:24:52 +02:00
Martin Raifer
453fb424f1 fix small typo 2023-04-28 12:31:39 +02:00
Minh Nguyễn
653582f268 Added tests of padding zero 2023-03-04 18:52:50 -08:00
Minh Nguyễn
023907f9e2 Fixed incrementing/decrementing formatted numbers
The float formatter function now takes a number of fraction digits to return.
2023-03-04 18:36:06 -08:00
Minh Nguyễn
5d224a41cd Strip literal (bidi) characters when parsing numbers 2023-03-03 22:42:15 -08:00
Minh Nguyễn
ecb7c20bbf Avoid truncation when formatting numbers 2023-03-03 22:42:14 -08:00
Minh Nguyễn
2ba7177080 Polyfill inadequate Intl support
Ensure that formatting is balanced with parsing to avoid truncating numbers.
2023-03-03 22:42:14 -08:00
Minh Nguyễn
252828bb4b Localize numbers in numeric fields 2023-03-03 22:42:14 -08:00
Kyℓe Hensel
43b4b4f02b render right-sided arrows for features with lifecycle prefixes (#9493) 2023-03-03 18:53:10 +01:00
Kyℓe Hensel
a17b5faf5f Send 'Accept-Language' header on Nominatim API calls (#9501) 2023-03-03 18:34:24 +01:00
Martin Raifer
dfd46a9e06 update tests, add to changelog 2023-01-19 12:03:36 +01:00
Martin Raifer
37e2131ec5 fix test 2022-12-20 09:56:37 +01:00
Martin Raifer
fc75d5f2a1 fix another regression (in b72f3aa), add tests 2022-11-24 19:12:23 +01:00
Martin Raifer
21e54f956d don't preserve preset's field tags if presets are sub-presets of each other
fixes #0372
2022-11-14 18:58:37 +01:00
Martin Raifer
8b2ca39521 fix test to match behavior after 635c4985 2022-11-08 19:29:18 +01:00
Bryan Housel
2b2a71f597 Don't pre-resolve and index complex locationSets into GeoJSON.
This was taking a lot of time at app startup.

Instad now we resolve and index only the include and exclude parts.
We can still determine the valid locationSets at runtime in `locationSetsAt()`
by checking the `_locationIncludedIn` and `_locationExcludedIn` caches.

This also upgrades the locationManger to an ES6 class.

This also includes some hacky code in nsi.js so that the NSI will continue to work.
The NSI matcher can build its own location index, but it doesn't need to do this.
We monkeypatch a few of the matcher collections to work with the new LocationManager.
2022-10-28 10:49:01 -04:00
Martin Raifer
097c6bd774 skip unsupported/invalid restrictions instead of fallback to "no_*"
closes #9337 (at least kind of… for a proper solution see #6460)
2022-10-27 18:36:05 +02:00
Martin Raifer
dd30a39d74 fix logic bug, extend test coverage 2022-10-27 17:07:32 +02:00
Martin Raifer
52ae374cee add tests 2022-10-13 13:47:16 +02:00
Martin Raifer
a2cacaaf24 Don't auto-suggest undocumented tag values which have fewer than 100 uses
* previously, this check was based on the "fraction" of the respective tag value, which excluded more values for common tag keys, but fewer for less common ones.
* this sets a limit of 100 uses for undocumented tags (key=value pairs)
* tags with a wiki page are always allowed
* this harmonizes the heuristic of which tags to show between preset fields and the raw tag editor (previously, there was an additional `count > 10` filter present in combo fields, which is now uncessary)

closes #9227
2022-08-01 19:10:18 +02:00
Martin Raifer
0c1d4c7c44 Merge remote-tracking branch 'faebebin/fix/9176-connect-features-crossing-with-pedestrian-signals' into develop 2022-07-19 16:38:18 +02:00
Martin Raifer
6526d655f6 further tweak and add tests for last map location restore
see #9146
2022-07-19 13:04:44 +02:00
faebebin
9dcc6d1e7d Fix connect features when crossing with pedestrian signals 2022-06-24 19:02:33 +02:00
Kyℓe Hensel
724462ec47 consider lifecycle prefixes in osmTagSuggestingArea (#8881) 2022-06-06 15:56:31 +02:00
Martin Raifer
280acfa661 Replace RapiD credentials with iD credentials 2022-06-02 14:46:11 +02:00
Bryan Housel
6058f89460 Upgrade to osm-auth v2 which uses OAuth2 to connect to OSM API 2022-06-02 13:07:50 +02:00
Martin Raifer
29d4ab6866 search presets by tag "key=value" syntax
closes #8869
2022-05-25 10:58:08 +02:00
Martin Raifer
d486ab197d sort preset search results by matching aliases, add tests 2022-05-25 10:25:29 +02:00
Kyℓe Hensel
72af994b2c remove other token formats from imagery_used (#8976) 2022-02-11 20:00:05 +01:00
Martin Raifer
f6e4596b59 remove now unneeded refrences to and workarounds for phantomJS 2022-02-03 13:12:00 +01:00
Benjamin Clark
9bfcd56c35 Fix bug that was causing google validation warnings to appear over changesets with the approved google africa building dataset. 2021-12-09 12:33:27 -05:00
Martin Raifer
94db5c23b8 Merge remote-tracking branch 'wvanderp/switchToKarma' into develop 2021-12-07 19:59:16 +01:00
Martin Raifer
144f3e9d22 Merge remote-tracking branch 'k-yle/custom-data-numbers-bug' into develop 2021-12-07 12:24:23 +01:00
Thomas Petillon
3ff06f9045 Fix relation handling on way split
Depending on which way is the longest, the new way is inserted into the
relation before the existing one. This case must be explicitly handled
for the relation to remain correct.
2021-12-06 21:25:23 +01:00
Thomas Petillon
21f171863c Keep the oldest IDs alive when merging nodes into a way 2021-12-06 21:25:22 +01:00
Thomas Petillon
7a1d08f80e Return the empty string when calling toOSM() on entities with test IDs 2021-12-06 21:25:22 +01:00
Thomas Petillon
fab6dfa3dd Add the utilCompareIDs() function 2021-12-06 21:23:38 +01:00
Thomas Petillon
23b3bc27b6 Keep the oldest ID alive when merging polygons 2021-12-06 21:23:38 +01:00
Thomas Petillon
87ca2b09cc Keep the oldest interesting ID alive when merging nodes 2021-12-06 21:23:38 +01:00
Thomas Petillon
e9c7436289 Use utilOldestID() when joining ways 2021-12-06 21:23:38 +01:00
Thomas Petillon
e1898e5c56 Add the utilOldestID() function 2021-12-06 21:23:38 +01:00
Martin Raifer
e5aedb249f add basic test case for t.append method 2021-11-30 11:31:58 +01:00
Martin Raifer
6e6becb4e4 add test for geojson sanitation of non-string properties 2021-11-23 13:35:05 +01:00
Martin Raifer
25d4ff100f rename all openstreetcam references to kartaview
closes #8807
2021-11-16 17:42:53 +01:00
Wouter van der Plas
5305b4fb46 removed formatting 2021-10-25 00:50:53 +02:00
John Firebaugh
053b652548 More typos 2021-10-24 11:06:26 -07:00
Wouter van der Plas
2a28f32f7a fixed more tests 2021-10-23 17:50:33 +02:00
Wouter van der Plas
a87142aaf3 some updateds 2021-10-23 17:50:18 +02:00