not all markers are dispayed

27 views
Skip to first unread message

TBA TBA Badminton

unread,
Jun 20, 2011, 4:30:59 PM6/20/11
to google-map...@googlegroups.com
I am using Google Maps JavaScript API V3 with this setup:

<meta name="viewport" content="initial-scale=1.0, user-scalable=no" />
<script type="text/javascript" src="http://maps.google.com/maps/api/js?v=3&sensor=false&region=DE"></script>


and geocoder with approx. 50 lookups.
These are hard-coded in JavaScript section of this example page (see source):

http://www.bv-rheinland.de/karteneu.html


Problem: There are only 11 markers shown instead of all 50/sth.

Did I miss any restriction or did I do sth. wrong?

Rossko

unread,
Jun 20, 2011, 6:00:28 PM6/20/11
to Google Maps JavaScript API v3

Chris Broadfoot

unread,
Jun 21, 2011, 1:48:44 AM6/21/11
to google-map...@googlegroups.com
      geocoder.geocode( { 'address': address}, function(results, status)
      {
        if(status == google.maps.GeocoderStatus.OK)
        {
 ...
        }
        else
        {
//          alert("Geocode was not successful for the following reason: " + status);
        }
      });


I'm guessing you'll get many many alerts if you uncommented that one line...

--

TBA TBA Badminton

unread,
Jun 21, 2011, 5:23:17 AM6/21/11
to google-map...@googlegroups.com
Hi Chris,

thanks for your reply! I agree that such a feedback-mechanism is a good idea in the first place.

In this case I temporarily commented this line because the error messages were not of any use to me.

TBA TBA Badminton

unread,
Jun 21, 2011, 5:27:17 AM6/21/11
to google-map...@googlegroups.com
Hi Rossko,

I appreciate your valuable hints and will dig deeper into this direction.
(really did not find these with Google or this board's search function due to using other search terms :-( )

Guess I'll be storing locations in my Database. Whenever a city is added to DB I will geocode once and store the result for overlaying it later on.

Thank you!

geoco...@gmail.com

unread,
Jun 21, 2011, 8:01:53 AM6/21/11
to Google Maps JavaScript API v3
They were trying to tell you what the problem was (whether you wanted
to know or not...)

-- Larry

TBA TBA Badminton

unread,
Jun 21, 2011, 4:38:48 PM6/21/11
to google-map...@googlegroups.com
You are right, Larry:

Just gave it another try:
OVER_QUERY_LIMIT was the error message.

This is a good feedback.

Before I commented the line it just said

ZERO_RESULTS

although some Markers were painted...
-> That was not helpful in this case back then.


But now I am on the right track again.
;-)

Thanks folks!
Reply all
Reply to author
Forward
0 new messages