29 Commits

Author SHA1 Message Date
Martin Raifer
0e6ca91727 fix initial loading of pannellum viewer for vegbilder photos 2025-04-29 12:54:59 +02:00
Martin Raifer
81d94a138b fix mapillary's panorama viewer from loading properly
this was a regression from the previous commit (19957d0e3)

also, harmonize code slightly between different services
2025-04-29 11:50:37 +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
Martin Raifer
fa91fe7c0d fix zoom resetting wrongly when switching background mid-transition
see https://github.com/openstreetmap/iD/issues/10700#issuecomment-2832010049
2025-04-26 21:10:16 +02:00
Martin Raifer
f5eb4d2a51 don't de-select map feature when clicking on a street level photo 2025-04-15 18:14:59 +02:00
Kyle Hensel
7afecd39ec minor tweaks to make some tests pass 2024-09-03 19:23:21 +10:00
Martin Raifer
5951391ae6 fix typos 2023-08-10 17:37:05 +02:00
Martin Raifer
97fcb18d2a switch to (vegbilder's) zoomable plane photo viewer 2023-08-09 11:54:13 +02:00
Martin Raifer
e52ec96bad reset yaw when switching between 360° and planar photo
(and also immediately when switching between different 360° photos)
2023-08-02 16:49:07 +02:00
Martin Raifer
edb7c3b0f2 only fetch vegbilder layers if they are needed
i.e. when enabling the respective street-side photo layer
2023-08-02 16:35:57 +02:00
Martin Raifer
d7902e1388 only show regional street-level photo providers in the available region
and disable selection checkbox if not zoomed in enough to load the photos
2023-08-02 16:35:56 +02:00
Noenandre
f3bf7dbf4d Reorder execution of init.
Set "on" binding before awaiting cache reset.
Set "wfslayers" to a empty map
immediately on reset.
2023-07-23 14:16:19 +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
c7c130dae1 Use nullish coalescing operator where it makes sense. 2023-03-15 18:15:32 +01:00
Noenandre
a2a1fdc58a Tests for service/vegbilder is as comprehensive as similar providers. 2023-03-15 18:13:50 +01:00
Noenandre
4c6f3621f2 Use last calculated missing heading for null vectors. 2023-03-09 16:45:49 +01:00
Noenandre
2d74e4fde5 Small bugfix. 2023-03-09 16:39:06 +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
Noenandre
15f4438fad More info and localization in attribution bar. 2023-03-03 19:24:33 +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
Noenandre
9a7f473f20 Removed a variable, renamed a property. 2023-03-03 12:39:34 +01:00
Noenandre
58cceb03c2 Split concern for panoramic and flat photos to own module. 2023-03-03 01:29:55 +01:00
Noenandre
75dba4b6c7 Filter sequences too. 2023-02-22 21:30:55 +01:00
Noenandre
dbf8b9cec6 Estimate image direction (azimuth) if missing. 2023-02-22 14:33:38 +01:00
Noenandre
b8eb110a8f Order sequences by time, primarily, and not linear reference. 2023-02-21 23:22:47 +01:00
Noenandre
98975e064b Implemented image filtering. 2023-02-14 14:31:35 +01:00
Noenandre
990cab5856 Fetch available WFS image layers from OWS server. Use maps in cache, instead of objects. 2023-02-14 12:40:34 +01:00
Noenandre
5522338716 Rename pannellum-streetside dist folder to pannellum, since Pannellum isn't used by just Bing Streetside anymore.
TODO: Pannellum is loaded twice.
2023-02-14 12:25:43 +01:00
Noenandre
a2c56b7d4f Initial work for new street level photo provider "Vegbilder" from the Norwegian Public Roads Administration. 2023-02-14 12:15:55 +01:00