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

[Identify Tool] GetFeatureInfo request - increase the default value of feature_count #413

Closed
catmorales opened this issue Aug 25, 2021 · 7 comments

Comments

@Gaetanbrl
Copy link
Contributor

Gaetanbrl commented Aug 25, 2021

@catmorales have you try something like that ?

geosolutions-it/MapStore2#4238 (comment)

--> localConfig default state

"mapInfo": {
    "enabled": true, // enabled by default
    "disabledAlwaysOn": false, // if true, disable always on setup
    "configuration": {
      "showEmptyMessageGFI": false // allow or deny the visiibility of message when you have no results from identify request
      "infoFormat": "text/plain" // default infoformat value, other values are "text/html" for text only or "application/json" for properties,
      "maxItems": 50
    }
  }

In the config.json file (dev env) it works :

    "mapInfoConfiguration": {
        "infoFormat": "application/json"
        "maxItems": 200
    },

@catmorales
Copy link
Collaborator Author

@Gaetanbrl Merci je vais essayer dans le config.json.

@Gaetanbrl
Copy link
Contributor

After a test, maxItems inside localConfig default state (as explain above) doesn't work for me....

@catmorales
Copy link
Collaborator Author

catmorales commented Aug 25, 2021

After a test, maxItems inside localConfig default state (as explain above) doesn't work for me..

Same thing for me with the parameter infoFormat . It doesn'nt work in localConfig.json but it works in config.json.
Thank you for feature_count it's ok in config.json !!

@Gaetanbrl
Copy link
Contributor

Same thing for me with the parameter infoFormat

Maybe not catched by MapStore and seems undefined in the store if you just set maxItems inside localConfig.json file.

@tdipisa
Copy link
Collaborator

tdipisa commented Aug 25, 2021

@catmorales @Gaetanbrl

After a test, maxItems inside localConfig default state (as explain above) doesn't work for me....

mapInfo in localConfig establish only the initial state for new created maps. Therefore, setting maxItems there for exsting maps doesn't work because the saved map state (mapInfoConfiguration) is not overridden in that case.

Same thing for me with the parameter infoFormat . It doesn'nt work in localConfig.json but it works in config.json.

Yes, in geOrchestra the default map uses config.json for the map configuration (the same for the default map in app context).

We will improve anyway that configuration tier for the identify by centralizing the default config at plugin level in geosolutions-it/MapStore2#5504

@landryb
Copy link
Member

landryb commented Aug 26, 2021

We will improve anyway that configuration tier for the identify by centralizing the default config at plugin level in geosolutions-it/MapStore2#5504

nice, because the existing 'two ways to configure distinct settings' for the identify plugin is a bit confusing :)

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

4 participants