Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Limit to points on Google MAP?

Posted on 2010-11-17
8
Medium Priority
?
821 Views
Last Modified: 2012-05-10
Is there a limit to the number of "points" that can be displayed on a Google MAP using the API?

See http://www.lawnsprinklerservices.com/testgc4.php.

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?
0
Comment
Question by:Richard Korts
  • 4
  • 4
8 Comments
 
LVL 13

Expert Comment

by:Molnar István
ID: 34156606
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
0
 

Author Comment

by:Richard Korts
ID: 34156687
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.

Why?
0
 
LVL 13

Expert Comment

by:Molnar István
ID: 34156882
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 : http://econym.org.uk/gmap/example_didyoumean2.htm and with http://maps.google.com ) i suppose  therefore the number of markers are displayed randomly

here is some solution for this:
http://econym.org.uk/gmap/didyoumean.htm
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Author Comment

by:Richard Korts
ID: 34158746
That DOES NOT explain why it works in IE.

The actions going on at the Google servers should be independent of the browser
0
 
LVL 13

Expert Comment

by:Molnar István
ID: 34159119
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
0
 

Author Comment

by:Richard Korts
ID: 34160231
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.
0
 
LVL 13

Accepted Solution

by:
Molnar István earned 1500 total points
ID: 34160429
-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

0
 

Author Closing Comment

by:Richard Korts
ID: 34183862
The solution does not completely solve the problem.
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I feel like more and more people want to know how to programmatically convert addresses into geospatial locations. So in this article, I will show you how you can do it with Bing Maps. I'm going to use PowerShell, which is a nice scripting language,…
Introduction This article is designed to assist GIS (Geographic Information System) and GPS (Global Positioning System) developers using ESRI ArcGIS and other spatial information management systems.   For the uninitiated the concept of projectio…
This tutorial demonstrates how to identify and create boundary or building outlines in Google Maps. In this example, I outline the boundaries of an enclosed skatepark within a community park.  Login to your Google Account, then  Google for "Google M…
This tutorial walks through the best practices in adding a local business to Google Maps including how to properly search for duplicates, marker placement, and inputing business details. Login to your Google Account, then search for "Google Mapmaker…

927 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question