Limit to points on Google MAP?

Is there a limit to the number of "points" that can be displayed on a Google MAP using the API?


If it is displayed in FireFox, some of the points are missing, different ones each time.

If it is displayed in IE, it looks complete.

Is this a FireFox problem?
Richard KortsAsked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

Molnar IstvánConnect With a Mentor HelpDesk / ProgrammerCommented:
-i tried to displaying just 10 addresses (from addrs[0]-addrs[9] - original form of array) and it worked for me in IE and FF too
-in the code var is missing before the addrs = new Array(); and  ltrs = new Array();
-i tried to create the array like in the code below and most of the time its working in both IE and FF
var addrs = new Array("13908 E 22nd N, Wichita, KS","4239 N Rushwood Ct, Wichita, KS","8413 Oxford Cir, Wichita, KS","3411 S Gold, Wichita, KS","1529 S Shiloh, Wichita, KS","1601 Siefkin Ln, Wichita, KS","566 St. Andrews, Wichita, KS","7700 E 13th, Wichita, KS","Garvey Center, Wichita, KS","10 E Swallow, Wichita, KS","15219 E Sweetgum Dr, Wichita, KS","818 N Crest St, Wichita, KS","1806 Glenn Wood Circle, Wichita, KS","2723 Meadow Oaks, Wichita, KS","14028 E Gilbert, Wichita, KS","13508 Ayesbury, Wichita, KS","2009 N Clear Creek Ct, Wichita, KS","933 Tara Ln, Wichita, KS","8450 Killarney, Wichita, KS","12122 Killenwoon Ct, Wichita, KS","2844 Tallgrass, Wichita, KS");

Open in new window

Molnar IstvánHelpDesk / ProgrammerCommented:
in the v2 was, (so i suppose that in v3 is still ) no maximum number of markers (the maximum number is dependent on the memory available to the browser)
if you have too many markers (more that 100, not to mention 1000), the markers will overlap and many of them will be unusable
the solution would be, reducing the markers:
-search: provide a search funtion-only that markers will display that match the search criteria
-filter: making a filter funtion on the page for users- only that markers will display that match the filter option
-clustering: instead of display all the markers, cluster of markers are displayed (significantly increase performance)
-grid clustering (most common): divide the map into a grid and group all the markers within each square into a cluster

there are some 3rd party libraries that could help in this: MarkerClusterer and MarkerManager

hope it helps
Richard KortsAuthor Commented:
To quicksilver17:

There are about 20 on that page. Did you look at the page?

In IE it looks OK.

In FireFox, points are missing.

The 14th Annual Expert Award Winners

The results are in! Meet the top members of our 2017 Expert Awards. Congratulations to all who qualified!

Molnar IstvánHelpDesk / ProgrammerCommented:
i think that the problem clould be that some of the addresses are not clear for the google
for ex: if i search for - 1529 S Shiloh, Wichita, KS
           googles not sure of the address and will result:
                    1: 1529 Shiloh, Wichita, Kansas 67207,
2: 1529 S Shiloh St, Wichita, Kansas 67207,
3: 1529 S Shiloh Cir, Wichita, Kansas 67207,
4: S Shiloh Cir, Wichita, Kansas 67207,
5: S Shiloh St, Wichita, Kansas 67207,
6: S Shiloh Ct, Wichita, Kansas 67207,
(i check with this : and with ) i suppose  therefore the number of markers are displayed randomly

here is some solution for this:
Richard KortsAuthor Commented:
That DOES NOT explain why it works in IE.

The actions going on at the Google servers should be independent of the browser
Molnar IstvánHelpDesk / ProgrammerCommented:
the number of markers are randomly displayed:
i count the markers in IE 8 and was at the first 18 then after refresh 12 , another refresh 11 , another 15 ...
the same results i got in firefox:

my idea is that you could try to change the addresses to coords , instead of writing :13908 E 22nd N, Wichita, KS write:  37.724822,-97.176126 to see if the problems come from the addresses
if all the markers are displayed correctly after more refreshes, and are not random it means that the problem comes from the address
if with coords are also randomly displayed, means something is wrong in the script

try it in IE and FF: check if all the markers are displayed correctly-count the markers , refresh, and so on
Richard KortsAuthor Commented:
To quicksilver17:

I refreshed it numerous times in IE.

In IE it ALWAYS shows ALL the markers (as it should).

In FireFox the number varies. I just refreshed twice. The first time (in FF) it showed 13, the 2nd time 18.

There are 21 points altogether.

It will PROBABLY by OK, since the specific screen will be used ONLY by internal staff so I can tell them to use IE (NOT FireFox), but it's still troubling to have it behave randomly in FireFox.
Richard KortsAuthor Commented:
The solution does not completely solve the problem.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.