Creating a tile-backed OL app
In the previous section, you learned how to configure GeoServer for tile caching. In this section, you will learn how to create a tile-backed OpenLayers app using the WMTS tile scheme. First, we'll look at a WMTS example in more detail. We'll examine the CapabilitiesResponse
from our GeoServer endpoint, and finally we'll walk through the frontend code. WMTS is the current best practice for tile caching in GeoServer. You can think of it as the best of WMS and TMS, providing WMS-like syntax and capabilities with the tile grid coordinate performance of TMS. As with other OGC standards, the list of parameters for WMTS is available in the implementation standard document. The tile matrix set is based on pixel size, zoom levels, scale denominators, and bounding boxes. Essentially, more tiles will need to be generated at larger scales. You've really already seen this with the gridset example in the previous section.
You can see a tiled layer preview in the following...