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

Change the color of an oval at click in Java AWT -

c# - Unity IoC Lifetime per HttpRequest for UserStore -

I am trying to solve the error message 'incompatible ranks 0 and 1 in assignment' in a fortran 95 program. -