stadtnavi / digitransit-ui

Digitransit UI Clone, especially for the city of Herrenberg ("stadtnavi.de")
https://stadtnavi.de/
Other
13 stars 14 forks source link

Origin/destination markers reset when selecting origin/destination from the sidebar #577

Open ahmed-nawar opened 3 years ago

ahmed-nawar commented 3 years ago

How to reproduce: 1) Open https://herrenberg.beta.stadtnavi.eu/ 2) Select an origin by clicking on the map and selecting 'origin' image

3) Make sure you have parking icons turned on image

4) Left click on a parking icon and choose 'destination' from the sidebar image

Current behavior: The origin that was placed will be cleared and the parking will be selected as destination Expected behavior: The origin marker should remain selected and the destination should be the new selected parking/any other icon

ahmed-nawar commented 3 years ago

Also this behavior happens.

  1. Select an origin and destination
  2. Then select a parking icon, charging station, bike parking space … etc.
  3. Then select this icon as origin or destination
  4. The origin and destination will both get reset and will be cleared

Also the user cannot select one parking and choose as origin then select another parking and choose as destination. The origin will reset