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

PHPMotion implementation - URL based videos (Hosted on separate location) -

javascript - Using Windows Media Player as video fallback for video tag -

c# - Unity IoC Lifetime per HttpRequest for UserStore -