$vs_facet_name = $this->getVar("facet_name"); $vs_key = $this->getVar("key"); $vs_browse_type = $this->getVar("browse_type"); $vs_link_to = $this->request->getParameter('linkTo', pString); $va_links = array(); if ($vs_facet_name == "place_facet_hier") { $t_lists = new ca_lists(); $va_place_type_ids_to_exclude = array($t_lists->getItemIDFromList("place_types", "city"), $t_lists->getItemIDFromList("place_types", "basin"), $t_lists->getItemIDFromList("place_types", "other"), $t_lists->getItemIDFromList("place_types", "locality")); } foreach ($va_facet_list as $vn_key => $va_facet) { if ($vs_facet_name == "place_facet_hier") { require_once __CA_MODELS_DIR__ . "/ca_places.php"; $va_child_ids = array_keys($va_facet); array_shift($va_child_ids); if (sizeof($va_child_ids) > 0) { $q_children = ca_places::createResultSet($va_child_ids); $va_children_type_ids = array(); if ($q_children->numHits()) { while ($q_children->nextHit()) { $va_children_type_ids[$q_children->get("place_id")] = $q_children->get("type_id"); } } } } foreach ($va_facet as $vn_id => $va_children) { if ($vs_facet_name == "place_facet_hier" && in_array($va_children_type_ids[$vn_id], $va_place_type_ids_to_exclude)) { continue; } if (isset($va_children["name"])) { $vs_tmp = ""; $vs_tmp .= "<div>";
?> </div><!-- end leftCol --> <div id="rightColMap"> <?php # --- map # --- plot circle based on point for tracks and verts $o_config = caGetDetailConfig(); $va_types = $o_config->getAssoc('detailTypes'); $va_options = $va_types["place"]["options"]; $vs_map_attribute = caGetOption('map_attribute', $va_options, false); if ($vs_map_attribute && $t_place->get($vs_map_attribute)) { $o_map = new GeographicMap(($vn_width = caGetOption('map_width', $va_options, false)) ? $vn_width : 285, ($vn_height = caGetOption('map_height', $va_options, false)) ? $vn_height : 200, 'map'); $o_map->mapFrom($t_place, $vs_map_attribute); print $o_map->render('HTML', array("obscure" => true, "circle" => true, "radius" => 20000, "fillColor" => "#000000", "pathColor" => "#000000", "zoomLevel" => 5)); } else { $qr_hits = ca_places::createResultSet($va_hierarchy_ids); if ($qr_hits->numHits()) { while ($qr_hits->nextHit()) { if ($qr_hits->get($vs_map_attribute)) { $t_place->load($qr_hits->get("place_id")); $o_map = new GeographicMap(($vn_width = caGetOption('map_width', $va_options, false)) ? $vn_width : 285, ($vn_height = caGetOption('map_height', $va_options, false)) ? $vn_height : 200, 'map'); $o_map->mapFrom($t_place, $vs_map_attribute); print $o_map->render('HTML', array("obscure" => true, "circle" => true, "radius" => 20000, "fillColor" => "#000000", "pathColor" => "#000000", "zoomLevel" => 5)); break; } } } } ?> </div><!-- end rightColMap --> </div><!-- end detailBody -->