Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add the ability for users to interact with 'WMS' vector data layer attributes #134

Closed
wadhwamatic opened this issue Feb 2, 2021 · 4 comments · Fixed by #173
Closed

Add the ability for users to interact with 'WMS' vector data layer attributes #134

wadhwamatic opened this issue Feb 2, 2021 · 4 comments · Fixed by #173
Assignees
Labels
enhancement New feature or request priority:high

Comments

@wadhwamatic
Copy link
Member

Some data layers of the type 'WMS' have underlying vector data (as opposed to the previous WMS layers which were raster). PRISM should allow interaction with vector data in 'WMS' layers. Similar to the way we've used WCS to access GeoTIFFs, the underlying vector data is available through WFS. These layers have data attributes which should be accessible through PRISM's UI.

For example, this WFS request returns a collection of points with multiple data fields. We need to 1) allow the configuration of these layers to specify which attributes should be shown to users and 2) allow a user to click (or hover?) on the layer and see those data attributes in a tooltip.

This relates to integration of ADAM data layers via WFP's GeoNode (PR #132).

@wadhwamatic wadhwamatic added this to the ADAM integration milestone Feb 2, 2021
@wadhwamatic wadhwamatic added the enhancement New feature or request label Feb 2, 2021
@wadhwamatic
Copy link
Member Author

@reed1 - please have a look and propose a solution that we can discuss with @ericboucher

@wadhwamatic wadhwamatic assigned JorgeMartinezG and unassigned reed1 Mar 30, 2021
@wadhwamatic
Copy link
Member Author

@reed1 - please share what you've done on this in a new branch. Thanks!

@reed1
Copy link
Collaborator

reed1 commented Apr 1, 2021

Hi Amit, I put the changes to wmsvector-ridwan branch. Now the point_data layer can have WMS url, but additional attribute is needed which I put as dataFormat (base | wms), all implementation of point_data layer previously is categorized as 'base' format and the url needs to be changed to include date format between brackets to avoid hardcoding params on js. Here's how it looks:

thumbnail_image001

The tooltip will work as normal and the value will be taken from measure attribute on layer.json but since the example points don't intersect with boundary layer, the tooltip will not show. For more customizable popup content and interactivity, it has been implemented on idn_dev branch #137 I can make a separate branch for pull request if needed

@wadhwamatic
Copy link
Member Author

Thanks @reed1 . @JorgeMartinezG also has some thoughts on another way to solve for this. Jorge - please add your thoughts here when you can

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request priority:high
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants