getGroupName(), $groups, TRUE)) { $glayerList = $grp->getLayers(); foreach ($glayerList as $glayer) { $resFldList = $glayer->getResFields(); $mapLayer = $map->getLayer($glayer->getLayerIdx()); // Check for template $hasTemplate = 0; if ($mapLayer->template) $hasTemplate = 1; $numclasses = $mapLayer->numclasses; for ($cl=0; $cl < $numclasses; $cl++) { $class = $mapLayer->getClass($cl); $classTemplate = $class->template; if ($class->template) $hasTemplate = 1; } if ($mapLayer->type < 3 && checkScale($map, $mapLayer, $scale) == 1 && $resFldList[0] != '0' && $hasTemplate) { $showgroups[] = $grp; break; } } } } // Print combo box with all visible groups $gstr = "
"; if (count($showgroups) > 0) { $gstr .= _p("Selection for Layer") . ""; $gstr .= ""; $gstr .= ""; } $gstr .= "
"; // return JS object literals "{}" for XMLHTTP request echo "{method:'updateSelectTool', selStr:'$gstr'}"; ?>