Skip to content

GNIP WM6 LayerAttribute model for customizing feature info results

mbertrand edited this page Jan 25, 2012 · 1 revision

GNIP WM6 – 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 description 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).