gmap3
gmap3 copied to clipboard
gmap3 7.2 route origin and destination by gps
hi,
how can I set route by only gps coords?
i did this
modalMap.route({ origin: { lat: geoposition.coords.latitude, lng: geoposition.coords.longitude }, destination: { lat: lat, lng: lng }, travelMode: google.maps.DirectionsTravelMode.DRIVING })
but something is wrong with it... i could draw my marker in next chain, but i have no route.
thx