if (!$p->setTVValue($lng_tv, $Gmarker->get('location.lng'))) { $modx->log(xPDO::LOG_LEVEL_ERROR, '[Gmarker] ' . $modx->lexicon('problem_saving', array('id' => $resource->get('id')))); } } // Set checkbox group $this_group = $p->getTVValue($group); $distinct_groups[$this_group] = 1; $prps['group_json'] = '""'; if ($group) { $group_str = trim($p->getTVValue($group)); if ($groupCallback) { $group_str = $modx->runSnippet($groupCallback, array('group' => $group_str)); } $prps['group_json'] = json_encode($group_str); } $prps['marker_color'] = $Gmarker->get_color($p->getTVValue($group), $idx); if ($showResults) { $prps['marker_center'] = $letter; $results .= $modx->getChunk($resultTpl, $prps); } else { $prps['marker_center'] = $marker_center; } $props['markers'] .= $modx->getChunk($markerTpl, $prps); $idx++; $letter++; } // Get Checkbox Controls $cb_group = array_keys($distinct_groups); $checkboxes = ''; if ($checkbox == 1 && $group != null) { $i = 0;