Skip to content

🆕 Add File Loading in Experimental OpenLayers Viewer - #1128

Draft
Demir-B wants to merge 86 commits into
developfrom
feature/openlayers-file-system
Draft

🆕 Add File Loading in Experimental OpenLayers Viewer#1128
Demir-B wants to merge 86 commits into
developfrom
feature/openlayers-file-system

Conversation

@Demir-B

@Demir-B Demir-B commented Aug 28, 2026

Copy link
Copy Markdown
Collaborator

Summary

This PR adds file loading and navigation improvements to the experimental OpenLayers viewer.

Changes

  • Add --base-path, --slides, --overlays and --port commands for slide and overlay directories.
  • Add searchable slide and overlay comboboxes to the Files panel.
  • Allow the user to select a different slide from the Files panel without restarting the viewer.
  • Filter available overlays based on the selected slide.
  • Support loading multiple overlays.
  • Add buttons to clear the current slide or all loaded overlays.
  • Support finding slides and overlays inside nested directories.
  • Use relative file paths in the viewer and URLs instead of full paths.
  • Make the zoom level editable like WASABI.
  • Improve the positioning of the UI.
  • More tests for the added functionality.
  • Updated the README to reflect the new changes.

Below are screenshots showing the new Files panel, searchable slide and overlay selection, nested directory support, multiple loaded overlays and the updated viewer controls.

image image

Demir-B and others added 30 commits August 6, 2026 11:39
This is meant to after managing OpenLayers dependencies so I can use later versions.
try:
directory = self._get_configured_directory(kind)
except ValueError as exc:
return Response(str(exc), status=400)
"slide",
)
except ValueError as exc:
return Response(str(exc), status=400)
"overlay",
)
except ValueError as exc:
return Response(str(exc), status=400)
@codecov

codecov Bot commented Aug 28, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 79.20792% with 21 lines in your changes missing coverage. Please review.
✅ Project coverage is 99.73%. Comparing base (320ef7a) to head (a6795a4).
⚠️ Report is 2 commits behind head on develop.

Files with missing lines Patch % Lines
tiatoolbox/visualization/tileserver.py 77.52% 14 Missing and 6 partials ⚠️
tiatoolbox/cli/visualize_beta.py 75.00% 1 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #1128      +/-   ##
===========================================
- Coverage    99.90%   99.73%   -0.18%     
===========================================
  Files           93       93              
  Lines        11920    12009      +89     
  Branches      1562     1576      +14     
===========================================
+ Hits         11909    11977      +68     
- Misses           5       20      +15     
- Partials         6       12       +6     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@shaneahmed shaneahmed added the enhancement New feature or request label Aug 28, 2026
@shaneahmed shaneahmed added this to the Release v2.2.0 milestone Aug 28, 2026
@shaneahmed shaneahmed changed the title Improve File Loading in Experimental OpenLayers Viewer 🆕 Add File Loading in Experimental OpenLayers Viewer Aug 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants