Skip to content

Commit

Permalink
Disable rotation and pitching.
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielJackson-Oslo committed Sep 26, 2024
1 parent 20418be commit b6f05f5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app/javascript/controllers/mapbox_controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,10 @@ export default class extends Controller {
container: 'map-frame',
style: 'mapbox://styles/mapbox/streets-v11',
trackResize: true,
pitchWithRotate: false,
dragRotate: false,
touchZoomRotate: false,
keyboardRotate: false,
...options,
});
this.setupEventCallbacks();
Expand Down

0 comments on commit b6f05f5

Please sign in to comment.