项目作者: agl0809

项目描述 :
Display a heat layer on the map using your Google Maps Timeline history
高级语言: JavaScript
项目地址: git://github.com/agl0809/react-location-history-player.git
创建时间: 2018-01-31T23:18:32Z
项目社区:https://github.com/agl0809/react-location-history-player

开源协议:MIT License

下载


Build Status

Try a DEMO

Documentation

Installation

  1. git clone https://github.com/agl0809/react-location-history-player/
  2. cd react-location-history-player
  3. npm install

Available scripts

Runs the app in the development mode:

  1. npm start

Open http://localhost:3000 to view it in the browser.

The page will reload if you make edits.You will also see any lint errors in the console.

Launches the test runner in the interactive watch mode:

  1. npm test

Builds the app for production to the build folder:

  1. npm run build

It correctly bundles React in production mode and optimizes the build for the best performance.

The build is minified and the file names include the hashes.

Settings

There are two different ways to set up the data provided in constants.js

Firebase service

By default Firebase service example will be used.

  1. export const JSON_FILE_URL = 'https://api-project-923029851043.firebaseio.com/locations.json';

Google Takeout

Use a specific data file downloading the location history JSON file. Then move it to /public project folder .

  1. export const JSON_FILE_URL = '/YOUR_FILE_NAME.json';