You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
How to configure a layer to define what a buildRequest (action prop, see Identify.jsx) to use a different info format?
From a previous comment, it is possible to change the default:
The simplest way to change the default info format is changing appConfig.js, there is an example for mobile mode, you can do the same for the defaultState:
mapInfo: {infoFormat: 'text/html'}
How can I set it up to be 'text/html' for one layer and 'application/json' for another layer?
One possible solution would be to add a property to the 'layers' in config.json such as 'info_format'.
thanks
The text was updated successfully, but these errors were encountered:
alturium
changed the title
Dynamically setting infoFormat for buildRequest (action).
Dynamically setting infoFormat for buildRequest (action) for different layers
Feb 13, 2017
alturium
changed the title
Dynamically setting infoFormat for buildRequest (action) for different layers
Dynamically or configuring infoFormat for buildRequest (action) for different layers
Feb 13, 2017
Hi,
How to configure a layer to define what a buildRequest (action prop, see Identify.jsx) to use a different info format?
From a previous comment, it is possible to change the default:
How can I set it up to be 'text/html' for one layer and 'application/json' for another layer?
One possible solution would be to add a property to the 'layers' in config.json such as 'info_format'.
thanks
The text was updated successfully, but these errors were encountered: