foreach ($all_ts as $the_template) { array_push($appear_in_t, in_array($the_attribute->id, $the_template->all_att_ids)); } echo ' t: ' . json_encode($appear_in_t); if ($the_attribute->x != null) { echo ', x: ' . json_encode($the_attribute->x, JSON_UNESCAPED_UNICODE) . ' }'; } else { echo ' }'; } } } ?> ], m: [ <?php // Only output maps that are used by this Exhibit $map_defs = $the_xhbt->get_used_maps(); // Output each entry $first = true; foreach ($map_defs as $the_map) { if (!$first) { echo ', '; } $first = false; echo '{ id: "' . $the_map->id . '", '; echo ' sname: "' . $the_map->meta_data['sname'] . '", '; echo ' credits: "' . $the_map->meta_data['credits'] . '", '; echo ' url: "' . $the_map->meta_data['url'] . '", '; echo ' subd: "' . $the_map->meta_data['subd'] . '", '; echo ' swBounds: ' . json_encode($the_map->meta_data['swBounds']) . ', '; echo ' neBounds: ' . json_encode($the_map->meta_data['neBounds']) . ', '; echo ' minZoom: ' . $the_map->meta_data['minZoom'] . ', ';