Skip to content

refactor: switch from OpenLayers v2 to v10 - #81

Merged
KristjanESPERANTO merged 1 commit into
opening-hours:mainfrom
KristjanESPERANTO:ol10
Jun 17, 2026
Merged

refactor: switch from OpenLayers v2 to v10#81
KristjanESPERANTO merged 1 commit into
opening-hours:mainfrom
KristjanESPERANTO:ol10

Conversation

@KristjanESPERANTO

@KristjanESPERANTO KristjanESPERANTO commented Jun 16, 2026

Copy link
Copy Markdown
Member

This has been a long-running migration. Moving from OpenLayers v2 to v10 turned out to be a much larger effort than it looked at first: core APIs changed significantly, the layer model is different, and a lot of map-related behavior had to be adapted along the way.

I explored a few alternative directions during the process, including Leaflet and MapLibre GL JS, but in the end staying with OpenLayers still seemed like the most practical path. Even so, this upgrade touched a substantial part of the codebase, and I used the opportunity to refactor and clean up a number of related areas as well.

The diff is fairly large, mainly because this is not just a version bump: several OL2-specific abstractions had to be replaced, and behavior that used to be implicit in OL2 is now implemented more explicitly in the application code.

Comparison

Live

Before: https://openingh.openstreetmap.de/
After: https://kristjanesperanto.github.io/opening_hours_map/

Screenshots

Before
Screenshot before migration

After
Screenshot after migration

@KristjanESPERANTO
KristjanESPERANTO merged commit a14fc5b into opening-hours:main Jun 17, 2026
1 check passed
@KristjanESPERANTO
KristjanESPERANTO deleted the ol10 branch June 17, 2026 12:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants