Polylines segments with different colors( A LOT of it )

1,182 views
Skip to first unread message

Durval Henke

unread,
Jan 18, 2011, 10:52:09 PM1/18/11
to google-map...@googlegroups.com
Hello People,

I Have a small app for live tracking, where the client sends his position each second, or each 5 seconds, etc.
In V3 Api, i have successfully created a Google maps to visualize those tracks, in real time.
With random colors for each track (in this case only single polyline for each track), or even with colors representing the altitude of the point ( this is managed with a lot of polylines segments each one with his color).
My problem is .. A LOT OF CPU CONSUMING.

I NEED track the client in real time, second by second, or 5 in 5 seconds,  Fusion Tables is not for that, kmllayer.

I was thinking to use blocs, or even small png images dynamically generated by some script in the server, and putting all together as a Layer in map, or even simulating that the image is a Marker..

I do not want to spend more time in a programing black hole.
Please give me some directions to follow..

Regards

Henke
Brazil.

Chad Killingsworth

unread,
Jan 19, 2011, 10:01:27 AM1/19/11
to google-map...@googlegroups.com
You might consider using Barry Hunter's PolyCluster library. See https://groups.google.com/d/msg/google-maps-js-api-v3/8R4_f6IRJiQ/Ip_dWrRr_XkJ

Chad Killingsworth

Durval Henke

unread,
Jan 19, 2011, 3:47:35 PM1/19/11
to google-map...@googlegroups.com
Yes, i have seen this library.
But how to draw polylines dinamicaly with this library.
each second i need to call the Polycluster because the size of polylines will change
I think i will dig a bigger hole than i have.
I will give a try..
Regards.
Henke


2011/1/19 Chad Killingsworth <chadkill...@missouristate.edu>
You might consider using Barry Hunter's PolyCluster library. See https://groups.google.com/d/msg/google-maps-js-api-v3/8R4_f6IRJiQ/Ip_dWrRr_XkJ

Chad Killingsworth

--
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 google-map...@googlegroups.com.
To unsubscribe from this group, send email to google-maps-js-a...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-maps-js-api-v3?hl=en.

Durval Henke

unread,
Jan 19, 2011, 3:58:27 PM1/19/11
to google-map...@googlegroups.com
Not possible..
A LOT OF CPU CONSUMING ..

http://home.provide.net/~bratliff/polycluster/v3/absurd.html
I'm thinking that there is no solution for that.
:-(
Henke

2011/1/19 Durval Henke <durva...@gmail.com>

bratliff

unread,
Jan 19, 2011, 5:40:29 PM1/19/11
to Google Maps JavaScript API v3
It is a bug. I am working on it right now. I made some changes to
accommodate light weight markers. I broke the poly optimization
code. I expect to have it fixed in the next few days.

Sorry.

Berry Ratliff (not Barry Hunter)
Reply all
Reply to author
Forward
0 new messages