I don't see "Get Direction" on that web page.  The "Search" button is
a form submittal.  You have a function named "calcRoute" buried deep
within your included javascript files, but I was unable to find that
it was referred to outside of the function (meaning, there is no call
to that function.)

Did I get the wrong link?



On Feb 7, 4:28 am, Masum Ahmed <bd.masumah...@gmail.com> wrote:
> I am here new. Please help me. I set Google map road direction on my page.
> But Road map only shows Mozilla and IE.
> My JS code is...
>
> function init_map() {
> map = new google.maps.Map(document.getElementById("map"), {
> zoom: 4,
> mapTypeId: 'roadmap',
> //scrollwheel: false,
> mapTypeControlOptions: {style:
> google.maps.MapTypeControlStyle.DROPDOWN_MENU}});
>
> infoWindow = new google.maps.InfoWindow();
>
> }
>
> function calcRoute() {
>   var end=document.getElementById("end").value;
> var start=document.getElementById("start").value;
> directionsDisplay = new google.maps.DirectionsRenderer();
> var settings ={
> zoom: 4,
> mapTypeId: 'roadmap',
> mapTypeControlOptions: {style:
> google.maps.MapTypeControlStyle.DROPDOWN_MENU}};
>
> var map = new google.maps.Map(document.getElementById("map"),settings);
> directionsDisplay.setMap(map);
> var request ={
> origin:start,
> destination:end,
> travelMode: google.maps.DirectionsTravelMode.DRIVING};
>
> directionsService.route(request, function(response, status)
> {
> if (status == google.maps.DirectionsStatus.OK)
> {
> directionsDisplay.setDirections(response);}
>
> else {
> alert('Error: ' + status);
>   }
>
> });
> }
>
> Please also see webpage
> link:http://marijuanamedicinedoctor.com/store_locator/index.php
>
> When i clicked on "Get Direction" it called "calcRoute" function.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps JavaScript API v3" group.
To post to this group, send email to google-maps-js-api-v3@googlegroups.com.
To unsubscribe from this group, send email to 
google-maps-js-api-v3+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-maps-js-api-v3?hl=en.

Reply via email to