Commit Graph

170 Commits

Author SHA1 Message Date
Martin Raifer 121f3e2fb8 don't reauthenticate on HTTP 400 errors
since these are likely unrelated to authentication issues, but rather have to do with generic API errors or outages
2025-02-11 16:29:01 +01:00
Kyℓe Hensel 3011acc23c fix occasional test failures (#10690) 2025-01-22 15:16:45 +01:00
Kyle Hensel 108893c624 enable --no-isolate to speed up unit tests
This required fixing deferred code that was running after the unit test had unmounted
2024-10-16 13:42:51 +02:00
Kyle Hensel 7afecd39ec minor tweaks to make some tests pass 2024-09-03 19:23:21 +10:00
Mattia Pezzotti ebb68d610e Fix panoramax non existing inaccurate sequence (#10375)
fixes #10365
2024-08-03 21:08:57 +02:00
mattiapezzotti a9d8da10d1 prepared for pr 2024-07-12 00:01:05 +02:00
Martin Raifer b2b3009a64 .env oauth2 config: drop client secret; use URL if API_URL is empty 2024-07-05 16:15:47 +02:00
Martin Raifer 211b6dde5f upgrade to eslintv9 (config format, lint to updated rules) 2024-04-12 18:44:04 +02:00
Martin Raifer 83754e4a4a switch to Bing Maps API for Bing Streetside layer, fixes #10074
replaces the use of undocumented APIs for Microsoft's street level imagery service and gets rid of hardcoded values, e.g. for the `g` ("generation") parameter

see https://learn.microsoft.com/en-us/bingmaps/rest-services/imagery/get-imagery-metadata#get-streetside-metadata-centered-at-a-point for API docs

see also #10100
2024-02-16 18:29:23 +01:00
Martin Raifer 87a05f5815 migrate to osm-auth 2.3 2023-11-14 08:13:44 +01:00
Martin Raifer c4d1390270 use api.osm.org url for OSM API calls
see https://github.com/openstreetmap/operations/issues/951
2023-10-10 16:03:10 +02:00
Martin Raifer 5951391ae6 fix typos 2023-08-10 17:37:05 +02:00
Martin Raifer e8703e6bb6 Merge remote-tracking branch 'noenandre/vegbilder' into develop 2023-08-07 10:31:07 +02:00
Martin Raifer a460013991 fix test for fixed/updated nominatim API call 2023-08-04 17:30:53 +02:00
Martin Raifer 7b622e040b Merge branch 'develop' into vegbilder 2023-07-20 17:21:45 +02:00
Noenandre ddc9c6c674 Remove a global module variable "_availableLayers"; move information to cache.
Add new test "fetches available layers".
2023-03-25 17:27:41 +01:00
Noenandre a2a1fdc58a Tests for service/vegbilder is as comprehensive as similar providers. 2023-03-15 18:13:50 +01:00
Noenandre c824fe1937 Create sequences for each (wfs)layer instead of for all points at once. Rearrange cache. 2023-03-04 14:04:02 +01:00
Kyℓe Hensel a17b5faf5f Send 'Accept-Language' header on Nominatim API calls (#9501) 2023-03-03 18:34:24 +01:00
Noenandre 255c80d341 Test for init and reset methods on service.
Bugfix for reset.
Adjusted expectation of number of svg layers.
2023-03-03 16:43:54 +01: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 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 94db5c23b8 Merge remote-tracking branch 'wvanderp/switchToKarma' into develop 2021-12-07 19:59:16 +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
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
Wouter van der Plas f2c77a0e62 Nominatim 2021-10-23 17:50:18 +02:00
Wouter van der Plas e7d9e050cf Mapillary 2021-10-23 17:50:18 +02:00
Wouter van der Plas 4a8f423997 taginfo 2021-10-23 17:50:18 +02:00
Wouter van der Plas 83ff3c4f5e first setup 2021-10-23 17:50:18 +02:00
Bryan Housel 33fab5580b Before calling init() make sure the assetPath is set
init kicks off building the ui, which can fetch spritesheets for the <defs>
The assetPath needs to be set otherwise these files will not be found
2021-08-16 22:06:42 -04:00
Nikola Pleša 7a0d8adb7b Switch to Mapillary API v4 2021-06-15 10:13:07 +02:00
Nikola Pleša 6cd17713fa Use Mapillary vector tiles for images, sequences and map features 2021-03-01 10:19:41 +01:00
Quincy Morgan 1da280c79d Enable func-call-spacing eslint rule 2020-11-10 14:33:35 -05:00
Quincy Morgan 04b3a788f9 Add lint:fix script
Enable no-trailing-space eslint rule
2020-10-23 13:24:44 -04:00
Quincy Morgan a33ab44e81 Merge branch 'develop' into photo-filter-temp
# Conflicts:
#	css/80_app.css
#	modules/services/mapillary.js
2020-10-12 16:16:32 -04:00
Quincy Morgan 80eb197212 Merge pull request #7752 from peternewman/patch-6
Fix a lot of typos and initial codespell action run
2020-10-05 14:02:19 -04:00
Quincy Morgan ad54a6e140 Support opening iD with a Streetside or OpenStreetCam photo specified as a URL parameter (close #6398)
Bring the APIs for the three street level services closer in sync
2020-10-02 13:30:36 -04:00
Quincy Morgan 73a826cefc Fix code tests for bbbf401232 2020-09-24 08:30:19 -04:00
Quincy Morgan 9510578107 Merge branch 'mapillary-update' into develop
# Conflicts:
#	modules/services/mapillary.js
#	modules/svg/mapillary_map_features.js
#	modules/svg/mapillary_signs.js
2020-09-13 16:34:25 -04:00
Quincy Morgan 03ca12741f Make imageryBlocklists return regex objects instead of strings
Fix performance bug due to checking background source blocks too often
2020-09-04 10:09:47 -04:00
Quincy Morgan a72a2bb860 Hide background sources from the list if they're blocked (close #7905) 2020-09-03 12:30:59 -04:00
Nikola Plesa 8993cd2a29 fix: update unit tests 2020-08-07 12:48:51 +02:00
Nikola Plesa fe1aabbf31 fix: unit tests 2020-08-03 14:08:10 +02:00
Nikola Plesa 6a8215d43e Fix unit tests 2020-07-27 10:05:03 +02:00
Nikola Plesa 22bc5121a4 feat: date and username filtering for photo overlay layers 2020-07-27 09:42:59 +02:00
Nikola Plesa d106dee0c6 feat: date and username filtering for photo overlay layers 2020-07-23 13:28:19 +02:00
Peter Newman 2c47a11008 Fix the seemingly safe spellings found by codespell
Untested, only checked by inspection.
2020-06-28 23:06:44 +01:00