| 178 | ==== Retrieving a Tile ==== |
| 179 | |
| 180 | A more detailed sequence diagram showing the creation and processing of Tiles is shown in Figure A. |
| 181 | ||[[Image(GetTileSequence.png)]]|| |
| 182 | ||Figure A - Get Tile Processing sequence|| |
| 183 | |
| 184 | The TileService renders the tile only after checking the tile cache. If the tile needs to be rendered, first the map cache is checked before the map is reloaded from the library. The map cache contains serialized forms of the maps which can be deserialized as MgMap objects. |
| 185 | When the map is in the cache again the rendering service is called with the map & layer information and the desired screen area to compute the image. This is done with a Renderer Helper object which can be changed by configuration. Finally an image compressor is called in AGGImageIo to create an image according to the selected ImageFormat (currently JPEG,PNG,PNG8,GIF). |
| 186 | |