Skip to content

Feature: ability to toggle on a feature table as another form of navigating data#14

Open
nwisehart wants to merge 4 commits into
masterfrom
table-builder
Open

Feature: ability to toggle on a feature table as another form of navigating data#14
nwisehart wants to merge 4 commits into
masterfrom
table-builder

Conversation

@nwisehart

Copy link
Copy Markdown
Contributor

Done in response to issue #11.

Boolean is used to toggle feature on and off in configurable app. User is able to toggle on the table via button in top-right of map, then navigate via keyboard through features and open pop-ups.

Might need more work on how to effectively read out data through live-region. Potential idea in issue #13.

@nwisehart nwisehart added the enhancement New feature or request label Oct 3, 2018
Comment thread app/main.ts

/* some constants for toggling */
const addTable: boolean = true;
const visTableAttr: Array<[string, string]> = [["Name", 'NAME'], ['Address', 'Address'], ['Elevation (ft)', 'Elevation'], ['Horseback riding', 'HorseTrail'], ['ADA accessibility rating', 'ADAtrail'], ['Dogs allowed', 'TH_LEASH'], ['Biking Allowed', 'BikeTrail'], ['Picnic tables available', 'PICNIC']];

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Since this is going to be a configurable app we can't hardcode values for the table fields. We'll need to get them from the layer instead. By default we can display all the layer's fields (minus the Object id and geometry fields). When we setup the configuration options we can let users define the layer and fields to show.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

@nwisehart I think this issue should be addressed before we merge the PR. I think by default we can show all the fields in the layer minus the ObjectId and geometry fields.

Comment thread app/main.ts
tableToggle.classList.remove("hidden");
view.ui.add({
component: tableToggle,
position: "top-left"

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This is another option we'll want to make configurable.

Comment thread app/main.ts
}
tableNode.appendChild(tableRow);
map.layers.forEach(function(layer){
//how should we seperate table for seperate layers?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Good question. This is something we'll have to figure out. We'll need to come up with a way to display the table for each layer.

Comment thread app/main.ts Outdated
Comment thread index.html Outdated
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants