encode($theme->GetLayerInfo()); break; case "GETPROPERTYMINMAXCOUNT": $reponseType = 'text/plain'; $response = $json->encode($theme->GetPropertyMinMaxCount()); break; case "APPLYTHEME": $reponseType = 'text/plain'; $response = $json->encode($theme->ApplyTheme()); // $reponseType = 'text/xml'; // $response = $theme->ApplyTheme(); break; } } header('Content-Type: ' . $responseType); echo $response; exit; } catch (MgException $mge) { $errorMsg = $mge->GetExceptionMessage(); $errorDetail = $mge->GetDetails(); } catch (Exception $e) { $errorMsg = $e->GetMessage(); } ?>
Error