We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b953827 commit 035fdfcCopy full SHA for 035fdfc
src/hooks/Maps/useMap.ts
@@ -106,10 +106,16 @@ export const useMap = (
106
mapInstance.addInteraction(clickInteraction);
107
clickInteraction.setActive(true);
108
109
- const hoverInteraction = new HoverPopupInteraction({
+ const hoverInteractionChantier = new HoverPopupInteraction({
110
layer: chantierLayer,
111
});
112
- mapInstance.addInteraction(hoverInteraction);
+ mapInstance.addInteraction(hoverInteractionChantier);
113
+
114
115
+ const hoverInteractionProduit = new HoverPopupInteraction({
116
+ layer: produitLayer,
117
+ });
118
+ mapInstance.addInteraction(hoverInteractionProduit);
119
120
// ⚡ bascule entre les interactions selon selectionMode
121
useMapStore.subscribe((state) => {
0 commit comments