diff --git a/app/static/app/js/components/Map.jsx b/app/static/app/js/components/Map.jsx index 9e603e8e..6b988deb 100644 --- a/app/static/app/js/components/Map.jsx +++ b/app/static/app/js/components/Map.jsx @@ -4,8 +4,6 @@ import '../css/Map.scss'; import 'leaflet/dist/leaflet.css'; import Leaflet from 'leaflet'; import async from 'async'; -import '../vendor/leaflet/L.Control.MousePosition.css'; -import '../vendor/leaflet/L.Control.MousePosition'; import '../vendor/leaflet/Leaflet.Autolayers/css/leaflet.auto-layers.css'; import '../vendor/leaflet/Leaflet.Autolayers/leaflet-autolayers'; // import '../vendor/leaflet/L.TileLayer.NoGap'; @@ -385,7 +383,7 @@ class Map extends React.Component { this.map = Leaflet.map(this.container, { scrollWheelZoom: true, - positionControl: true, + positionControl: false, zoomControl: false, minZoom: 0, maxZoom: 24 @@ -401,10 +399,6 @@ class Map extends React.Component { mapView: this }); - let scaleControl = Leaflet.control.scale({ - maxWidth: 250, - }).addTo(this.map); - //add zoom control with your options let zoomControl = Leaflet.control.zoom({ position:'bottomleft' @@ -580,7 +574,6 @@ _('Example:'), tiles: tiles, controls:{ autolayers: this.autolayers, - scale: scaleControl, zoom: zoomControl } }); @@ -630,7 +623,7 @@ _('Example:'),
- {_("Opacity:")} +
{_("Opacity:")}