diff --git a/package-lock.json b/package-lock.json index d2ad1a8..cac2c15 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1282,14 +1282,14 @@ "integrity": "sha1-zlblOfg1UrWNENZy6k1vya3HsjQ=" }, "@mapbox/mapbox-gl-rtl-text": { - "version": "0.2.1", - "resolved": "https://registry.npmjs.org/@mapbox/mapbox-gl-rtl-text/-/mapbox-gl-rtl-text-0.2.1.tgz", - "integrity": "sha512-YhVsCLNgy1lUXqfEFqt89E+JRRviFjkSwrYTnL7sXgwwS6dx/39YRNugBPXTZyNVzmriWedf0J4tu9+xbDGXbw==" + "version": "0.2.2", + "resolved": "https://registry.npmjs.org/@mapbox/mapbox-gl-rtl-text/-/mapbox-gl-rtl-text-0.2.2.tgz", + "integrity": "sha512-wtmnl0Xf8guc0KdD5Lt6b/kjiwlWf4rJ7RZoY1Ty45YjcRutphzHZuieruTBluKGW/y6PpNPpaI2wr3lkTDrPA==" }, "@mapbox/mapbox-gl-style-spec": { - "version": "13.7.1", - "resolved": "https://registry.npmjs.org/@mapbox/mapbox-gl-style-spec/-/mapbox-gl-style-spec-13.7.1.tgz", - "integrity": "sha512-mCtEbsJC7WEAjNtooqhTw2elDJ5EqoG4gYZIKjI7h5XrYMTLbNnr2xWQClZcjVtbwxietRdJexMMG+BUa32FYQ==", + "version": "13.7.2", + "resolved": "https://registry.npmjs.org/@mapbox/mapbox-gl-style-spec/-/mapbox-gl-style-spec-13.7.2.tgz", + "integrity": "sha512-miSj3X/xtGOPtS1XoEFGj5H2YHxFkmcniwbnRdPw+CMudb+uMW+frngDcXaJmdWzsl0U0eIVhWP9LrFcZzGoZA==", "requires": { "@mapbox/jsonlint-lines-primitives": "~2.0.2", "@mapbox/unitbezier": "^0.0.0", @@ -9144,9 +9144,9 @@ } }, "mapbox-gl": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/mapbox-gl/-/mapbox-gl-1.1.1.tgz", - "integrity": "sha512-i57kASg8J/U/lJzBePyqTP2ImKUcx8FkHyCjb3ssWYaBBXHUeZ4STGXXfU9u1AQU9170PjDIJLubUUB1vLLSBQ==", + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/mapbox-gl/-/mapbox-gl-1.2.0.tgz", + "integrity": "sha512-RDo0kMuo9gs6HFX2Maj+tYO5bUT6WFTQkFbJoKdfe2pK8SY/RgyG3SNJRgZypdBR8loxGCG9geeOwc+JJqblHQ==", "requires": { "@mapbox/geojson-rewind": "^0.4.0", "@mapbox/geojson-types": "^1.0.2", @@ -14381,9 +14381,9 @@ } }, "supercluster": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/supercluster/-/supercluster-6.0.1.tgz", - "integrity": "sha512-NTth/FBFUt9mwW03+Z6Byscex+UHu0utroIe6uXjGu9PrTuWtW70LYv9I1vPSYYIHQL74S5zAkrXrHEk0L7dGA==", + "version": "6.0.2", + "resolved": "https://registry.npmjs.org/supercluster/-/supercluster-6.0.2.tgz", + "integrity": "sha512-aa0v2HURjBTOpbcknilcfxGDuArM8khklKSmZ/T8ZXL0BuRwb5aRw95lz+2bmWpFvCXDX/+FzqHxmg0TIaJErw==", "requires": { "kdbush": "^3.0.0" } diff --git a/package.json b/package.json index 63e3641..f376505 100644 --- a/package.json +++ b/package.json @@ -21,8 +21,8 @@ "homepage": "https://github.com/maputnik/editor#readme", "dependencies": { "@babel/runtime": "^7.1.2", - "@mapbox/mapbox-gl-rtl-text": "^0.2.1", - "@mapbox/mapbox-gl-style-spec": "^13.7.1", + "@mapbox/mapbox-gl-rtl-text": "^0.2.2", + "@mapbox/mapbox-gl-style-spec": "^13.7.2", "classnames": "^2.2.6", "codemirror": "^5.40.2", "color": "^3.0.0", @@ -35,7 +35,7 @@ "lodash.get": "^4.4.2", "lodash.isequal": "^4.5.0", "lodash.throttle": "^4.1.1", - "mapbox-gl": "^1.1.1", + "mapbox-gl": "^1.2.0", "mapbox-gl-inspect": "^1.3.1", "maputnik-design": "github:maputnik/design", "ol": "^6.0.0-beta.8", diff --git a/src/components/map/MapboxGlMap.jsx b/src/components/map/MapboxGlMap.jsx index fb5f523..ba33fc2 100644 --- a/src/components/map/MapboxGlMap.jsx +++ b/src/components/map/MapboxGlMap.jsx @@ -144,7 +144,7 @@ export default class MapboxGlMap extends React.Component { const zoom = new ZoomControl; map.addControl(zoom, 'top-right'); - const nav = new MapboxGl.NavigationControl(); + const nav = new MapboxGl.NavigationControl({visualizePitch:true}); map.addControl(nav, 'top-right'); const tmpNode = document.createElement('div');