Witam serdecznie,
Mam taki formularz w Google Maps:

  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta http-equiv="content-type" content="text/html; charset=UTF-8"/>
  5. <title>Google Maps API v3 Directions Example</title>
  6. <script type="text/javascript"
  7. src="http://maps.google.com/maps/api/js?sensor=false"></script>
  8. </head>
  9. <body style="font-family: Arial; font-size: 12px;">
  10. <div style="width: 600px;">
  11. <div id="map" style="width: 280px; height: 400px; float: left;"></div>
  12. <div id="panel" style="width: 300px; float: right;"></div>
  13. </div>
  14.  
  15. <script type="text/javascript">
  16.  
  17. var directionsService = new google.maps.DirectionsService();
  18. var directionsDisplay = new google.maps.DirectionsRenderer();
  19.  
  20. var map = new google.maps.Map(document.getElementById('map'), {
  21. zoom:7,
  22. mapTypeId: google.maps.MapTypeId.ROADMAP
  23. });
  24.  
  25. directionsDisplay.setMap(map);
  26. directionsDisplay.setPanel(document.getElementById('panel'));
  27.  
  28. var request = {
  29. origin: 'Chicago',
  30. destination: 'New York',
  31. travelMode: google.maps.DirectionsTravelMode.DRIVING
  32. };
  33.  
  34. directionsService.route(request, function(response, status) {
  35. if (status == google.maps.DirectionsStatus.OK) {
  36. directionsDisplay.setDirections(response);
  37. }
  38. });
  39. </script>
  40. </body>
  41. </html>
  42.  
  43.  


Chciałbym umieścić ten formularz na swojej stronie internetowej, ale żeby punktem startowym była moja aktualna lokalizacja.
Chciałbym żeby np. tablety/smartfony automatycznie prowadziły do celu po uruchomieniu tej mapki


Wie ktoś może jak to zrobić?