mirror of
https://github.com/valitydev/redash.git
synced 2024-11-06 17:15:17 +00:00
Choropleth: Add fullscreen control
This commit is contained in:
parent
8df2391a77
commit
b3ee25079e
@ -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); });
|
||||
|
@ -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",
|
||||
|
Loading…
Reference in New Issue
Block a user