If it is helpful, here is a diff of the old version, and the new version with the driving directions added:
http://code.google.com/p/publicradioroadtrip/source/diff?spec=svn6aa6e3444876288e723de45584025890b765424a&r=6aa6e3444876288e723de45584025890b765424a&format=side&path=/views/mapping2.html On Apr 21, 1:19 pm, johntynan <[email protected]> wrote: > I am running into a slightly twisted knot of a question and I thought > I would run this past people in the group. > > I'm working on a "public radio roadtrip" app. I'm able to order > stories, then display them on a map with information bubbles, and > include > embedded audio within these bubbles. > > I was thinking that, now that I have the stories in an order (either > by date, or by a user-defined numerical order), that the next useful > step would be to display walking or driving directions between these > points. > > My first issue is that once the driving directions are displayed, they > overwrite the information bubbles with references to points A and B, > see: > > http://development.publicradioroadtrip.appspot.com/publicradioroadtri... > > I wonder if the fact that the Google Maps API makes a call to an > external server, this secondary process overwrites the map as it was > rendered previously. > > The second issue that I'm wondering about is that, in order to > incrementally put together these different functionality on the map, I > wound up referencing a couple of different examples across the web. > As a result, I wound up creating/using two different data types, one a > two dimensional array, the second, an associative array. > > I wonder if I used one array, that I would be able to display the > information bubbles while also displaying directions between the > points. > > I tried re-writing the earlier part of the code to use the associative > array. It's a bit of an undertaking to do this, and I've found that > it's a bit beyond my knowledge (although, I'm sure if I worked at it > long enough, I could do this. However, I don't know that using one > associative array would necessarily resolve the issue of the > information bubbles being overwritten. > > Any advice that you might have is appreciated. -- 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.
