$callBacks += 1;
        }
    }
}
?>
        var callBacks = <?php 
echo $callBacks;
?>
;

<?php 
/* Step 1: Figure out what fields we need to geocode. */
if (isset($exhibits_to_show) && count($exhibits_to_show) > 0) {
    foreach ($exhibits_to_show as $exhibit_to_show) {
        $exhibit_id = $exhibit_to_show->get('id');
        $fields = WpExhibitGeocoder::getGeocodedFieldsForExhibit($exhibit_id);
        foreach ($fields as $field) {
            /* Step 2: Build up a big list of all the data (itemID, field, value) for these fields */
            ?>
            geoExId = "<?php 
            echo $exhibit_id;
            ?>
";
            geoAddressField = "<?php 
            echo $field;
            ?>
";
            geoIds = Array();
            geoAddresses = Array();
            
            // TOOD: getItemProps