php - Cakephp with google map API by marcferna / CakePHP-GoogleMapHelper -


currently im using api marcferna / cakephp-googlemaphelper https://github.com/marcferna/cakephp-googlemaphelper api me need draw direction current location

im looking @ getdirection() function in googlemaphelper.php still can figure out way current location lat , lng value

var start = new google.maps.latlng({$position['latitude']},{$position['longitude']}); var end = new google.maps.latlng({$position['latitude']},{$position['longitude']}); var request = {     origin:start,     destination:end,     travelmode: google.maps.travelmode.{$travelmode} }; 

i have edit function own can end lat,lng need start lat , lng value finish function cant find anyway try use navigator.geolocation before these code still not working solution? in advance


Comments

Popular posts from this blog

php - How to serve a file for download on WordPress -

how to share virtual sharepoint server and get it in host windows and visual studio? -