GNIP 25 LayerAttribute Model for Customizing Feature Info Results - GeoNode/geonode GitHub Wiki
GNIP 25 – LayerAttribute Model for Customizing Feature Info Results
Overview
Functionality that will allow users to determine which layer attributes are displayed by the Identify tool, along with their sort order and titles.
Proposed by
Matt Bertrand
Assigned to Release
TBD.
State
Implemented in WorldMap. Pull request at https://github.com/opengeo/gxp/pull/83 (GeoNode), https://github.com/GeoNode/geonode-client/pull/4 (geonode-client), https://github.com/opengeo/gxp/pull/84 (gxp)
Motivation
Requested by WorldMap users.
Proposal
- When uploading/slurping layers, save all the layer's feature attributes in a new LayerAttribute model.
https://github.com/cga-harvard/cga-worldmap/blob/master/src/GeoNodePy/geonode/maps/models.py#L1501
https://github.com/cga-harvard/cga-worldmap/blob/master/src/GeoNodePy/geonode/maps/utils.py#L491
- On the layer details edit page, a new form allows the user to customize each attribute's title, display order, and visibility. This will determine how the attribute is displayed when GetFeatureInfo results are returned (depends on additional changes made to geonode-client and gxp).