Hello,

I'm currently trying to figure out how I can show traffic information
in an overlay on a Google Map (in a country where google maps does not
already support Live Traffic). The provided data looks like: "point a
to point b is red" but the problem is that I've got approx. 2000 of
these small lines, this causes the browser to crash/timeout due to the
long render time (obviously) when adding them to the map one by one.

Now I was wondering if encoded polygon lines are really the way to go
here... maybe I could group by color so I would have 3 encoded poly
line objects (e.g. green,orange,red,...). The problem in this case is
that the highways obviously head in multiple directions, which makes
it impossible to define in a single polyline (as far as I know).

So my final question would be:
Does anyone have experience with drawing complex polylines in multiple
directions with up to about 2000 small parts?

An alternative solution would be to draw all the roads in green by
default and overwrite parts with red/orange where applicable.

Thanks in advance,
Jasper

-- 
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.

Reply via email to