mirror of
https://github.com/maputnik/editor.git
synced 2026-01-04 12:30:00 +00:00
Show inspect tooltip only on click in map #90
This commit is contained in:
@@ -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 => {
|
||||
|
||||
Reference in New Issue
Block a user