stef-cruz / power-up-point

https://stef-cruz.github.io/power-up-point/
2 stars 4 forks source link

USER STORY: FTU04 As a first time/ returning user I would like to receive mapped directions to get from my location to the charging location. #21

Open DeeMcCart opened 1 year ago

DeeMcCart commented 1 year ago

Acceptance Criteria:

Tasks (Google Maps Solution)

DeeMcCart commented 1 year ago

Added the following into the marker infowindow: '<a href=' + 'https://www.google.com/maps/dir/?api=1&destination=' + chargingPoint.lat + ',' + chargingPoint.long +' target='+'_blank'+'>Navigate to point' + This will open the navigation in a separate tab, it plots a path from the user's currrent assumed location (I think it geolocates as best it can)

DeeMcCart commented 1 year ago

Image

Image