if ($gContent->expunge()) { $statusCode = 200; $gBitSmarty->assign('expungeSucces', true); } else { $XMLContent = tra("Sorry, there was an unknown error trying to delete the polygonset."); } } else { $XMLContent = tra("You do not have the required permission to delete this polygonset."); } } else { $gContent->invokeServices('content_edit_function'); $polygonset = $gContent->mInfo; require_once GMAP_PKG_PATH . 'BitGmap.php'; $gmap = new BitGmap(); $listHash = array(); $polylineStyles = $gmap->getPolylineStyles($listHash); $polygonStyles = $gmap->getPolygonStyles($listHash); // match the style to get the name - some day we should get this in the load query if ($gContent->isValid()) { foreach ($polylineStyles as $style) { if ($style['style_id'] == $polygonset['polylinestyle_id']) { $polygonset['polylinestyle_name'] = $style['name']; break; } } foreach ($polygonStyles as $style) { if ($style['style_id'] == $polygonset['style_id']) { $polygonset['style_name'] = $style['name']; break; } }