1

I use the leaflet and the getfeatureInfo function to display the data of a wms layer belonging to the geoserver, I want to customize the display of retrieved table: I use this plugin https://gist.github.com/rclark/6908938.

kboul
  • 13,836
  • 5
  • 42
  • 53
  • As this plugin is seemingly just a gist, you could take it and modify it for your needs, couldn't you? If not, please describe what the problem is, e.g. what you tried so far, what didn't work etc. – Sebastian B. May 26 '20 at 11:24
  • I want the table to be vertical like in this image https://sspinnovations.com/wp-content/uploads/2016/12/Resize-beer-and-popups.png. but I don't know how to do it – Barhoumi Arij May 26 '20 at 11:41

1 Answers1

2

If you have access to the GeoServer instance you can control the style and layout of the response to a getFeatureInfo request using templates.

If you only have access to the endpoint then try requesting the response in application/json format and then use JavaScript to display the information in whatever format you like.

Ian Turton
  • 10,018
  • 1
  • 28
  • 47