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