简体   繁体   中英

Google Maps API v3 are not displaying more than 10 markers

I am using Geocoder callback function for getting latitude and longitude value which is asynchronous.

This works great for the 1st 10 items. I will see a markers on the map as well as those 10 listed on my sidebar. However, the 11th item and beyond will not display anything. I am querying our internal database based on parameters set which often will produce 30+ rows returned in the database table which I am looping through.

Is there any way to display more than 10 addresses on google map. or is there any need to purchase any license for get additional API for geocoder .

Thanks in advance !

The Google Geocoding services are rate limited and subject to quotas (to prevent abuse), the (paid) Google Maps API for Business , does have higher limits. The usual suggestion is to geocode the loctions offline, store the coordinates in your database , then use those coordinates to display the markers.

If you can't store the locations in your database, you need to check the return value in the geocoder and delay when it returns over query limit errors. There are examples of doing that both here in SO and in the Google Maps API v3 group .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM