Improved home page
This commit is contained in:
parent
441dfa4c62
commit
9fd889f77f
10 changed files with 282 additions and 335 deletions
|
|
@ -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="&copy <a href="http://osm.org/copyright">OpenStreetMap</a> contributors"
|
||||
url="https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue