Posted on: 9/30/2014 4:16:03 AM | Views : 440

Hi
I am with a web page to show driving direction in google map. By default the direction from source (source taken as current user longitude and latitude ) to destination should be shown. Its working only in select control on change event. I need to show by default page load. I had called the javascript function calcRoute() in body onload event but its not showing. I would be thankful if someone can figure out the problem. my html code is as below
<html xmlns="http://www.w3.org/1999/xhtml"> <head> <head> <meta name="viewport" content="initial-scale=1.0, user-scalable=no"> <meta charset="utf-8"> <title>Travel modes in directions</title> <style> html, body, #map-canvas { height: 100%; margin: 0px; padding: 0px } #panel { padding-top:15px; left: 50%; ...

Go to the complete details ...