title: Is there an efficient way to create a lot of GMSMarker objects?
body: <p>I used an overlay on the google maps as shown:</p>
  
  <p><img src="https://i.stack.imgur.com/HlGgG.png" alt="enter image description here"></p>
  
  <p>I have a UIButton button at the top right corner that filters markers using a UIPickerView.</p>
  
  <p>Depending on the selection, I'm creating an X number of markers and placing it at the appropriate spots on the map.</p>
  
  <p>The issue I have is having to manually do this:</p>
  
  <pre><code>GMSMarker *marker1 = [ [GMSMarker alloc] init];
  GMSMarker *marker2 = [ [GMSMarker alloc] init];
  GMSMarker *marker3 = [ [GMSMarker alloc] init];
  GMSMarker *marker4 = [ [GMSMarker alloc] init];
  
  ....
  </code></pre>
  
  <p>Is there a quicker and more efficient way to create an X number of GMSMarker without repetitive code, ideally a for loop?</p>