|
@@ -142,7 +142,7 @@ export default class App extends Component {
|
|
// is called once when loading the page
|
|
// is called once when loading the page
|
|
componentDidMount() {
|
|
componentDidMount() {
|
|
this.reloadLocations();
|
|
this.reloadLocations();
|
|
- setInterval(this.updateLocation, 4000);
|
|
|
|
|
|
+ setInterval(this.updateLocation, 2000);
|
|
}
|
|
}
|
|
|
|
|
|
reloadLocations = () => {
|
|
reloadLocations = () => {
|
|
@@ -189,7 +189,7 @@ export default class App extends Component {
|
|
return (
|
|
return (
|
|
|
|
|
|
<div style={{textAlign: 'center', marginTop: 50, marginLeft: 0}}>
|
|
<div style={{textAlign: 'center', marginTop: 50, marginLeft: 0}}>
|
|
-
|
|
|
|
|
|
+ <div style={{float: 'right', marginRight: 30}}>
|
|
<div style={{maxWidth: 400, margin: '0 auto'}}>
|
|
<div style={{maxWidth: 400, margin: '0 auto'}}>
|
|
<Map
|
|
<Map
|
|
limitBounds='edge'
|
|
limitBounds='edge'
|
|
@@ -233,7 +233,7 @@ export default class App extends Component {
|
|
|
|
|
|
</Map>
|
|
</Map>
|
|
</div>
|
|
</div>
|
|
- <div>
|
|
|
|
|
|
+ <div style={{color: '#eee'}}>
|
|
|
|
|
|
{' '}
|
|
{' '}
|
|
{Math.round(center[0] * 10000) / 10000} ({lat2tile(center[0], zoom)})
|
|
{Math.round(center[0] * 10000) / 10000} ({lat2tile(center[0], zoom)})
|
|
@@ -287,9 +287,9 @@ export default class App extends Component {
|
|
|
|
|
|
}}> Lukas </button>
|
|
}}> Lukas </button>
|
|
</div>
|
|
</div>
|
|
-
|
|
|
|
-
|
|
|
|
- <div id="wrapper">
|
|
|
|
|
|
+ </div>
|
|
|
|
+
|
|
|
|
+ <div id="wrapper">
|
|
<Tables persons={this.state.persons}/>
|
|
<Tables persons={this.state.persons}/>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|