Gmail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
Number of Markers
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  8 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
RJT  
View profile  
 More options Jun 30 2005, 8:13 am
From: "RJT" <richard.telf...@bjerknes.uib.no>
Date: Thu, 30 Jun 2005 05:13:21 -0700
Local: Thurs, Jun 30 2005 8:13 am
Subject: Number of Markers
Hi, I have a map which plots ~400 markers from an XML file (code taken
from the example files). Firefox warns hat the script is running slowly
- it does. Any suggestions how to speed thinks up, or the maximum safe
number of markers if I have to split the map up?
Thanks.

    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
jshirley@gmail.com  
View profile  
 More options Jun 30 2005, 8:16 am
From: "jshir...@gmail.com" <jshir...@gmail.com>
Date: Thu, 30 Jun 2005 12:16:31 -0000
Local: Thurs, Jun 30 2005 8:16 am
Subject: Re: Number of Markers
I have the same issue, and I've found that 25 is a good number.  It's
highly dependent upon the client's computer, so even if you have a nice
fast system it may trudge along on another system.

    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
mathowie  
View profile  
 More options Jun 30 2005, 9:02 am
From: "mathowie" <matho...@gmail.com>
Date: Thu, 30 Jun 2005 06:02:30 -0700
Local: Thurs, Jun 30 2005 9:02 am
Subject: Re: Number of Markers
I have a lat/lon dataset from 3300 users of my community site that I'd
like to plot on a US map, so of course I get the same warning in
Firefox when I try and load them all up as an array. Is this beyond the
bounds of what I can expect from the maps API? Should I just limit the
data to state by state (some states still have hundreds of records).

    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
sandobade  
View profile  
 More options Jun 30 2005, 9:10 am
From: "sandobade" <cont...@sandoba.de>
Date: Thu, 30 Jun 2005 06:10:37 -0700
Local: Thurs, Jun 30 2005 9:10 am
Subject: Re: Number of Markers
Do you really need to show all users at the time? If not, use AJAX to
continuesly fetch the data of the markers inside the shown area of the
map.

    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
jshirley@gmail.com  
View profile  
 More options Jun 30 2005, 9:10 am
From: "jshir...@gmail.com" <jshir...@gmail.com>
Date: Thu, 30 Jun 2005 13:10:56 -0000
Local: Thurs, Jun 30 2005 9:10 am
Subject: Re: Number of Markers
It's not a limitation of the Google Maps API, it's a limitation of
browser resources.  It's just an expensive operation to load up markers
and have an application surrounding them.  JavaScript isn't a language
known for it's massive performance benefits.

I'd recommend using some method of pagination or heirarchical grouping
of data until you can reduce your result set (look at events to handle
scrolling and zoom level)


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Rev Dan Catt  
View profile  
 More options Jun 30 2005, 9:24 am
From: "Rev Dan Catt" <revdanc...@gmail.com>
Date: Thu, 30 Jun 2005 06:24:24 -0700
Local: Thurs, Jun 30 2005 9:24 am
Subject: Re: Number of Markers
I'd say 100 is the maximum you should hope for, 25-50 is the sweet
spot. It really is just the XML processing that's going on. I've found
that FireFox is a lot better than IE too, which takes about 4 times
longer and hangs the system while plotting them.

Do they have to be displayed on a web page. If you generate a KML file
(KeyHole Mark Up) then you can show them on Google Earth, I pretty sure
that can handle pulling in 3000+ records.


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
seems Artless  
View profile  
 More options Jun 30 2005, 9:40 am
From: "seems Artless" <david.s.toro...@gmail.com>
Date: Thu, 30 Jun 2005 13:40:28 -0000
Local: Thurs, Jun 30 2005 9:40 am
Subject: Re: Number of Markers
This is a very intresting idea... could you point us to some code to
help with that?

I assume it would at least involve:
        var bounds = map.getBoundsLatLng();
        var width = bounds.maxX - bounds.minX;
        var height = bounds.maxY - bounds.minY;

Then use that data to do a query for items within that range.

David S. http://www.seemsartless.com/map/


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
RodneyG  
View profile  
 More options Jul 1 2005, 9:58 am
From: "RodneyG" <rodn...@carolina.rr.com>
Date: Fri, 01 Jul 2005 06:58:38 -0700
Local: Fri, Jul 1 2005 9:58 am
Subject: Re: Number of Markers

RJT wrote:
> Hi, I have a map which plots ~400 markers from an XML file (code taken
> from the example files). Firefox warns hat the script is running slowly
> - it does. Any suggestions how to speed thinks up, or the maximum safe
> number of markers if I have to split the map up?
> Thanks.

Just as another data point, I successfully plotted 500 points.  It took
right at 3 minutes in IE, on my P4 3.0Ghz 1G RAM desktop running XP.
IE threw up a warning after the first minute.

The points were hard-coded javascript, i.e. not being read from an XML
file.

For what it's worth, the map moves around and zooms at "normal" speed
once the markers are all plotted.  Also for what it's worth, the
initial zoom level makes no difference regarding how long it takes to
load the points.


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google