mirror of
https://github.com/a-nyx/maputnik-with-pmtiles.git
synced 2025-01-01 03:23:15 +01:00
Show inspect tooltip only on click in map #90
This commit is contained in:
parent
e4850805fb
commit
2458d4b637
2 changed files with 3 additions and 2 deletions
|
@ -30,7 +30,7 @@
|
||||||
"lodash.isequal": "^4.4.0",
|
"lodash.isequal": "^4.4.0",
|
||||||
"lodash.throttle": "^4.1.1",
|
"lodash.throttle": "^4.1.1",
|
||||||
"mapbox-gl": "^0.31.0",
|
"mapbox-gl": "^0.31.0",
|
||||||
"mapbox-gl-inspect": "^1.2.0",
|
"mapbox-gl-inspect": "^1.2.1",
|
||||||
"mapbox-gl-style-spec": "^8.11.0",
|
"mapbox-gl-style-spec": "^8.11.0",
|
||||||
"mousetrap": "^1.6.0",
|
"mousetrap": "^1.6.0",
|
||||||
"ol-mapbox-style": "1.0.1",
|
"ol-mapbox-style": "1.0.1",
|
||||||
|
|
|
@ -112,10 +112,11 @@ export default class MapboxGlMap extends React.Component {
|
||||||
|
|
||||||
const inspect = new MapboxInspect({
|
const inspect = new MapboxInspect({
|
||||||
popup: new MapboxGl.Popup({
|
popup: new MapboxGl.Popup({
|
||||||
closeButton: false,
|
|
||||||
closeOnClick: false
|
closeOnClick: false
|
||||||
}),
|
}),
|
||||||
showMapPopup: true,
|
showMapPopup: true,
|
||||||
|
showMapPopupOnHover: false,
|
||||||
|
showInspectMapPopupOnHover: true,
|
||||||
showInspectButton: false,
|
showInspectButton: false,
|
||||||
buildInspectStyle: (originalMapStyle, coloredLayers) => buildInspectStyle(originalMapStyle, coloredLayers, this.props.highlightedLayer),
|
buildInspectStyle: (originalMapStyle, coloredLayers) => buildInspectStyle(originalMapStyle, coloredLayers, this.props.highlightedLayer),
|
||||||
renderPopup: features => {
|
renderPopup: features => {
|
||||||
|
|
Loading…
Reference in a new issue