github.com/PDOK/gokoala@v0.50.6/internal/ogc/tiles/templates/tileMatrixSets.go.json (about)

     1  {{- /*gotype: github.com/PDOK/gokoala/internal/engine.TemplateData*/ -}}
     2  {
     3    {{ if .Config.OgcAPI.Tiles }}
     4    {{$baseUrl := .Config.BaseURL}}
     5    "links": [
     6      {
     7        "rel": "self",
     8        "type": "application/json",
     9        "title": "List of tileMatrixSets implemented by this API in JSON",
    10        "href": "{{ $baseUrl }}/tileMatrixSets?f=json"
    11      },
    12      {
    13        "rel": "alternate",
    14        "type": "text/html",
    15        "title": "List of tileMatrixSets implemented by this API in HTML",
    16        "href": "{{ .Config.BaseURL }}/tileMatrixSets?f=html"
    17      }
    18    ],
    19    "tileMatrixSets": [
    20      {{range $index, $type := .Config.OgcAPI.Tiles.SupportedSrs}}
    21        {{ if (eq $type.Srs "EPSG:28992") }}
    22          {
    23            "title": "Amersfoort / RD New scheme for the Netherlands",
    24            "links": [
    25              {
    26                "rel": "self",
    27                "title": "Tile matrix set 'NetherlandsRDNewQuad'",
    28                "href": "{{ $baseUrl }}/tileMatrixSets/NetherlandsRDNewQuad"
    29              }
    30            ],
    31            "id": "NetherlandsRDNewQuad"
    32          }
    33        {{end}}
    34        {{ if (eq $type.Srs "EPSG:3035") }}
    35          {{if $index}},{{end}}
    36          {
    37            "title": "Lambert Azimuthal Equal Area ETRS89 for Europe",
    38            "links": [
    39              {
    40                "rel": "self",
    41                "title": "Tile matrix set 'EuropeanETRS89_LAEAQuad'",
    42                "href": "{{ $baseUrl }}/tileMatrixSets/EuropeanETRS89_LAEAQuad"
    43              }
    44            ],
    45            "id": "EuropeanETRS89_LAEAQuad"
    46          }
    47        {{end}}
    48        {{ if (eq $type.Srs "EPSG:3857") }}
    49          {{if $index}},{{end}}
    50          {
    51            "title": "Google Maps Compatible for the World",
    52            "links": [
    53              {
    54                "rel": "self",
    55                "title": "Tile matrix set 'WebMercatorQuad'",
    56                "href": "{{ $baseUrl }}/tileMatrixSets/WebMercatorQuad"
    57              }
    58            ],
    59            "id": "WebMercatorQuad"
    60          }
    61        {{end}}
    62      {{end}}
    63    ]
    64    {{end}}
    65  }