title: Google Maps Cluster markers array format
body: <p>I have simple map with clusters and markers from array. Markers are set from locations array in format of :{lat: 36.4381369,lng: -93.0502099}, I have a lot of coordinates to add from other map but they are in format of: (36.4381369,-93.0502099)
  I need to convert first format to second somehow.
  I tried LatLng(36.4381369,-93.0502099) and other combinations but markers/cluster does not show up on the map.</p>
  
  <p>This works but need locations array to be without lat: lang: in front of each number.</p>
  
  <pre><code>function initMap() {
  
          var map = new google.maps.Map(document.getElementById('map'), {
            zoom: 4,
            //center: {lat: -41.850033, lng: -87.6500523}
          });
          map.setCenter(new google.maps.LatLng(35.850033, -98.6500523));
  
          // Create an array of alphabetical characters used to label the markers.
          var labels = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ';
  
          // Add some markers to the map.
          // Note: The code uses the JavaScript Array.prototype.map() method to
          // create an array of markers based on a given "locations" array.
          // The map() method here has nothing to do with the Google Maps API.
          var markers = locations.map(function(location, i) {
            return new google.maps.Marker({
              position: location,
              label: labels[i % labels.length]
            });
          });
  
          // Add a marker clusterer to manage the markers.
          var markerCluster = new MarkerClusterer(map, markers,
              {zoomOnClick: false, imagePath: 'https://developers.google.com/maps/documentation/javascript/examples/markerclusterer/m'});
        }
        var locations = [
          {lat: 36.4381369,lng: -93.0502099},
          {lat: 36.2259742,lng: -92.6828437}
        ]
  </code></pre>
  
  <p>This does not work.</p>
  
  <pre><code> var markers = locations.map(function(location, i) {
          var point = location.maps.LatLng(location);
            return new google.maps.Marker({
              //position: new google.maps.LatLng(locations),
              //position: point,
              position: location,
              label: labels[i % labels.length]
            });
          });
  
          // Add a marker clusterer to manage the markers.
          var markerCluster = new MarkerClusterer(map, markers,
              {zoomOnClick: false, imagePath: 'https://developers.google.com/maps/documentation/javascript/examples/markerclusterer/m'});
        }
        var locations = [
          (36.4381369,-93.0502099),
          (36.2259742,-92.6828437)
        ]
  </code></pre>