File tree Expand file tree Collapse file tree 1 file changed +10
-8
lines changed
Expand file tree Collapse file tree 1 file changed +10
-8
lines changed Original file line number Diff line number Diff line change @@ -144,15 +144,17 @@ export function useMapHoverEffect({
144144
145145 if ( features ?. length ) {
146146 const feature = features [ 0 ] ;
147- setHoverMarker ( {
148- coordinates : [ e . lngLat . lng , e . lngLat . lat ] ,
149- properties : feature . properties || { } ,
150- } ) ;
151- if ( map . getCanvas ( ) . style . cursor !== "pointer" ) {
152- prevPointer . cursor = map . getCanvas ( ) . style . cursor || "" ;
147+ if ( ! feature ?. properties ?. cluster ) {
148+ setHoverMarker ( {
149+ coordinates : [ e . lngLat . lng , e . lngLat . lat ] ,
150+ properties : feature . properties || { } ,
151+ } ) ;
152+ if ( map . getCanvas ( ) . style . cursor !== "pointer" ) {
153+ prevPointer . cursor = map . getCanvas ( ) . style . cursor || "" ;
154+ }
155+ map . getCanvas ( ) . style . cursor = "pointer" ;
156+ return true ;
153157 }
154- map . getCanvas ( ) . style . cursor = "pointer" ;
155- return true ;
156158 }
157159
158160 setHoverMarker ( null ) ;
You can’t perform that action at this time.
0 commit comments