Implement FIDs for Mapbox vector tiles

Description

Currently the output for a Mapbox vector tile lacks the feature id defined in the spec.

FIDs are mandatory for some methods in Mapbox GL JS (like setFeatureState) so vector tiles from GeoServer are not really usable with Mapbox GL JS without FIDs.

To fix this first we should fix the underlying library (java-vector-tile) because it doesn't provide a way to specify the FID in the encoder.

There's already an open PR fixing this in java-vector-tile. Once (if) this change is accepted, we can use it in the Mapbox tile builder; there's a forked repo containing these changes as well. We would need to add some unit tests, update some versions and merge it with a new PR.

Environment

None

Status

Assignee

Unassigned

Reporter

Víctor González

Triage

None

Fix versions

Affects versions

Components

Priority

Medium
Configure