On Jul 10, 6:47 am, William <[email protected]> wrote: > On Jul 9, 6:20 pm, Enrico <[email protected]> wrote:> Thank you very > much, very interesting link. > > > Finally i used the same method ofhttp://wtp2.appspot.com/ParallelLines.htm > > that is an implementation of google.maps.OverlayView() and it work. > > For the parallel algorithm, I translated some old C code I wrote years > ago into javascript, and made a Centerline class which can calculate a > parallel path using a MVCArray. This array is updated on the map's > zoom_changed event, which updates the polyline: > > http://www.william-map.com/20100710/1/parallel.htm > > but with 350 street center lines it is *very* slow in > IE:http://www.william-map.com/20100710/1/adelaide.htm > > ...
It seems to me you will have to determine the tangent at each vertex in order to have a fixed displacement from each vertex along the perpendicular to the tangent. It requires interpolation along each of two line segments connecting each vertex with its two immediate neighbors in order to have two equidistant verticies from which the tangent can be determined. It is feasible. It is a lot of overhead for JavaScript. -- 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.
