Solved

Limit to points on Google MAP?

Posted on 2010-11-17
8
814 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
Comment Utility
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
Comment Utility
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
Comment Utility
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
 

Author Comment

by:Richard Korts
Comment Utility
That DOES NOT explain why it works in IE.

The actions going on at the Google servers should be independent of the browser
0
How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

 
LVL 13

Expert Comment

by:Molnar István
Comment Utility
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
Comment Utility
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 500 total points
Comment Utility
-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
Comment Utility
The solution does not completely solve the problem.
0

Featured Post

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

Suggested Solutions

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…

762 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

Need Help in Real-Time?

Connect with top rated Experts

8 Experts available now in Live!

Get 1:1 Help Now