-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnotes.txt
33 lines (28 loc) · 1.05 KB
/
notes.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
##Google Maps
###styling
- var bikeLayer = new google.maps.BicyclingLayer()
bikeLayer.setMap(map)
-Add waypoints, snap to road and get distance/elevation
-add waypoint on click
-on second click add waypoint and fetch (cycling) directions
-make third click end point, keep second as waypoint, repeat
-how to undo action by segment?
-onSubmit POST req to '/api/routes'
-https://developers.google.com/maps/documentation/javascript/directions
-DirectionsRequest {
origin: LatLng | String | google.maps.Place,
destination: LatLng | String | google.maps.Place,
travelMode: TravelMode,
unitSystem: UnitSystem,
waypoints[]: DirectionsWaypoint,
optimizeWaypoints: Boolean,
provideRouteAlternatives: Boolean,
avoidFerries: Boolean,
avoidHighways: Boolean,
region: String
}
-have to be made after second waypoint click and each after
-travelMode: BICYCLING
-DirectionsResult for numbers, setMap() on DirectionRenderer for render
-DirectionsResult turned into polyline for backend storage
-static maps api for images on index pages