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
    – nmtoken
    May 23, 2020 at 7:26
  • yes it is my geoserver WMS service.
    – hamed
    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).

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.