<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <p>Hi,</p>
    <p>Here are my configs - not sure if all parameters are really
      needed - but they don't hurt. It is compatible with MapProxy WMTS.</p>
    <p>At the bottom of file
      <a class="moz-txt-link-freetext" href="https://github.com/qgis/qwc2-demo-app/blob/master/themesConfig.json">https://github.com/qgis/qwc2-demo-app/blob/master/themesConfig.json</a>
      you can also find a WMTS configuration.<br>
    </p>
    <p>---------------------------------------<br>
    </p>
    <p>    "backgroundLayers": [<br>
            {<br>
              "name": "zg.orthofoto",<br>
              "title": "Orthofoto",<br>
              "attribution": "Kanton Zug & Swisstopo",<br>
              "attributionUrl": <a class="moz-txt-link-rfc2396E" href="https://www.swisstopo.ch/">"https://www.swisstopo.ch/"</a>,<br>
              "type": "wmts",<br>
              "url":
<a class="moz-txt-link-rfc2396E" href="https://services.geo.zg.ch/tc/wmts/1.0.0/zg.orthofoto/default/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}.png">"https://services.geo.zg.ch/tc/wmts/1.0.0/zg.orthofoto/default/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}.png"</a>,<br>
              "tileMatrixSet": "zg",<br>
              "tileMatrixPrefix": "",<br>
              "thumbnail": "Orthofotos.jpg",<br>
              "projection": "EPSG:2056",<br>
              "resolutions":
[26.45833332,19.84374999,13.22916666,10.583333328,7.937499996,6.61458333,5.291666664,3.968749998,3.307291665,2.6458333322,1.9843749999,1.3229166666,0.7937499996,0.6614583333,0.5291666667,0.3968749998,0.2645833333,0.1984374999,0.1322916667,0.0793749999,0.0661458333,0.0529166666,0.0396874999,0.0264583333,0.0132291667],<br>
              "originX": 2670000.0,<br>
              "originY": 1235000.0,<br>
              "tileSize": [512,512]<br>
            },<br>
            {<br>
              "name": "zg.grundbuchplan-grau",<br>
              "title": "Grundbuchplan",<br>
              "type": "wmts",<br>
              "url":
<a class="moz-txt-link-rfc2396E" href="https://services.geo.zg.ch/tc/wmts/1.0.0/zg.grundbuchplan-grau/default/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}.png">"https://services.geo.zg.ch/tc/wmts/1.0.0/zg.grundbuchplan-grau/default/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}.png"</a>,<br>
              "tileMatrixSet": "zg",<br>
              "tileMatrixPrefix": "",<br>
              "thumbnail": "GrundbuchplanSW.png",<br>
              "projection": "EPSG:2056",<br>
              "resolutions":
[26.45833332,19.84374999,13.22916666,10.583333328,7.937499996,6.61458333,5.291666664,3.968749998,3.307291665,2.6458333322,1.9843749999,1.3229166666,0.7937499996,0.6614583333,0.5291666667,0.3968749998,0.2645833333,0.1984374999,0.1322916667,0.0793749999,0.0661458333,0.0529166666,0.0396874999,0.0264583333,0.0132291667],<br>
              "originX": 2670000.0,<br>
              "originY": 1235000.0,<br>
              "tileSize": [512,512]<br>
            },<br>
            {<br>
              "name": "zg.basisplan-grau",<br>
              "title": "Basisplan Graustufen",<br>
              "type": "wmts",<br>
              "url":
<a class="moz-txt-link-rfc2396E" href="https://services.geo.zg.ch/tc/wmts/1.0.0/zg.basisplan-grau/default/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}.png">"https://services.geo.zg.ch/tc/wmts/1.0.0/zg.basisplan-grau/default/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}.png"</a>,<br>
              "tileMatrixSet": "zg",<br>
              "tileMatrixPrefix": "",<br>
              "thumbnail": "BasisplanSW.png",<br>
              "projection": "EPSG:2056",<br>
              "resolutions":
[26.45833332,19.84374999,13.22916666,10.583333328,7.937499996,6.61458333,5.291666664,3.968749998,3.307291665,2.6458333322,1.9843749999,1.3229166666,0.7937499996,0.6614583333,0.5291666667,0.3968749998,0.2645833333,0.1984374999,0.1322916667,0.0793749999,0.0661458333,0.0529166666,0.0396874999,0.0264583333,0.0132291667],<br>
              "originX": 2670000.0,<br>
              "originY": 1235000.0,<br>
              "tileSize": [512,512]<br>
            }<br>
          ]<br>
        }</p>
    <p>----------------------------------------<br>
    </p>
    Hope it helps and greetings,<br>
    Andreas<br>
    <br>
    <div class="moz-cite-prefix">On 20.04.2017 12:17, Karl Magnus
      Jönsson wrote:<br>
    </div>
    <blockquote
      cite="mid:cb4b50379e514319b84837f5f013cacd@Epost1.kristianstad.se"
      type="cite">
      <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
      <meta name="Generator" content="Microsoft Word 14 (filtered
        medium)">
      <style><!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:"Franklin Gothic Book";
        panose-1:2 11 5 3 2 1 2 2 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";
        mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.E-postmall17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri","sans-serif";
        mso-fareast-language:EN-US;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:70.85pt 70.85pt 70.85pt 70.85pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
      <div class="WordSection1">
        <p class="MsoNormal"><a moz-do-not-send="true"
            name="T_Default_New"><span lang="EN-US">Hi!<o:p></o:p></span></a></p>
        <p class="MsoNormal"><span lang="EN-US">Trying to add a wmts
            from GeoServer in my map. Is there an example of how to
            configure a wmts from GeoServer in themesConfig.json?<o:p></o:p></span></p>
        <p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
        <p class="MsoNormal"><b><span
              style="font-size:10.0pt;font-family:"Franklin Gothic
