Publish Web Layer WMS with Get Feature Info answer in HTML

139
2
2 weeks ago
Labels (1)
NicoRohrbach2
New Contributor

Hi There

I have published data as Web Layer to Enterprise. I added publication as WMS.

The resulting WMS has a GetFeature Info property. The answer from the GetFeature Info is in plaintext

...%3A443%2Fhostingserver%2Fservices%2FMap4%2FMapServer%2FWMSServer%3FSERVICE%3DWMS%26VERSION%3D1.3.0%26REQUEST%3DGetFeatureInfo%26FORMAT%3Dimage%252Fpng%26TRANSPARENT%3Dtrue%26QUERY_LAYERS%3D0%26LAYERS%3D0%26FEATURE_COUNT%3D10%26INFO_FORMAT%3Dtext%252Fplain%26LANG%3Den%26I%3D50%26J%3D50%26CRS%3DEPSG%253A4326%26STYLES%3D%26WIDTH%3D101%26HEIGHT%3D101%26BBOX%3D46.93483778489869%252C6.97971737972145%252C46.952959328602205%252C6.997838923424961

Where can I set the GetFeature Info as HTML?

Best Regards

Nico

0 Kudos
2 Replies
George_Thompson
Esri Frequent Contributor

Looks like you need to add: info_format=text/html to the end of the request. See the doc below.

https://enterprise.arcgis.com/en/server/latest/publish-services/windows/customizing-a-wms-getfeature...

 

--- George T.
0 Kudos
NicoRohrbach2
New Contributor

Hi George

Thanks for your quick reply.  Is there a possibility to set this parameter when publishing a WMS? Or is it in the Server configuration?

I want to add the WMS to a map viewer with GetFeature Info as HTML and not plain text. The user should get a HTML table result when clicking a feature in the map. 

0 Kudos