I set up a WMTS in GeoServer-GWC. I generated the tiles with the gridset EPSG:4326.

In my OpenLayers client, I have following configuration

    layers: [
      new ol.layer.Tile({
        source: new ol.source.OSM(),
        opacity: 0.7
      new ol.layer.Tile({
        opacity: 0.7,
        source: new ol.source.WMTS({
          url: 'https://geoserver.***.com.au/geoserver/gwc/service/wmts',
          layer: 'layer',
          matrixSet: 'EPSG:4326',
          format: 'image/png',
          projection: projection,
          tileGrid: new ol.tilegrid.WMTS({
            origin: ol.extent.getTopLeft(projectionExtent),
            resolutions: resolutions,
            matrixIds: matrixIds
          style: 'default',
          wrapX: true

No tiles are displayed in the browser and the requests fails as they look like this:


Notice the TileMatrix parameters. It should be EPSG:4326:5 instead of just 5.

Any clue where I have to configure the prefix?

  • 1
    what is in matrixIds? - I think that is where that comes from
    – Ian Turton
    Apr 5, 2017 at 8:43

1 Answer 1


Edit the way matrixIds are displayed. In the code,

matrixIds[z] = 'EPSG:4326:' + z;

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.