Book","sans-serif";color:black;mso-fareast-language:SV">Karl-Magnus
              Jönsson</span></b><span
            style="font-size:10.0pt;font-family:"Franklin Gothic
            Book","sans-serif";color:black;mso-fareast-language:SV">
            | Gis-Utvecklare<br>
            Geografisk information<br>
            Miljö- och samhällsbyggnadsförvaltningen<br>
            Kristianstads kommun<br>
            Besöksadress: Västra Storgatan 12<br>
            Postadress: 291 80 Kristianstad<br>
            Telefon: 044-135416 | Mobil: 0733-135416 <o:p></o:p></span></p>
        <p class="MsoNormal"><a moz-do-not-send="true"
            href="karl-magnus.jonsson@kristianstad.se"><span
              style="font-size:10.0pt;font-family:"Franklin Gothic
              Book","sans-serif";mso-fareast-language:SV">karl-magnus.jonsson@kristianstad.se</span></a><span
            style="font-size:10.0pt;font-family:"Franklin Gothic
            Book","sans-serif";color:black;mso-fareast-language:SV"><o:p></o:p></span></p>
        <p class="MsoNormal"><span
            style="font-size:10.0pt;font-family:"Franklin Gothic
            Book","sans-serif";color:black;mso-fareast-language:SV"><a class="moz-txt-link-abbreviated" href="http://www.kristianstad.se">www.kristianstad.se</a><o:p></o:p></span></p>
        <p class="MsoNormal"
          style="margin-bottom:10.0pt;line-height:115%"><span
            style="mso-fareast-language:SV"><o:p> </o:p></span></p>
        <p class="MsoNormal"><o:p> </o:p></p>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
qgis-qwc2 mailing list
<a class="moz-txt-link-abbreviated" href="mailto:qgis-qwc2@lists.osgeo.org">qgis-qwc2@lists.osgeo.org</a>
<a class="moz-txt-link-freetext" href="https://lists.osgeo.org/mailman/listinfo/qgis-qwc2">https://lists.osgeo.org/mailman/listinfo/qgis-qwc2</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>