1

I've created a Leaflet map and use GetFeatureInfo to send request to GeoServer. Everything is ok but I want to use Alias field name instead of field name. Indeed I want to replace real field with alias name when GeoServer is creating the return JSON file.

Is there any way to handle this issue?

2
  • 1
    Is it your geoserver WMS service Commented May 23, 2020 at 7:26
  • yes it is my geoserver WMS service. Commented May 23, 2020 at 7:30

1 Answer 1

1

From GeoServer 2.21 there is an option, in "Edit Layer > Feature Type Details", to "Customize attributes" and set field aliases (Name) instead of the physical field name (Source).

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.