mirror of
https://github.com/a-nyx/maputnik-with-pmtiles.git
synced 2024-11-10 12:07:45 +01:00
Merge pull request #281 from oterral/master
Block the popup on click in inspect mode
This commit is contained in:
commit
740a75f2e6
3 changed files with 5 additions and 4 deletions
6
package-lock.json
generated
6
package-lock.json
generated
|
@ -7597,9 +7597,9 @@
|
|||
}
|
||||
},
|
||||
"mapbox-gl-inspect": {
|
||||
"version": "1.3.0",
|
||||
"resolved": "https://registry.npmjs.org/mapbox-gl-inspect/-/mapbox-gl-inspect-1.3.0.tgz",
|
||||
"integrity": "sha512-84qABwzuCenZz3oNF8vzqymE5dBoDhEkG5FUdPE2XFXaYabLo4lODRLReMYzeoNPn/4IJFUb9Qy3MN7lGG8CfA==",
|
||||
"version": "1.3.1",
|
||||
"resolved": "https://registry.npmjs.org/mapbox-gl-inspect/-/mapbox-gl-inspect-1.3.1.tgz",
|
||||
"integrity": "sha512-qkcT8lcYQy2x8wn+BUb6a6YXCEIHeGKHlt01/FSf58yYEmeufuihtbCjN9of2JDQm2XeRGdDEksAH7if7tPyyg==",
|
||||
"requires": {
|
||||
"lodash.isequal": "4.5.0",
|
||||
"randomcolor": "0.4.4"
|
||||
|
|
|
@ -34,7 +34,7 @@
|
|||
"lodash.isequal": "^4.5.0",
|
||||
"lodash.throttle": "^4.1.1",
|
||||
"mapbox-gl": "^0.44.1",
|
||||
"mapbox-gl-inspect": "^1.3.0",
|
||||
"mapbox-gl-inspect": "^1.3.1",
|
||||
"maputnik-design": "github:maputnik/design",
|
||||
"mousetrap": "^1.6.1",
|
||||
"ol-mapbox-style": "^2.10.1",
|
||||
|
|
|
@ -121,6 +121,7 @@ export default class MapboxGlMap extends React.Component {
|
|||
showMapPopupOnHover: false,
|
||||
showInspectMapPopupOnHover: true,
|
||||
showInspectButton: false,
|
||||
blockHoverPopupOnClick: true,
|
||||
assignLayerColor: (layerId, alpha) => {
|
||||
return Color(colors.brightColor(layerId, alpha)).desaturate(0.5).string()
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue