diff --git a/package.json b/package.json index a031194f..7b0d037b 100644 --- a/package.json +++ b/package.json @@ -30,7 +30,7 @@ "lodash.isequal": "^4.4.0", "lodash.throttle": "^4.1.1", "mapbox-gl": "^0.31.0", - "mapbox-gl-inspect": "^1.2.0", + "mapbox-gl-inspect": "^1.2.1", "mapbox-gl-style-spec": "^8.11.0", "mousetrap": "^1.6.0", "ol-mapbox-style": "1.0.1", diff --git a/src/components/map/MapboxGlMap.jsx b/src/components/map/MapboxGlMap.jsx index 11593b68..244492c9 100644 --- a/src/components/map/MapboxGlMap.jsx +++ b/src/components/map/MapboxGlMap.jsx @@ -112,10 +112,11 @@ export default class MapboxGlMap extends React.Component { const inspect = new MapboxInspect({ popup: new MapboxGl.Popup({ - closeButton: false, closeOnClick: false }), showMapPopup: true, + showMapPopupOnHover: false, + showInspectMapPopupOnHover: true, showInspectButton: false, buildInspectStyle: (originalMapStyle, coloredLayers) => buildInspectStyle(originalMapStyle, coloredLayers, this.props.highlightedLayer), renderPopup: features => {