1

Is there a way to fetch Layer Group with WMTS service? I fetch all layers as WMTS but when it comes to layer group, GeoServer throws 400 Bad request. Here's my wmts uri for a single layer;

var data = [this.mapViewConfig.geoserverURL +
      '/gwc/service/wmts?REQUEST=GetTile&SERVICE=WMTS&VERSION=1.0.0&LAYER=workspace:s-layer&STYLE=&TILEMATRIX=EPSG:900913:{z}&TILEMATRIXSET=EPSG:900913&FORMAT=application/vnd.mapbox-vector-tile&TILECOL=0{x}&TILEROW={y}']

And this is what I tried for requesting group layer;

var data = [this.mapViewConfig.geoserverURL +
      '/gwc/service/wmts?REQUEST=GetTile&SERVICE=WMTS&VERSION=1.0.0&LAYER=workspace:layergroup&STYLE=&TILEMATRIX=EPSG:900913:{z}&TILEMATRIXSET=EPSG:900913&FORMAT=application/vnd.mapbox-vector-tile&TILECOL=0{x}&TILEROW={y}']

I added 'layergroup' after workspace: but it returns 400 Bad Request.

Or how can I fetch layer group from GeoServer?

4
  • What is not working?
    – Ian Turton
    Nov 25 at 13:12
  • I edited the question
    – Burak
    Nov 25 at 13:39
  • is your layergroup in the workspace?
    – Ian Turton
    Nov 26 at 10:13
  • Yes, it is in the workspace @IanTurton
    – Burak
    Nov 27 at 6:36

Your Answer

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

Browse other questions tagged or ask your own question.