Skip to content

Commit

Permalink
adds map fullscreen button, re: #4670
Browse files Browse the repository at this point in the history
  • Loading branch information
robgaston committed Jul 8, 2019
1 parent 8104a60 commit 1a4d248
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions arches/app/media/css/arches.css
Original file line number Diff line number Diff line change
Expand Up @@ -1179,6 +1179,7 @@ ul.tabbed-report-tab-list {
flex: 1;
height: 100%;
position: relative;
background-color: #eee;
}

.map-card-container {
Expand Down
3 changes: 3 additions & 0 deletions arches/app/media/js/views/components/map.js
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,9 @@ define([
this.setupMap = function(map) {
map.on('load', function() {
map.addControl(new mapboxgl.NavigationControl(), 'top-left');
map.addControl(new mapboxgl.FullscreenControl({
container: $(map.getContainer()).closest('.map-card-wrapper')[0]
}), 'top-left');
map.addControl(new MapboxGeocoder({
accessToken: mapboxgl.accessToken,
mapboxgl: mapboxgl,
Expand Down

0 comments on commit 1a4d248

Please sign in to comment.