Skip to content

Commit

Permalink
Merge pull request #16 from UI-Research/RT1-827/DHC-grantees
Browse files Browse the repository at this point in the history
Add Display map navigation controls
  • Loading branch information
Farnoosh63 authored Oct 10, 2022
2 parents 79da692 + 704b6d5 commit 5da8ba3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,10 @@ class App extends Component {
doubleClickZoom: true,
touchZoomRotate: false,
});

// Add zoom and rotation controls to the map.
map.addControl(new mapboxgl.NavigationControl());

// Find all active markers and de-activate.
function clearMarkers() {
const activeMarkers = document.getElementsByClassName("marker-active");
Expand Down

0 comments on commit 5da8ba3

Please sign in to comment.