zanenkn / line-on-map_client

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Draw a line on map, fun!

Requirements

  • One Map (may be a 3rd party map)
  • One input field with a placeholder ‘DEGREES’, that only allow numbers (degrees)
  • One button ‘MOVE’
  • One button ‘SAVE’
  • A list of saved patterns below the map.
  • Pressing the ‘MOVE’ button should draw a 20px long line in the direction specified in the input field. (Pressing ‘MOVE’ again should continue drawing the line from the end of the previous one)
  • Pressing the ‘SAVE’ button should save the pattern on the map in an appropriate format on the backend and display it in the list of patterns

Run locally

npm install

npm start

Run tests

npm test

Deployed

View deployed here.

Backend

Backend deployed here.

Backend repo here.

About


Languages

Language:JavaScript 85.0%Language:CSS 8.2%Language:HTML 6.8%