Enable the Pluggable Tile Cache
To enable the pluggable tile cache in the Map Tiling Service:
-
Use a standard WebDAV protocol tool to access the repository (such as
WebFolders) and copy the configuration file from the repository to a directory
on your local machine.
The Map Tiling Service configuration file is located in the repository's Configuration folder (
http://<server>:<port>/RepositoryService/repository/default/Configuration/MapTilingConfiguration
. - Open the local MapTilingConfiguration file in any text editor.
-
In the Cache section, set enabled to
true.
<Cache enabled="true">
-
Set the diskPath property to the location where your tiles
are stored.
Since this location not only stores your pre-generated tiles, but also stores tiles that are generated by the tiling service, this directory must be writable by the user account that launches the Spectrumâ„¢ Technology Platform.
<Property name="diskPath" value="C:/Program Files/Pitney Bowes/Spectrum/server/modules/spatial/TileCache"/>
-
Optionally modify the tilePathPattern property to define
how tiles are stored in the diskPath directory structure.
The file structure in the cache is define by the three properties
:diskPath/tilePathPattern/tileNamePattern.
You can use the key words (mapName, level, row, column, mimeType) to set the path format.
<Property name="tilePathPattern" value="mapName/level/row"/>
-
Optionally modify the tileNamePattern property to define
how tiles are named in the diskPath directory structure.
The file structure in the cache is define by the three properties
:diskPath/tilePathPattern/tileNamePattern.
You can use the following three tileNamePattern values (row.mimeType, column.mimeType, row-column.mimeType) to set the name format.
<Property name="tileNamePattern" value="column.mimeType
- Upload the modified configuration file back to the same location (and name) in the repository using your WebDAV tool.
The pluggable tile cache is now enabled. You can now use your pre-generated tiles at the location you specified.