Skip to content

Commit b0a7c4f

Browse files
committed
fix: hover feature style glitch
1 parent 173fc22 commit b0a7c4f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/vendors/Geo.jsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -671,9 +671,10 @@ function Geo(props) {
671671
// Check for features at the current pointer position
672672
map.forEachFeatureAtPixel(pixel, function (feature, layer) {
673673
// If a layer is found and its selectable property is not false
674+
console.debug('Hover feature on layer:', layer);
674675
if (layer && layer.get('selectable') !== false) {
675676
cursorStyle = 'pointer'; // Change the cursor to pointer
676-
return true; // Stop iterating through the features
677+
return false; // Stop iterating through the features
677678
}
678679
});
679680

0 commit comments

Comments
 (0)