Improved home page

This commit is contained in:
vjrj 2017-12-11 11:08:52 +01:00
parent 441dfa4c62
commit 9fd889f77f
10 changed files with 282 additions and 335 deletions

View file

@ -6,6 +6,7 @@ import { translate } from 'react-i18next';
import geolocation from '/imports/startup/client/geolocation';
import 'leaflet-graphicscale/dist/Leaflet.GraphicScale.min.css';
import 'leaflet-graphicscale/dist/Leaflet.GraphicScale.min.js';
import 'leaflet-sleep/Leaflet.Sleep.js';
import Control from 'react-leaflet-control';
import { Button, ButtonToolbar } from 'react-bootstrap';
import './SelectionMap.scss';
@ -97,7 +98,14 @@ class SelectionMap extends Component {
<div>
{ this.state && this.state.center &&
<Map center={this.state.center} zoom={this.state.zoom}
ref={(map) => { this.selectionMap = map; }}>
ref={(map) => { this.selectionMap = map; }}
sleep={true}
sleepTime={10750}
wakeTime={750}
sleepNote={true}
hoverToWake={true}
wakeMessage={this.props.t('Pulsa para activar')}
sleepOpacity={.6}>
<TileLayer
attribution="&amp;copy <a href=&quot;http://osm.org/copyright&quot;>OpenStreetMap</a> contributors"
url="https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png"