diff --git a/client/app/visualizations/choropleth/index.js b/client/app/visualizations/choropleth/index.js index b9ad7088c..6da2b9dc8 100644 --- a/client/app/visualizations/choropleth/index.js +++ b/client/app/visualizations/choropleth/index.js @@ -2,6 +2,8 @@ import _ from 'underscore'; import L from 'leaflet'; import 'leaflet/dist/leaflet.css'; import { formatSimpleTemplate } from '@/lib/value-format'; +import 'leaflet-fullscreen'; +import 'leaflet-fullscreen/dist/leaflet.fullscreen.css'; import { AdditionalColors, @@ -152,6 +154,7 @@ function choroplethRenderer($sanitize, $http) { maxBounds: choroplethBounds, maxBoundsViscosity: 1, attributionControl: false, + fullscreenControl: true, }); map.on('focus', () => { map.on('moveend', getBounds); }); diff --git a/package.json b/package.json index b6ae2d914..24baf6f3d 100644 --- a/package.json +++ b/package.json @@ -52,6 +52,7 @@ "jquery-ui": "^1.12.1", "leaflet": "^1.2.0", "leaflet.markercluster": "^1.1.0", + "leaflet-fullscreen": "^1.0.2", "markdown": "0.5.0", "material-design-iconic-font": "^2.2.0", "moment": "^2.19.3",