@@ -82,6 +82,7 @@ export const geojsonVisConfigs: {
8282 enable3d : 'enable3d' ;
8383 wireframe : 'wireframe' ;
8484 fixedHeight : 'fixedHeight' ;
85+ allowHover : 'allowHover' ;
8586} = {
8687 opacity : 'opacity' ,
8788 strokeOpacity : {
@@ -105,7 +106,8 @@ export const geojsonVisConfigs: {
105106 filled : 'filled' ,
106107 enable3d : 'enable3d' ,
107108 wireframe : 'wireframe' ,
108- fixedHeight : 'fixedHeight'
109+ fixedHeight : 'fixedHeight' ,
110+ allowHover : 'allowHover'
109111} ;
110112
111113export type GeoJsonVisConfigSettings = {
@@ -126,6 +128,7 @@ export type GeoJsonVisConfigSettings = {
126128 filled : VisConfigBoolean ;
127129 enable3d : VisConfigBoolean ;
128130 wireframe : VisConfigBoolean ;
131+ allowHover : VisConfigBoolean ;
129132} ;
130133
131134export type GeoJsonLayerColumnsConfig = {
@@ -150,6 +153,7 @@ export type GeoJsonLayerVisConfig = {
150153 enable3d : boolean ;
151154 wireframe : boolean ;
152155 fixedHeight : boolean ;
156+ allowHover : boolean ;
153157} ;
154158
155159type GeoJsonLayerVisualChannelConfig = LayerColorConfig &
@@ -699,7 +703,7 @@ export default class GeoJsonLayer extends Layer {
699703 opacity : visConfig . strokeOpacity
700704 } ;
701705
702- const pickable = interactionConfig . tooltip . enabled ;
706+ const pickable = interactionConfig . tooltip . enabled && visConfig . allowHover ;
703707 const hoveredObject = this . hasHoveredObject ( objectHovered ) ;
704708
705709 const { data, ...props } = dataProps ;
0 commit comments