Пример #1
0
 // Did the user logout?
 CheckForLogout();
 // Are we cancelling?  If so, there is nothing to do.
 CheckForCancel('performanceReport.php');
 // Define Local values
 $menuCategory = PERFORMANCE_REPORT_MENU_ITEM;
 $pageTitle = PERFORMANCE_REPORT_MENU_ITEM;
 $helpPage = 'HelpDocs/performance_report.htm';
 $pageName = 'PerformanceReportPage';
 $formName = 'PerformanceReportForm';
 $homePage = NULL;
 $confirmationMsg = "";
 $errorMsg = "";
 $mapProfileResult = new MapProfileResult();
 $mapResources;
 $displayManager = new DisplayProfileResultManager();
 $recentSettings = new RecentSettings();
 //this user-defined sort function is according to the design
 function CompareMapName($a, $b)
 {
     $strA = $a["ShortNames"];
     $strB = $b["ShortNames"];
     $strALength = strlen($strA);
     $strBLength = strlen($strB);
     $length = 0;
     if ($strALength >= $strBLength) {
         $length = $strBLength;
     } else {
         $length = $strALength;
     }
     if (0 == $strALength) {
Пример #2
0
<?php

try {
    include 'resizableadmin.php';
    LoadSessionVars();
    // Did the user logout?
    CheckForLogout();
    // Are we cancelling?  If so, there is nothing to do.
    CheckForCancel('performanceReport.php');
    //sometimes the profiling map API needs a long time to response
    set_time_limit(900);
    // Define Local values
    $confirmationMsg = "";
    $errorMsg = "";
    $mapProfileResult = new MapProfileResult();
    $displayManager = new DisplayProfileResultManager();
    $mapResourceId = $_REQUEST["mapDefinition"];
    $centerPoint = $_REQUEST["centerPoint"];
    $scale = $_REQUEST["scale"];
    $clientWidth = $_REQUEST["imageWidth"];
    $clientHeigth = $_REQUEST["imageHeight"];
    function RemoveBaseLayers(&$map)
    {
        $layerCollection = $map->GetLayers();
        $n = 0;
        $bLayers = array();
        for ($i = 0; $i < $layerCollection->GetCount(); $i++) {
            $layer = $layerCollection->GetItem($i);
            $layerType = $layer->GetLayerType();
            if (MgLayerType::BaseMap == $layerType) {
                $bLayers[$n++] = $layer;