Skip to content

Commit

Permalink
Add zoom control to map
Browse files Browse the repository at this point in the history
  • Loading branch information
Charl1996 committed Jun 20, 2024
1 parent 600c11b commit 9f6b101
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions corehq/apps/geospatial/static/geospatial/js/models.js
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,10 @@ hqDefine('geospatial/js/models', [
},
});
self.mapInstance.addControl(self.drawControls);

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

Check failure on line 153 in corehq/apps/geospatial/static/geospatial/js/models.js

View workflow job for this annotation

GitHub Actions / Lint Javascript

'mapboxgl' is not defined

if (self.usesClusters) {
createClusterLayers();
}
Expand Down

0 comments on commit 9f6b101

Please sign in to comment.