mrc-6200 Select dataset and admin level on test page #8
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This branch adds functionality to the test page to allow selecting dataset from both localhost (if running locally) and mrcdata, so you can eyeball a grout tile dataset to see if it actually works. You can also toggle admin1 or admin2 level.
I've added a simple Vue app, which on mount fetches metadata from both servers, and adds datasets to a select (options are prefixed with 'local' or 'mrcdata'). There are radio buttons to select admin level 1 or 2 - admin levels are available in the metadata but for now we're assuming that
admin1
andadmin2
are defined.admin0
is still used to draw country boundaries.This means that this page should now be useful both for development testing of the grout server code, and also to check that datasets are working. So it's probably going to be useful to add it to the grout deploy itself so it can be used for testing without needing to have the grout repo checked out. I'll do that in a separate grout deploy ticket.
Just open the page in the browser. You should see that mrcdata now has "arbomap" and "gadm41" datasets.
If this page gets much more complicated, we should probably convert it into a built Typescript app, but for now it's just plain old HTML + js...