1 |
|
2 | import React from 'react';
|
3 | import { render } from 'react-dom';
|
4 | import { Router, Route, IndexRoute, browserHistory } from 'react-router';
|
5 | import 'normalize.css/normalize.css';
|
6 |
|
7 | import GMap from './GMap';
|
8 | import Layout from './Layout';
|
9 | import GMapOptim from './GMapOptim';
|
10 | import GMapLayers from './GMapLayers';
|
11 | import GMapHeatmap from './GMapHeatmap';
|
12 | import GMapResizable from './GMapResizable';
|
13 |
|
14 | import './Main.sass';
|
15 |
|
16 | const mountNode = document.getElementById('app');
|
17 |
|
18 | render(
|
19 | <Router history={browserHistory}>
|
20 | <Route path="/" component={Layout}>
|
21 | <Route markersCount={50} path="hoverunoptim" component={GMap} />
|
22 | <Route markersCount={50} path="layers" component={GMapLayers} />
|
23 | <Route markersCount={50} path="hoveroptim" component={GMapOptim} />
|
24 | <Route markersCount={20} path="resizable" component={GMapResizable} />
|
25 | <Route markersCount={20} path="heatmap" component={GMapHeatmap} />
|
26 | <IndexRoute markersCount={20} component={GMap} />
|
27 | </Route>
|
28 | </Router>,
|
29 | mountNode
|
30 | );
|