I use WMS on Geoserver to display MVTs in conjunction with mapboxgl.js v0.45.0. A OSM road layer renders 1:1 on top of the Mapbox base layer, so far so good.

However, I got a warning from the js console:

Vector tile source "geoserver" layer "roads" does not use vector tile spec v2 and therefore may have some rendering errors.

Does anybody know about the protobuf version used in geoserver? I reviewed the source code of the java tile package used and of the plugin in branch v2.13.x. Seems like MVTv1 is used and triggers the javascript warning. Can someone point me to the right location in the java code? Maybe we can upgrade the MVT package so that MVTv2.1 is used.

Here is the source code of the javascript integration in accordance with a GEOS bug report by another user. That works for me. see here on GEOS JIRA

  • I'd love to know about this as well. If you find out anything, I'd be grateful if you'll keep us posted here.
    – mikeo
    Jul 26, 2018 at 0:05

1 Answer 1


It's using no.ecc.vectortile's java-vector-tile.


We use a subclass of the main encoder - we do our own clipping so no need to do it twice.


The entire VT plugin is here; https://github.com/geoserver/geoserver/tree/master/src/extension/vectortiles

Another ticket with some info is here; https://osgeo-org.atlassian.net/browse/GEOS-7920

There are other java VT libraries, and I think some of them do v2. I'm not sure if a newer version of java-vector-tile does that or not.

Best place to ask questions about geoserver is on the geoserver-devel mailing list.

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.