title: How can I add two locations into same google map for website
body: <p>I am working on including two locations on same google map. Here I have included one location , how can I include another location which have Latitude and Longitude as  51.626778, 0.513829. If I include same as our  previous India address, by adding Latitude and Longitude means of comma, It does not work. The below is My JS and HTML</p>
  
  <p>I have integrated google map using API "<a href="http://maps.google.com/maps/api/js?sensor=false" rel="nofollow">http://maps.google.com/maps/api/js?sensor=false</a> "</p>
  
  <p>HTML:   <code>&lt;div id="Map"&gt;&lt;/div&gt;</code> </p>
  
  <p>CSS:<code>#map{
  width:100%;
  height:450px;}</code></p>
  
  <p>JS:</p>
  
  <pre class="lang-js prettyprint-override"><code>var locations = [
      ['&lt;div class="infobox"&gt;&lt;h3 class="title"&gt;&lt;a href="#contact"&gt;OUR INDIA ADDRESS&lt;/a&gt;&lt;/h3&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;',  12.996868, 80.209891, 2]
  
      ];
  
      var map = new google.maps.Map(document.getElementById('map'), {
  
        zoom: 13,
          scrollwheel: false,
          navigationControl: true,
          mapTypeControl: false,
          scaleControl: false,
          draggable: false,
          styles: [ { "stylers": [ { "hue": "#ff6501" },  {saturation: 20},
              {gamma: 1} ] } ],
          center: new google.maps.LatLng( 12.996868, 80.209891),
        mapTypeId: google.maps.MapTypeId.ROADMAP
      });
  
      var infowindow = new google.maps.InfoWindow();
  
      var marker, i;
  
      for (i = 0; i &lt; locations.length; i++) {  
  
          marker = new google.maps.Marker({ 
          position: new google.maps.LatLng(locations[i][1], locations[i][2]), 
          map: map ,
          icon: 'images/marker1.png'
          });
  
  
        google.maps.event.addListener(marker, 'click', (function(marker, i) {
          return function() {
            infowindow.setContent(locations[i][0]);
            infowindow.open(map, marker);
  
          }
        })(marker, i));
      }
  </code></pre>
  
  <p>Kindly guide me on this , Thanks for the help.</p>
  
  <p>Edit : Yes same way displaying multiple location simultaneously, with marker </p>