It sounds like you need your 2 Polylines to stay a minimum distance apart as you zoom out, so they don't merge into 1 line. A simple hack would be to render a thin opaque black Polyline down the middle of the road with a higher zIndex - that would divide the 2 Polylines. Another alternative would be to offset the 2 Polylines in JS, but that would be complex and slower.
Good luck! Ben On 8 Jul 2010 18:28, "Enrico" <[email protected]> wrote: Hi, I start to play with API v3 and I have a conceptual problem: I need something like traffic overlay but with own data. Basically I need to print two line (one for every direction of a street) and dynamically change the color. The main problem is what can I use for this: polyline or polygons? - with polyline the thickness of it is the same in every zoom level so, if i see two lines in zoom level 8, i see only one on 15 because they are overlapped. - with polygon on zoom 15 (f.e.) i can't see them because are too small (i try to print a path with thickness 1 and printed like a street) I try to understand what use google in traffic but I can't. Any help? I will use javascript API v3 Thank! -- 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]<google-maps-js-api-v3%[email protected]> . For more options, visit this group at http://groups.google.com/group/google-maps-js-api-v3?hl=en. -- 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.
