Modify ↓
Opened 5 months ago
Last modified 8 weeks ago
#24392 new defect
[PATCH] Typing plus or minus sign in Overpass query field zooms the map
| Reported by: | mattmccutchen | Owned by: | team |
|---|---|---|---|
| Priority: | minor | Milestone: | 25.10 |
| Component: | Core | Version: | |
| Keywords: | template_report | Cc: |
Description
In the dialog box to download data from Overpass, typing a plus or minus sign in the query field zooms the slippy map. It looks like the event handler for the map may be registered too broadly.
What steps will reproduce the problem?
- Ensure that "expert mode" is enabled.
- Click "Download data".
- Select the "Download from Overpass API" tab in the top section, and ensure the "Slippy map" tab is selected in the bottom section.
- Type in an Overpass query that includes a plus or minus sign. My original use case was a date setting:
[date:"2024-01-01T00:00:00Z"]
What is the expected result?
Typing the query does not affect the slippy map.
What happens instead?
The slippy map zooms in or out when the plus or minus is typed.
Please provide any additional information below. Attach a screenshot if possible.
Relative:URL: ^/trunk Repository:UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b Last:Changed Date: 2025-06-02 16:42:20 +0200 (Mon, 02 Jun 2025) Revision:19412 Build-Date:2025-06-03 01:30:55 URL:https://josm.openstreetmap.de/svn/trunk Identification: JOSM/1.5 (19412 en) Linux Fedora Linux 41 (Forty One) Memory Usage: 222 MB / 4074 MB (84 MB allocated, but free) Java version: 21.0.7+6, Red Hat, Inc., OpenJDK 64-Bit Server VM Look and Feel: javax.swing.plaf.metal.MetalLookAndFeel Screen: :0.0 1920x1080x[Multi depth]@46Hz (scaling 1.00×1.00) Maximum Screen Size: 1920×1080 Best cursor sizes: 16×16→16×16, 32×32→32×32 Environment variable LANG: en_US.utf8 System property file.encoding: UTF-8 System property sun.jnu.encoding: UTF-8 Locale info: en_US Numbers with default locale: 1234567890 -> 1234567890 Desktop environment: X-QUBES Java package: java-21-openjdk:x86_64-21.0.7.0.6 VM arguments: [--add-exports=java.base/sun.security.action=ALL-UNNAMED, --add-exports=java.desktop/com.sun.imageio.plugins.jpeg=ALL-UNNAMED, --add-exports=java.desktop/com.sun.imageio.spi=ALL-UNNAMED]
Attachments (1)
Change History (4)
by , 3 months ago
| Attachment: | 24392-v1.patch added |
|---|
comment:1 by , 3 months ago
| Summary: | Typing plus or minus sign in Overpass query field zooms the map → [PATCH] Typing plus or minus sign in Overpass query field zooms the map |
|---|
comment:2 by , 3 months ago
| Milestone: | → 25.09 |
|---|
Note:
See TracTickets
for help on using tickets.



I decided this issue was a good way for me to get started with JOSM development, and I found a solution that isn't beautiful but does seem to work: have the action handlers for the affected keys do nothing if a text field is focused. The idea is from this Stack Overflow post.