The navigator is very slow with two hundred markers

89 views
Skip to first unread message

angelcr

unread,
Dec 8, 2011, 10:02:26 AM12/8/11
to Google Maps JavaScript API v3
Hi,

I'm developing an web application based in api google maps v3. I have
a setInterval in js that gets marker's position (vehicles) every 5
seconds from server. When I have more 200 markers is necessary many
ram memory and the navigator (ie, chrome, firefox) is very slow. I
don`t know if I use much time in setInterval process (20 seconds for
example) could help me.

If you have any idea how fix the problem?

Thanks and sorry for my english !!
Regards
Angel

Luke Mahé

unread,
Dec 8, 2011, 8:14:39 PM12/8/11
to google-map...@googlegroups.com
Are you adding new markers every time or are you moving existing markers?

Also I recommend that you check that you are following the Terms of Service, particularly the asset tracking section (10.2 c iii)

-- Luke



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


angelcr

unread,
Dec 9, 2011, 3:53:16 AM12/9/11
to Google Maps JavaScript API v3
Hello,

I am moving existing markers. I have an array of javascript's object.
Every object has a marker and I use the setPosition function when data
are received from server.

I will check the asset tracking section.

Thanks

On 9 dic, 02:14, Luke Mahé <lu...@google.com> wrote:
> Are you adding new markers every time or are you moving existing markers?
>
> Also I recommend that you check that you are following the Terms of
> Service, particularly the asset tracking section (10.2 c iii)
>
> -- Luke
>

Jakub Synowiec

unread,
Dec 9, 2011, 8:27:11 AM12/9/11
to google-map...@googlegroups.com
Check if MarkerManager from utility library (http://code.google.com/p/google-maps-utility-library-v3/) solves your problem.

Martin™

unread,
Dec 10, 2011, 1:00:10 AM12/10/11
to Google Maps JavaScript API v3
Maybe you've inadvertently disabled the newer canvas Markers and are
getting the older DOM markers...?

https://groups.google.com/group/google-maps-js-api-v3/browse_frm/thread/ac0d90c91ecec6a0/61a9540092badcf8?hl=en&lnk=gst

Martin.

Reply all
Reply to author
Forward
0 new messages