$fusionMGpath = '../../layers/MapGuide/php/'; require_once $fusionMGpath . 'Common.php'; if (InitializationErrorOccurred()) { DisplayInitializationErrorHTML(); exit; } require_once $fusionMGpath . 'Utilities.php'; require_once $fusionMGpath . 'JSON.php'; require_once 'classes/markupcommand.php'; require_once 'classes/defaultstyle.php'; require_once 'classes/markupmanager.php'; $args = $_SERVER['REQUEST_METHOD'] == "POST" ? $_POST : $_GET; $markupManager = new MarkupManager($args); //Get the layer style and feature source for this Layer Definition. The whole UI is initialized from the values found here $style = $markupManager->GetLayerStyle($args["EDITMARKUPLAYER"]); $editFeatureSource = $markupManager->GetFeatureSource($args["EDITMARKUPLAYER"]); $errorMsg = null; $errorDetail = null; $defaultFormat = null; $defaultGeomType = null; if (array_key_exists("REDLINEFORMAT", $args) && array_key_exists("REDLINEGEOMTYPE", $args)) { if (strcmp($args["REDLINEFORMAT"], "SDF") == 0) { $defaultFormat = $args["REDLINEFORMAT"]; $defaultGeomType = $args["REDLINEGEOMTYPE"]; } else { if (strcmp($args["REDLINEFORMAT"], "SHP") == 0) { $defaultFormat = $args["REDLINEFORMAT"]; $defaultGeomType = $args["REDLINEGEOMTYPE"]; } else { if (strcmp($args["REDLINEFORMAT"], "SQLite") == 0) {