Commit Graph

419 Commits

Author SHA1 Message Date
Martin Raifer
4d78e80ea1 fix scrolling glitch in Firefox on Windows and Linux/Xorg
For some elements, Firefox reports wheel deltas measured in lines (see https://developer.mozilla.org/en-US/docs/Web/API/WheelEvent/deltaMode), which we need to convert to pixels. The previous routine hugely overestimated the conversion factor if the deltaY as slightly bigger (not sure where the exp function came from originally, it does not make much sense IMO).
The lines-to-pixels factor does not seem to be quite consistent between different Firefox builds, but this compromise factor should be good enough, I hope.

PS: Firefox on Mac OS does not report deltas as lines anymore it seems.

closes #10825
2025-03-03 21:06:24 +01:00
Martin Raifer
f4d4a9e3b0 treat indoormark=* as indoor features, closes #10808
and don't classify `indoor=no` as indoor features
2025-02-24 18:21:39 +01:00
Marwin Hochfelsner
0a6cbf3ebc Sort tiles by zoom (#9504)
to make sure that low zoom tiles don't hide higher resolution tiles. This can be relevant in case of tile loading errors or around the coverage border of a tile service.
2025-02-18 12:00:36 +01:00
Marwin Hochfelsner
6026d69672 Replace setTimeout with ontransitionend for easier customizability (#10785) 2025-02-18 10:52:58 +01:00
Kyℓe Hensel
f513ccd03d enable intellisense for the main classes (#10618) 2025-02-17 11:35:50 +01:00
Martin Raifer
9e110cfda4 make background map tile edges opaque
Replaces the workaround of the tile rendering issues on Chrome at odd zoom levels.

The svg filter `#alpha-slope5` alters the alpha channel of background tiles such that everything but (almost) transparent pixels are rendered fully opaque.

closes #10747
2025-02-10 13:50:23 +01:00
Martin Raifer
ac3fe661d0 preserve imagery offset during tile layer transition, fixes #10748 2025-02-09 19:40:06 +01:00
Martin Raifer
edf41a98d2 allow tiles to be underzoomed slightly in minimap
preventing minimap from blacking out "too soon" on low map zoom, fixes #10653. Closes #10694 and #10680
2025-01-22 17:06:01 +01:00
Martin Raifer
460a9efce1 fix brief flickering during tile switching when zooming, fixes #10660 2025-01-08 12:17:52 +01:00
Martin Raifer
4dc8f981bd Link to PR in inline comments 2024-12-18 15:21:50 +01:00
Louis Demange
28e7faa13b Apply plus-lighter only at specific zoom levels 2024-12-17 07:01:21 +01:00
Nekzuris
dcfcf222e2 Dynamic epsilon for specific pixel ratios on Chrome 2024-12-13 19:47:40 +01:00
Nekzuris
b2c51929c6 Fix visible grid around tiles 2024-12-11 02:30:38 +01:00
Martin Raifer
5024feafe8 Fix flickering when switching between background imagery layers
and make switching backgrounds snappier
2024-10-21 18:31:07 +02: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
Martin Raifer
4646b67bac drop (for now) unused ui code 2024-07-29 16:22:46 +02:00
Martin Raifer
9407f309a7 Merge branch 'develop' into panoramax 2024-07-29 15:13:38 +02:00
Martin Raifer
689d5f70a4 lint trailing spaces 2024-07-24 15:14:13 +02:00
Tobias
b0235f34d1 Improve/fix type definitions (#10324)
Co-authored-by: Kyℓe Hensel <k-yle@users.noreply.github.com>
2024-07-16 17:14:01 +02:00
mattiapezzotti
a9d8da10d1 prepared for pr 2024-07-12 00:01:05 +02:00
Mattia Pezzotti
20e6473842 Merge branch 'openstreetmap:develop' into panoramax 2024-07-10 10:37:15 +02:00
mattiapezzotti
91281df1df the slider works now. 2024-07-10 10:35:32 +02:00
mattiapezzotti
a6c667d9a9 still working on the slider 2024-07-07 15:19:13 +02:00
mattiapezzotti
fee3d4a3f7 trying to fix the date slider save thing arggg 2024-07-06 14:47:05 +02:00
mattiapezzotti
b1f787c94d fixed typos and syntax errors 2024-07-06 13:38:29 +02:00
mattiapezzotti
bdcebcab33 date slider filter (kinda finished just buggy label) 2024-06-28 17:54:37 +02:00
mattiapezzotti
6b0d6f7017 added photo age filter 2024-06-25 14:58:48 +02:00
mattiapezzotti
44baa63ed5 username filter wip 2024-06-23 14:05:06 +02:00
mattiapezzotti
15b1f6111e added date and photo type filter 2024-06-13 00:55:21 +02:00
Dimitar
b2fc4a43c0 Consider lifecycle prefixed tags in Future/Past features (#10228)
and sharpen landuse filter
2024-06-05 14:47:19 +02:00
Martin Raifer
99d7a85ab4 Merge remote-tracking branch 'k-yle/highway-ladder' into develop 2024-06-05 12:58:56 +02:00
mattiapezzotti
ff2f508575 trying stuff with API (again) (some issues uh) 2024-05-30 14:59:00 +02: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
mattiapezzotti
ab3158e48a added mock Panoramax (mapilio clone) to photo layer list 2024-05-27 17:50:35 +02:00
Kyle Hensel
c7731f5499 support highway=ladder 2024-05-25 16:25:59 +10:00
Excitable Snowball
4bf79e9f1a Sanitize Amazon CloudFront signature in imagery_used (#10007) 2023-12-06 12:40:15 +01:00
Martin Raifer
13300026e3 Merge branch 'develop' into vegbilder 2023-08-01 17:09:21 +02:00
sezerbozbiyik
7c90e2d6af first commit 2023-05-24 14:54:56 +03:00
Noenandre
98975e064b Implemented image filtering. 2023-02-14 14:31:35 +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
Furkan Mutlu
f7bd65ac8d fix: 🐛 Fix multiple appending debug vintage unknown label (#9458)
* fix: 🐛 Fix multiple appending debug vintage unknown label

* keep using t.append for accessibility

Co-authored-by: Martin Raifer <martin@raifer.tech>
2023-01-19 11:49:30 +01:00
Rewinteer
be4f3ce0d2 Added highway=busway to 'Traffic Roads' group of map features. (#9416) 2022-12-12 22:12:19 +01:00
Martin Raifer
60ee70f016 replace parseFloat with Number 2022-12-02 13:41:48 +01:00
Martin Raifer
e03d3b48fa fix selection of best background when starting zoomed-out, fixes #9325
By only selecting best imagery sources which cover at least half of the viewport area, and skipping overlays which are also marked as "best"
2022-10-06 20:51:38 +02:00
Martin Raifer
df1f755150 don't show empty tooltips in backgrounds list 2022-09-27 14:00:28 +02:00
Martin Raifer
4b40ec81c6 linter fix 2022-07-19 19:31:59 +02:00
Martin Raifer
6d84857731 drop unused import 2022-07-19 19:31:28 +02:00
Martin Raifer
841789621f defer initializing background after ui has fully loaded
this makes sure that the map extent is known when deciding which background imagery to load (e.g. which are valid in the viewport or which is the "best" one)
2022-07-19 19:17:27 +02:00
Martin Raifer
60eead24ca use proper map extent when choosing imagery sources 2022-07-19 13:28:46 +02:00