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

Allow to specify sample layers to be loaded only by using a configuration file #45

Merged
merged 11 commits into from
Apr 24, 2019

Conversation

mthh
Copy link
Member

@mthh mthh commented Mar 25, 2019

Following some discussion by email, this PR now allows to specify the sample layers to be loaded in the UI only by using a configuration file.
It also removes many example layer files which weren't used anymore.

If we merge this, the UI will be feeded only by the sample_layers.json file which will now be an Array of Objects, each of them describing a layer to be added in the interface.
Each of these objects must have a path member (the path to the file on the server) and a name member (it will be used to fetch the display name" in translation files with app_page.sample_layer_box.the_given_name or display directly that name in all languages if there is no match in translation files).
These objects might also have optionally a fields_type member (containing an Array of Objects describing the type of each field to force it's display "as it" when the layer will be opened) and a suggested_projection member (containing an Array of two members to describe how to access that suggested projection).

The order of the layers in the "Sample dataset" dialog will now depend directly on the order of the layers described in this sample_layers.json file.

@mthh
Copy link
Member Author

mthh commented Apr 24, 2019

This also closes #41 (and outdates the few instructions given in #41 (comment)).

@mthh mthh merged commit 79a042c into riatelab:master Apr 24, 2019
@mthh mthh mentioned this pull request Apr 24, 2019
@mir123
Copy link

mir123 commented May 20, 2019

Thank you! Excellent news, just found out now after emerging from the forest.

@mthh mthh deleted the samplelayers branch October 27, 2022 09:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants