Note that there are some explanatory texts on larger screens.

plurals
  1. POclusterer google map
    primarykey
    data
    text
    <p>I know markerClusterer able to handling large amounts markers on google map. By referring this example code as below shown</p> <pre><code>&lt;script src="http://maps.google.com/maps/api/js?sensor=false"&gt;&lt;/script&gt; &lt;script type="text/javascript" src="../src/data.json"&gt;&lt;/script&gt; &lt;script type="text/javascript"&gt; var script = '&lt;script type="text/javascript" src="../src/markerclusterer'; if (document.location.search.indexOf('compiled') !== -1) { script += '_compiled'; } script += '.js"&gt;&lt;' + '/script&gt;'; document.write(script); &lt;/script&gt; &lt;script type="text/javascript"&gt; function initialize() { var center = new google.maps.LatLng(37.4419, -122.1419); var map = new google.maps.Map(document.getElementById('map'), { zoom: 3, center: center, mapTypeId: google.maps.MapTypeId.ROADMAP }); var markers = []; for (var i = 0; i &lt; 100; i++) { var dataPhoto = data.photos[i]; var latLng = new google.maps.LatLng(dataPhoto.latitude, dataPhoto.longitude); var marker = new google.maps.Marker({ position: latLng }); markers.push(marker); } var markerCluster = new MarkerClusterer(map, markers); } google.maps.event.addDomListener(window, 'load', initialize); &lt;/script&gt; </code></pre> <p>First question, why this example infowindow cannot work?</p> <p>Second if I have such array like this:</p> <pre><code>[-6.358851,106.889359] =&gt; Array ( [0] =&gt; stdClass Object ( [name] =&gt; C ) ) [-6.154060,106.854080] =&gt; Array ( [0] =&gt; stdClass Object ( [name] =&gt; A ) [1] =&gt; stdClass Object ( [name] =&gt; B ) ) </code></pre> <p>Can I do like those have the same lat and lon, stack the information within one infowindow? I know it could be. I just wondering how to do it. And how does the json data format to get the right output on map? </p> <p>Hope anyone here can help me. Thanks in advance.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload