Skip to content

[carto & photo]: affichage des couches de contexte#66

Merged
vsasyan-ignf merged 3 commits intomainfrom
debug-couche
Feb 13, 2026
Merged

[carto & photo]: affichage des couches de contexte#66
vsasyan-ignf merged 3 commits intomainfrom
debug-couche

Conversation

@vsasyan-ignf
Copy link
Contributor

Correction de la régression ayant cassé la fonctionnalité d'affichage des couches de contexte.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR fixes a regression that broke the display functionality of context layers (couches de contexte) in the map component. The issue was caused by an incorrect VectorLayer constructor call that used positional parameters instead of the required options object format.

Changes:

  • Fixed VectorLayer constructor call in initOtherVectorLayers() to use proper options object syntax
  • Added null safety check when hiding vector other layers to prevent runtime errors
  • Corrected variable naming in forEach callback for better code clarity
  • Ensured context layers are hidden by default on component mount

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
app/src/components/composable/getVectorLayer.js Fixed VectorLayer constructor to use options object instead of positional parameters
app/src/components/MapBox.vue Added null check in hideOtherLayers(), fixed variable naming, and ensured layers are hidden on mount

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@vsasyan-ignf vsasyan-ignf merged commit 2239f42 into main Feb 13, 2026
7 checks passed
@vsasyan-ignf vsasyan-ignf deleted the debug-couche branch February 13, 2026 12:14
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