maputnik icon indicating copy to clipboard operation
maputnik copied to clipboard

adding a gwc/service/tms (Geoserver) as a source

Open elanioazul opened this issue 5 years ago • 1 comments

Hi, I am having sort of the same problem: I am able to display succesfully this group of geoserver layers in qgis with no problem, and through the Network activity panel in qgis I see all tiles served: http://localhost:8080/geoserver/gwc/service/tms/1.0.0/burgos-callejero@EPSG%3A900913@pbf/{z}/{x}/{-y}.pbf

On the other hand, when adding it as a Vector (XYZ URL) in maputnik version Editor: 1.7.0; Desktop: 1.0.7, I don´t even get any signal of it in my browser network.

If I do http://localhost:8080/geoserver/gwc/service/tms/1.0.0/burgos-callejero@EPSG%3A900913@pbf/{x}/{-y}/{z}.pbf or http://localhost:8080/geoserver/gwc/service/tms/1.0.0/burgos-callejero@EPSG%3A900913@pbf/{x}/{y}/{z}.pbf nothing happens also.

What I migh be missing? Thx

elanioazul avatar Sep 04 '20 09:09 elanioazul

Hi @elanioazul

Its worth noting that via https://maputnik.github.io/editor/ you'll get a CORS error with http endpoints. However as you say via desktop this should be working and allow non https sources. Some questions to try and diagnose the issue

After adding the source, are you also adding a layer which uses that source? mapbox-gl wont make any network requests until it's used somewhere in the style.

Does geoserver give you a TileJSON endpoint? If so check if it includes the vector_layers extension (see https://github.com/mapbox/tilejson-spec/issues/14) as this might be an easier path. With TileJSON + vector_layers the maputnik inspect, will function as it does with other sources. You can see OS zoomstack's TileJSON here https://s3-eu-west-1.amazonaws.com/tiles.os.uk/v2/data/vector/open-zoomstack/config.json (note the vector_layers in the JSON output)

orangemug avatar Sep 08 '20 14:09 orangemug