> What exactly do you think is the difference between an animation and > calculating the positions in intervals?
Same thing ; my point was that you don't need to animate or display any kind of _polyline_ at all, just plot train markers on the map. Polyline-animating examples may be irrelevant for you. > Ultimately I'd like to have the marker moving smoothly, (which is why I > reffered to that example earlier) and I don't know if that's the case with > what you are describing (the intervals). What exactly is the difference between smooth animation and doing it in steps at short intervals? How smooth you can get it depends on the resources you can devote to it, I'd worry about that after you have a functional demo. > As for the selection of polyline, that would indeed be hard. > I'd either have to make seperate polylines for each trainroute, or make each > segment unique, so I can specify which routes need which segments. Yes, something like that. Exactly how you do it is up to you. I would think a dataset of segments of railroad between each station form a flexible basis? For each segment, you'd need the polyline describing the route for your plotting purposes, and something to indicate the 'node' at each end - the stations - so that when you get your timetable info you can search for and select the segment. You are going to have to deal with cases of trains going A to C without stopping at B inbetween (so B won't be in the timetable info you get), making it more difficult to select the correct segments. No- one said this was easy, but there's more than one way to deal with that. > Could you perhaps give an example or a link to a page with help about > putting a marker at a certain distance on a polyline? Searching this group leads to a few http://groups.google.com/group/google-maps-js-api-v3/search?group=google-maps-js-api-v3&q=distance+along+polyline Larry's example http://www.geocodezip.com/v3_polyline_example_kmmarkers_0.html -- 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.
