Closed smalers closed 3 years ago
What is needed to display the features in the data table is a function that takes a point and a layer, and returns the features that are matched so their attributes/properties can be displayed in the data table.
Now that the basic query is done, I recommend the following to close this out for now:
One way or another the user probably needs some visual indicator because otherwise they won't know what to look for. Get the zoom working in some form and we can decide.
The new branch has been merged with the following changes:
This will be added to documentation later, but all that should be done to install after a Git pull is:
Authenticate to GitHub Packages/npm by logging in to the GitHub Packages registry. Do this in the same
folder that npm install
will be run by using the command
npm login --registry=https://npm.pkg.github.com --scope=OWNER
replacing OWNER with the owner of the repository - OpenWaterFoundation in this case. Three prompts will display:
Then run npm install
and there should be no authentication issues.
I had no luck following these instructions. See issue #371 comment.
I added a point layer for SNOTEL stations to the Poudre Basin Information. A radio box is shown with only Search layer data. However, the kebab menu also includes Zoom to address . This should be removed since there is no address search.
This small bug has been taken care of, and will be in the upcoming common library version 0.0.1-alpha.11
. This bug was too small to warrant a version increase and publication, but is in the code and ready to go. Closing the issue.
There is a need for some layers to use GeoCoding to look up features. For example, for municipal polygons or water provider polygons, it would be nice to allow entering a street address and then selecting or zooming to a polygon of interest. Or, for any feature type, find the list of closest features.
Maybe add a menu item "Find from address" to the layer kebab menu? Or require using the data table display of layer attributes and then use its kebab menu? Then enter an address and use a public geocoding service to look up a lat/long, which can be used to find a containing polygon. I found the following census REST service, which may be useful