<?xml version="1.0"?>
 <TileMap version="1.0.0">
  <Title>{{layer.title}}</Title>
  <Abstract></Abstract>
  <SRS>{{layer.grid.srs_name}}</SRS>
  <BoundingBox minx="{{layer.bbox[0]}}" miny="{{layer.bbox[1]}}" maxx="{{layer.bbox[2]}}" maxy="{{layer.bbox[3]}}" />
  <Origin x="{{layer.bbox[0]}}" y="{{layer.bbox[1]}}" />
  <TileFormat width="{{layer.grid.tile_size[0]}}" height="{{layer.grid.tile_size[1]}}" mime-type="{{layer.format_mime_type}}" extension="{{layer.format}}" />
  <TileSets profile="{{layer.grid.profile}}">
{{for level, res in layer.grid.tile_sets }}
    <TileSet href="{{service.url}}/{{level}}" units-per-pixel="{{res}}" order="{{level}}" />
{{endfor}}
  </TileSets>
</TileMap>