killje / TripPlanner

0 stars 1 forks source link

[Backlog] Recalculate radius using this description #60

Open Viserius opened 6 years ago

Viserius commented 6 years ago

Story Points: 1.5

Description: Right now, there is a problem with the radius that is given to the backend, from the map. The main issue is that the radius changes based on device (mobile, desktop), as the dimensions, are different. My idea is the following:

  1. Take the distance from the center to one side (width / 2)
  2. Take the distance from the center to the top (height / 2)
  3. Take the either the minimum of the two, or the average of the two (to have some activities just outside the viewport)