1

GeoServer has the capability of creating vector tiles in formats such as GeoJSON, TopoJSON or PBF from different kinds of data stores. In a test application, there is a layer group of an area which has been published in PBF format as vector tiles. The problem is I want the map to include some layers in a particular zoom level but the vector tiles contain these layers in higher zoom level which are not required. I know in GWC home page there are options to determine start and end zoom level of seeding cache tiles, but can we drop some layers in A to B zoom levels of produced PBF files?

3

Associate them with a SLD style that disables rendendering at the desired scale denominators. In GeoServer the PBF contents are driven by the default style, both in terms of scale dependencies and filters (but of course, not symbolizers). This is done so that you can get a similar output from server side rendering (PNG Output) and client side rendering (PBF + client side style).

  • As styling of PBF files happens in the client side, using SLD min and max scale denominator effects the outputs? – Harry Wilson Feb 25 at 13:56
  • Yes, the server SLD is your filtering mechanism. – Andrea Aime Feb 26 at 13:55

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.