gmap3 icon indicating copy to clipboard operation
gmap3 copied to clipboard

gmap3 7.2 route origin and destination by gps

Open tzs007 opened this issue 7 years ago • 0 comments

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

tzs007 avatar Sep 12 '17 14:09 tzs007