426 Commits

Author SHA1 Message Date
Martin Raifer
9b7a98862d Merge remote-tracking branch 'origin/housenumber-labels' into develop 2025-05-12 18:02:47 +02:00
Martin Raifer
19adc5cd54 consistently round non-integer initial zoom when zooming in/out
…when using the zoom buttons or +/- keyboard shortcuts (i.e. does not affect the mouse-wheel/pinch zooming)

Also: make zoom in/out transition slightly faster.

In sum, this allows to zoom in/out multiple levels in quick succession, and using the zoom buttons should be more intuive: they don't snap to very-close zoom levels anymore (e.g. hitting `+` when the current zoom was 15.97 would previously result in a final zoom of 16.00, which is not really what a user would need. Now the zooming in results in a final zoom level of 17.00, which is "actually properly zoomed in".

initial zoom | operation | final zoom (new) | final zoom (old code)
----- | --- | ----- | -----
16.00 | `+` | 17.00 | 17.00
16.00 | `-` | 15.00 | 15.00
16.10 | `+` | 17.00 | 17.00
16.10 | `-` | 15.00 | 15.00
15.90 | `+` | 17.00 | 16.00
15.90 | `-` | 15.00 | 14.00
2025-04-26 21:10:16 +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
aa96a67c65 use lodash-es everywhere, replace custom clamp methods with lodash 2025-04-21 14:43:35 +02:00
Martin Raifer
4254e67ca7 render addresses (housenumber/housename)
* points with a dedicated marker
* text inside of areas
2025-04-17 17:47:08 +02:00
Martin Raifer
afce723b74 only consider proper lifecycle tagging in "past/futures" layer (#10943)
fixes #10186, where features with e.g. `intermittent=yes` were incorrectly sorted into the past/futures layer

now only features with correct tagging are included in the "past/futures" layer:
* either the "legacy" lifecycle tagging (e.g. `highway=construction`)
* or proper lifecycle prefix tags (e.g. `disused:shop=convenience`)
2025-04-17 12:47:10 +02: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
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