Modify ↓
Opened 12 years ago
Closed 12 years ago
#8328 closed enhancement (fixed)
Add "scroll wrap" option to JMapViewer
Reported by: | The111 | Owned by: | The111 |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | JMapViewer | Version: | latest |
Keywords: | Cc: |
Description
The JMapViewer panel currently only shows a single square map which terminates on the left and right map borders. An enhancement/option could be added to allow the map to continue to the panel border instead, wrapping horizontally (scrolling) as many times as needed. This option should not affect default/current map behavior.
Attachments (0)
Note:
See TracTickets
for help on using tickets.
Fixed in [o29170].
Added boolean field JMapViewer.scrollWrapEnabled. When enabled, the map tiles wrap horizontally, as well as map markers, rectangles, and polygons.
Unless this boolean is explicitly set, current/default map behavior is unchanged, so JOSM and any other applications using JMapViewer will be unaffected by this change.
Also updated the Demo class to include a checkbox for turning on/off scroll wrap and observing the change.