thanks for the reply, I think your argumentation makes sense. I was just trying to not stress my java script skills too much but it seems I will not get around it ;)
btw: is this implementation of yours something publicly accessible, that I may look at as some inspiration? thanks, Patrick On Jul 7, 1:41 am, JKurtock <[email protected]> wrote: > Is the "Google Directions > API"http://code.google.com/apis/maps/documentation/directions/#Directions... > the SAME as the Google Maps Javascript API V3 > Serviceshttp://code.google.com/apis/maps/documentation/javascript/services.ht... > ? I don't think so. It sounds like you've created a JSON object > similar to one returned by the Google Directions API, but you are > attempting to use it in the directionsRenderer in a different API. In > the V3 API "The DirectionsResult is an object literal with a single > field," which is not JSON at all. > > I can't say that what you are trying is impossible, but it will > certainly be difficult. If you've gone to all the trouble to generate > your own "result," in my opinion it won't be much more trouble to > create your own renderer. That's what I did. > > - Jeff > > On Jul 6, 7:36 am, patrick <[email protected]> wrote: > > > Dear Google Maps Pros! > > > I create my own JSON object as described in the google API > > docs:http://code.google.com/apis/maps/documentation/directions/#Directions... > > > I strictly followed the json example depicted but if i feed this into > > the DirectionsRenderer nothing happens. > > > $.getJSON(dataUrl, function(data) { > > directionsRenderer.setDirections(response); > > } > > > it seems the error get's absorbed somewhere (which is another > > problem). > > > I read somewhere, that the response object required by > > DirectionsRenderer.setDirections is not pure json but has some real > > objects in it. Does anyone of you have some experience with it or some > > tips? > > > Thanks a lot! > > Patrick -- 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 [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-js-api-v3?hl=en.
