title: How to create multiple markers 100+ on Google Maps
body: <p>I want to show 100 markers on custom map am i supposed to repeat below single marker code 100 times and have enormous file or is there other more compact way to create multiple markers?</p>
  
  <pre><code> var marker = new google.maps.Marker({
                  position: new google.maps.LatLng(34.052661,-118.269976),
                  title:"Hello World!",
                  map:map,
                  animation: google.maps.Animation.DROP
              });
  
              google.maps.event.addListener(marker, 'click', function() {
                  infowindow.open(map,marker);
              });
  
              var infowindow = new google.maps.InfoWindow({
                  content: '&lt;div id="content"&gt;'+
                                  '&lt;div id="siteNotice"&gt;'+
                                  '&lt;/div&gt;'+
                                  '&lt;h1 id="firstHeading" class="firstHeading"&gt;Uluru&lt;/h1&gt;'+
                                  '&lt;div id="bodyContent"&gt;'+
                                  '&lt;p&gt;&lt;b&gt;Uluru&lt;/b&gt;, also referred to as &lt;b&gt;Ayers Rock&lt;/b&gt;, is a large ' +
                                  'sandstone rock formation in the southern part of the '+
                                  'Northern Territory, central Australia. It lies 335&amp;#160;km (208&amp;#160;mi) '+
                                  'south west of the nearest large town, Alice Springs; 450&amp;#160;km '+
                                  '(280&amp;#160;mi) by road. Kata Tjuta and Uluru are the two major '+
                                  'features of the Uluru - Kata Tjuta National Park. Uluru is '+
                                  'sacred to the Pitjantjatjara and Yankunytjatjara, the '+
                                  'Aboriginal people of the area. It has many springs, waterholes, '+
                                  'rock caves and ancient paintings. Uluru is listed as a World '+
                                  'Heritage Site.&lt;/p&gt;'+
                                  '&lt;p&gt;Attribution: Uluru, &lt;a href="http://en.wikipedia.org/w/index.php?title=Uluru&amp;oldid=297882194"&gt;'+
                                  'http://en.wikipedia.org/w/index.php?title=Uluru&lt;/a&gt; '+
                                  '(last visited June 22, 2009).&lt;/p&gt;'+
                                  '&lt;/div&gt;'+
                              '&lt;/div&gt;',
              });
  </code></pre>