Giter Club home page Giter Club logo

rectangles-map's Introduction

Rectangles Map

Task description (in Russian)

есть набор объектов-прямоугольников, заданных в виде {center_lat, center_lng, length, width, yaw_angle, color}. Он сериализован в JSON. Максимальное расстояние между парой объектов - 2 км, максимальная длина/ширина - 100 м. Необходимо сделать одностраничное приложение (только фронт), которое отображает карту и позволяет загрузить JSON с объектами. После загрузки карта должна автоматом отмасштабироваться так, чтобы все объекты поместились, и объекты должны отрисоваться на ней в виде прямоугольников соответствующего цвета. Если какие-либо два (или более) объектов накладываются друг на друга (частично или полностью), обвести их жирной красной рамкой. Инструменты - ReactJS, mapbox/leaflet, TypeScript или ES6+ (первое более предпочтительно)

JSON examples

  1. 4 rectangles
  2. 1000 rectangles
  3. You can generate your own JSON at json-generator.com with this template

Demo

The last app version from master is always deployed here.

Project setup and run

  1. Clone the project
  2. Open project root in terminal
  3. Install dependencies with yarn: yarn
  4. Run the application in the development mode: yarn start
  5. Open http://localhost:3000 to view it in the browser
  6. Or build the project for the production: yarn build

Project TODOs

  1. Show errors with toasts, instead of alerts
  2. Implement unit-tests
  3. Implement e2e tests
  4. Fix todos in the code
  5. Check different browsers and devices support(now it was tested only in Chrome/MacOS)

Getting Started with Create React App

This project was bootstrapped with Create React App.

Learn More

You can learn more in the Create React App documentation.

To learn React, check out the React documentation.

rectangles-map's People

Contributors

hardrese7 avatar

Stargazers

Nikolay Dozmorov avatar  avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.