Re: [Google Maps API v2] main.js:41 Uncaught TypeError:Object# has no method 'Load'

Wed, 25 May 2011 09:58:49 -0700

On 25 May 2011 17:29, Jeevan <[email protected]> wrote:
>
> I have added the code here and also the exception I am getting
>
>
> Error Name:
> main.js:41 Uncaught TypeError:Object#<object> has no method 'Load'

I can see no line below where you are attempting to use a .Load
method. The API is objecting to being asked to find that. Perhaps it
should be .load? Perhaps you've extended the Object object invalidly?

In fact this code looks like Version 3 code, so a better place to post
would be the Version 3 Group at
http://groups.google.com/group/google-maps-js-api-v3/

Do be sure to include a link, not a code snippet. You'll also need to
include a guest id and password (if one is required), and instructions
on how to reproduce the problem.


> function calcRoute() {
>    showDirections();
>  document.getElementById('directionsPanel').innerHTML="";
>    initialize();
>  var start = document.getElementById("txt_from").value;
>  var end =
> getDestinationAdderss(document.getElementById('final_address').innerHTML);
>  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);
>    }
>  });

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps API V2" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-maps-api?hl=en.

Reply via email to