Skip to content
This repository has been archived by the owner on May 28, 2019. It is now read-only.

IRV - When clicking on the map, show zonal information in a more structured way #584

Merged
merged 8 commits into from
May 13, 2016

Conversation

ptormene
Copy link
Member

@ptormene ptormene commented Apr 19, 2016

Partially addressing #583

With this change, instead of just displaying the raw and unsorted data, the application searches the extended names and types of variables by scanning the project definition. Then the variables are presented in a structured way, collected by type.

Tests are green: https://ci.openquake.org/job/zdevel_oq-platform/252/

'name': nameAndType.name,
'value': features[0].properties[field]
};
switch (nameAndType.type) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

'default:' case missing, is it correct ?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All cases should be covered, unless the project definition is wrong. I am adding a default, giving warning in such corner case, through an alert.

@nastasi-oq
Copy link
Member

No tests on CI for this branch ?

@nastasi-oq
Copy link
Member

LGTM

@ptormene ptormene merged commit 2d32e10 into master May 13, 2016
@ptormene ptormene deleted the irv-structured-map-info branch May 13, 2016 08:28
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants