Skip to content

Refactor layers - #904

Merged
digitaltom merged 3 commits into
mainfrom
refactor_layers
Sep 23, 2026
Merged

digitaltom merged 3 commits into
mainfrom
refactor_layers

Conversation

@digitaltom

Copy link
Copy Markdown
Collaborator

No description provided.

Copilot AI lite review requested due to automatic review settings September 23, 2026 10:36

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot review overview

🔵 Needs a closer look

The broad MapLibre lifecycle and interaction refactor requires final human review.

Review effort: Lite
Findings: None

What changed in this PR

Refactors MapLibre layer interactions and OSM descriptions while updating MapLibre to 6.11.1.

Changes:

  • Centralizes feature selection and OSM description fetching.
  • Improves layer lifecycle, overlays, indoor levels, and clustering.
  • Updates related tests, assets, imports, and RuboCop configuration.
File Description
vendor/​javascript/​maplibre-gl-worker.mjs Updates MapLibre worker assets.
spec/​features/​map_search_spec.rb Updates OSM API request stubs.
config/​importmap.rb Pins MapLibre 6.11.1.
app/​javascript/​maplibre/​styles/​styles.js Prevents duplicate cluster listeners.
app/​javascript/​maplibre/​layers/​wikipedia.js Adds layer-owned descriptions and cluster checks.
app/​javascript/​maplibre/​layers/​search.js Uses shared OSM element fetching.
app/​javascript/​maplibre/​layers/​raster/​raster.js Uses centralized feature detection.
app/​javascript/​maplibre/​layers/​overpass/​overpass.js Uses shared OSM descriptions.
app/​javascript/​maplibre/​layers/​osm.js Uses shared OSM utilities.
app/​javascript/​maplibre/​layers/​osm_description.js Adds shared OSM fetching and formatting.
app/​javascript/​maplibre/​layers/​layers.js Refactors layer and feature lookup.
app/​javascript/​maplibre/​layers/​layer.js Centralizes map-wide selection.
app/​javascript/​maplibre/​layers/​indoor/​indoor.js Stabilizes handlers and level detection.
app/​javascript/​maplibre/​layers/​geojson/​levels.js Removes an obsolete re-export.
app/​javascript/​maplibre/​layers/​geojson/​image_overlays.js Tracks overlay sources efficiently.
app/​javascript/​maplibre/​layers/​geojson.js Refactors interaction and rendering lifecycle.
app/​javascript/​maplibre/​layers/​basemap.js Optimizes feature comparison.
app/​javascript/​maplibre/​feature/​details.js Delegates descriptions to layer instances.
.rubocop.yml Merges exclusions and excludes deployment files.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@digitaltom
digitaltom merged commit 08df731 into main Sep 23, 2026
10 checks passed
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