Choropleth: Add fullscreen control

This commit is contained in:
deecay 2018-04-06 12:58:55 -04:00
parent 8df2391a77
commit b3ee25079e
2 changed files with 4 additions and 0 deletions

View File

@ -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); });

View File

@ -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",