= $strBLength) { $length = $strBLength; } else { $length = $strALength; } if(0 == $strALength) { return 0; } for($i = 0; $i < $length; $i++) { $strALower = strtolower($strA[$i]); $strBLower = strtolower($strB[$i]); if($strALower == $strBLower) { if($strA[$i] == $strB[$i]) { continue; } if(strtoupper($strA[$i]) == $strB[$i]) { return -1; } if(strtolower($strA[$i]) == $strB[$i]) { return 1; } } else if($strALower < $strBLower) { return -1; } else { return 1; } } if($strALength == $strBLength) { return 0; } if($strALength > $strBLength) { return 1; } if($strALength < $strBLength) { return -1; } } function GetAllMapResources() { try { global $site; global $userInfo; global $mapResources; $mapResourcesXml = ""; // Enumerates all maps in the library $resourceID = new MgResourceIdentifier("Library://"); //connect to the site and get a resource service instance $siteConn = new MgSiteConnection(); $siteConn->Open($userInfo); $resourceService = $siteConn->CreateService(MgServiceType::ResourceService); $byteReader = $resourceService->EnumerateResources($resourceID, -1, "MapDefinition"); $chunk = ""; do { $chunkSize = $byteReader->Read($chunk, 4096); $mapResourcesXml = $mapResourcesXml . $chunk; } while ($chunkSize != 0); $resourceList = new DOMDocument(); $resourceList->loadXML($mapResourcesXml); $resourceIdNodeList = $resourceList->documentElement->getElementsByTagName("ResourceId"); for ($i = 0; $i < $resourceIdNodeList->length; $i++) { $mapResourceID = $resourceIdNodeList->item($i)->nodeValue; $shortMapName = strrchr($mapResourceID, '/'); $shortMapName = substr($shortMapName, 1, strlen($shortMapName) - 15); $mapResources[$i]["FullNames"] = $mapResourceID; $mapResources[$i]["ShortNames"] = $shortMapName; } usort($mapResources, "CompareMapName"); } catch (Exception $exc) { $errorMsg = $exc->getMessage(); } } GetAllMapResources(); $recentSettings->GetRecentSettings(); } catch ( MgException $e ) { CheckForFatalMgException( $e ); $errorMsg = $e->GetExceptionMessage(); } catch ( Exception $e ) { $errorMsg = $e->getMessage(); } ?>
down Settings
"; echo ''; echo ''; echo ''; echo ""; } ?>
Follow the Steps to create a new report or choose from the recent settings.
Step 1

 Select a map resource name.

 Map Resource Name
Step 2
Choose a center point and scale from the map viewer or enter the values manually.
Select a Center Point and Map Scale Close
Center Point
Scale
The performance report results no longer match the settings found in Steps 1 and 2.

Return the settings found in Steps 1 and 2 to the previous settings or run a new performance report.

Recent Settings
OutputRecentSettings($recentSettings->recentSettings); ?>