Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dynamically or configuring infoFormat for buildRequest (action) for different layers #1449

Closed
alturium opened this issue Feb 13, 2017 · 1 comment

Comments

@alturium
Copy link

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:

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

@alturium alturium changed the title Dynamically setting infoFormat for buildRequest (action). Dynamically setting infoFormat for buildRequest (action) for different layers Feb 13, 2017
@alturium 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
@mbarto
Copy link
Contributor

mbarto commented Feb 15, 2017

Please, use the mailing list for questions

@mbarto mbarto closed this as completed Feb 15, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants