项目作者: agl0809

项目描述 :
Display a heat map through the location history provided by Google Maps Timeline.
高级语言: JavaScript
项目地址: git://github.com/agl0809/location-history-player.git
创建时间: 2018-01-09T22:51:52Z
项目社区:https://github.com/agl0809/location-history-player

开源协议:MIT License

下载


Build Status

Installation

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

Settings

There are two different ways to setting 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';

Available scripts

In the project directory, you can run:

npm start

Runs the app in the development mode.

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.

npm test

Launches the test runner in the interactive watch mode.

npm run build

Builds the app for production to the build folder.

Dependencies

leaflet

leaflet.heat

Scaffolding

create-react-app