Martin Raifer
95d34835e2
upgrade sinon, don't exclude it from dependabot anymore
2025-06-04 10:14:53 +02:00
Martin Raifer
5c721808c6
change variables for better readability, closes #11022
2025-05-06 11:25:32 +02:00
Martin Raifer
19957d0e39
keep photo viewer state on reset, properly clean up active marker
...
when switching between photos from different providers
fixes #10987
2025-04-29 09:38:18 +02:00
MOHAMED ALI FAWZI
9590c88646
Panoramax: Adopt "copy id" feature from mapillary ( #10856 )
2025-03-19 20:13:46 +01:00
Mattia Pezzotti
d1e5c2910c
add date slider for street level photos, and more ( #10394 )
...
full list of enhancements:
* year slider to filter photos by freshness
* toggle active streetlevel layers with shortcut `shift+P`
* hfov, pitch and direction is now held between sequences and images as asked in #10392
* fix for #10361 (only panoramax)
* added tests and jsdoc
* add ticks for existing photos on slider
* general bug fixes
* rudimentary support for toDate in date slider (only when iD is started with a "to" date in the hash parameter: show a second slider to visualize and set the "to" date)
---------
Co-authored-by: Martin Raifer <martin@raifer.tech >
2025-03-18 21:09:37 +01:00
Martin Raifer
a33c340356
adjust tests for new rate limit handling
...
see 91aa85a1c
2025-03-11 16:00:43 +01:00
Martin Raifer
91aa85a1c0
better handling of rate limited API map calls and other API errors
...
* retry all unsuccessful map calls after waiting 8 seconds (spinner continues to indicate loading state)
* also logged-in users can be rate limited: add dedicated error message
* don't log users out when requests return 401/403 (except on the _get own user data_ request, which would indicate that the oauth token was revoked): it's better to show the error message if a legitimate api call was actually unauthorized
closes #10299
2025-03-11 15:40:05 +01:00
Kyℓe Hensel
6f16060a78
mass-replace done() function with async/await ( #10781 )
2025-02-17 13:10:04 +01:00
Kyℓe Hensel
c1ca888b72
linkify keys & tags in the preset docs from the wiki ( #10763 )
2025-02-12 15:42:29 +01:00
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