missing : after property id javascript error in geolocation

Posted by Ade on Stack Overflow See other posts from Stack Overflow or by Ade
Published on 2010-05-07T23:14:18Z Indexed on 2010/05/07 23:18 UTC
Read the original article Hit count: 275

Filed under:
|
|
|

Can anyone see a problem with the following i hope its a simple snag but its driving me mad..

firebug brings up the 'missing : after property id' - I have looked online but cant suss it

any thoughts..?

  navigator.geolocation.getCurrentPosition(function(position){
  var lat = position.coords.latitude;
  var lon = position.coords.longitude;
  var request = {
  request.origin = position.coords.latitude + ',' + position.coords.longitude;,

  travelMode: google.maps.DirectionsTravelMode.DRIVING
  };

});
},function(error){
//use error.code to determine what went wrong
});

© Stack Overflow or respective owner

Related posts about google

Related posts about maps