Skip to content

Commit

Permalink
Map: Add fullscreen control
Browse files Browse the repository at this point in the history
  • Loading branch information
deecay committed Apr 7, 2018
1 parent b3ee250 commit 07b5003
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion client/app/visualizations/map/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ import 'leaflet.markercluster/dist/MarkerCluster.Default.css';
import markerIcon from 'leaflet/dist/images/marker-icon.png';
import markerIconRetina from 'leaflet/dist/images/marker-icon-2x.png';
import markerShadow from 'leaflet/dist/images/marker-shadow.png';
import 'leaflet-fullscreen';
import 'leaflet-fullscreen/dist/leaflet.fullscreen.css';

import template from './map.html';
import editorTemplate from './map-editor.html';
Expand All @@ -29,7 +31,10 @@ function mapRenderer() {
template,
link($scope, elm) {
const colorScale = d3.scale.category10();
const map = L.map(elm[0].children[0].children[0], { scrollWheelZoom: false });
const map = L.map(elm[0].children[0].children[0], {
scrollWheelZoom: false,
fullscreenControl: true,
});
const mapControls = L.control.layers().addTo(map);
const layers = {};
const tileLayer = L.tileLayer('//{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', {
Expand Down

0 comments on commit 07b5003

Please sign in to comment.