/route

an example of displaying routes on google map

Primary LanguageJavaScript

Quick Start

  1. Install yarn and build
$ cd route/ 
$ brew install yarn
$ yarn install
  1. Specify google map token in .env file
$ echo "GOOGLE_MAP_API_TOKEN='YOUR TOKEN HERE'" > .env
  1. Start the app
$ yarn start

Customize line colors

You can customize the line colors within the Map.js by updating the colorMap function or passing in a react property of the same name.

Hide lines according to distance

Just update pathFilter inside the Map.js or pass in a path filter as a react property.