title: Advanced Custom Fields and Google Maps Multiple Markers
body: <p>I have some code that generates a Google Map to show a marker based on the location field supplied via a custom field named 'event_map'. It works great.</p>
  
  <pre><code>&lt;?php 
  $location = get_field('event_map');
  if( !empty($location) ):
  ?&gt;
  &lt;div class="acf-map"&gt;
  &lt;div class="marker" data-lat="&lt;?php echo $location['lat']; ?&gt;" data-lng="&lt;?php echo $location['lng']; ?&gt;"&gt;&lt;/div&gt;
  &lt;/div&gt;
  &lt;?php endif; ?&gt;
  </code></pre>
  
  <p>I now want to add a map that shows ALL of the markers from ALL of the posts from the 'tour-dates' custom post type. How would I go about doing this assuming all of these posts have a field called 'event_map' to draw location data from? I am stumped and any help appreciated.</p>