mirror of
https://github.com/google-map-react/google-map-react.git
synced 2025-12-08 18:26:32 +00:00
* Added functionality of heatmap
* Added options for heatmap
* default heatmap prop change to object
* resolve linting issues
* resolve linting
* Added demo for heatmap
* Fixed eslint
* Added heatmapLibrary prop for enable and disable visualization library for components
* Fixed linting
* Added heatmapLibrary={true} in all map components
* Fixed proptypes error
* Added heatmap in README with example code
* removed api key from heatmap component
* Removed unnecessary props from heatmap component
30 lines
1.0 KiB
JavaScript
30 lines
1.0 KiB
JavaScript
/* eslint-disable import/no-named-as-default */
|
|
|
|
import React from 'react';
|
|
import { render } from 'react-dom';
|
|
import { Router, Route, IndexRoute, browserHistory } from 'react-router';
|
|
import 'normalize.css/normalize.css';
|
|
import Layout from './Layout';
|
|
import GMap from './GMap';
|
|
import GMapLayers from './GMapLayers';
|
|
import GMapOptim from './GMapOptim';
|
|
import GMapResizable from './GMapResizable';
|
|
import GMapHeatmap from './GMapHeatmap';
|
|
import './Main.sass';
|
|
|
|
const mountNode = document.getElementById('app');
|
|
|
|
render(
|
|
<Router history={browserHistory}>
|
|
<Route path="/" component={Layout}>
|
|
<Route markersCount={50} path="hoverunoptim" component={GMap} />
|
|
<Route markersCount={50} path="layers" component={GMapLayers} />
|
|
<Route markersCount={50} path="hoveroptim" component={GMapOptim} />
|
|
<Route markersCount={20} path="resizable" component={GMapResizable} />
|
|
<Route markersCount={20} path="heatmap" component={GMapHeatmap} />
|
|
<IndexRoute markersCount={20} component={GMap} />
|
|
</Route>
|
|
</Router>,
|
|
mountNode
|
|
);
|