| Quintiq file version 2.0 | 
| #parent: #root | 
| Method ProcessTileResponse (HTTPInterface httpinterface) | 
| { | 
|   #keys: '1[103544.0.740744403]' | 
|   TextBody: | 
|   [* | 
|     // Administrator Mar-12-2012 (created) | 
|     ticks := OS::PrecisionCounter(); | 
|      | 
|     library := this.LibOSM_OSMGISLibrary(); | 
|     utils := library.LibOSM_Utils(); | 
|     gettilescall := library.LibOSM_LibraryCall().astype( LibOSM_GetTilesCall ); | 
|      | 
|     result := library.Result(); | 
|     tilehandle := result.GetHandle( "tile" ); | 
|     imagehandle := result.GetHandle( "image" ); | 
|     resultroot := result.Root(); | 
|      | 
|     // Resolve the object representing the call to OpenStreetMap | 
|     openstreetmapservercall := library.ResolveOSMServerCall( httpinterface.ASyncCallId() ); | 
|     // Resolve the tile in the result and add the image to it | 
|     tile := resultroot.Children( tilehandle ).Element( openstreetmapservercall.ArgumentID() ); | 
|     tile.AddChild( imagehandle, httpinterface.BinaryResult() ); | 
|      | 
|     successfulintermediatecalls := gettilescall.SuccessfulIntermediateCalls(); | 
|     gettilescall.SuccessfulIntermediateCalls( successfulintermediatecalls + 1 ); | 
|      | 
|     this.FollowUpCallToMapServer( gettilescall ); | 
|      | 
|     utils.DebugEndTrace( "MapServer.ProcessTileResponse", ticks ); | 
|   *] | 
| } |