Following the example in the documents, I created an example that creates 10,000 points for plotting on a heat map, without any problems. So it cannot be some kind of speed limit. There must be something else in the game. In this example, there is not even an API key, therefore, in a free plan.
Ten Thousand Floating Point Demos
<div id="map"></div> <script> var map, heatmap; function initMap() { map = new google.maps.Map(document.getElementById('map'), { zoom: 2, center: {lat: 37.775, lng: -122.434}, }); heatmap = new google.maps.visualization.HeatmapLayer({ data: getPoints(), map: map }); } function getPoints() { var lotsOfMarkers = []; for( var i = 1; i <= 10000; i++) { var random = new google.maps.LatLng( (Math.random()*(85*2)-85), (Math.random()*(180*2)-180) ); lotsOfMarkers.push(random); } return lotsOfMarkers; } </script> <script async defer src="https://maps.googleapis.com/maps/api/js?&libraries=visualization&callback=initMap"> </script>
Paul thomas
source share