A web application for viewing and querying electrofishing data.
Staging: https://electrofishing-query.dev.utah.gov
Production: https://electrofishing-query.ugrc.utah.gov
- Update
Electrofishing/MapService
:- Check "Allow per request modification of layer order and symbology" and register the SDE database as a dynamic workspace with the an ID of "ElectrofishingQuery".
- Update Parameters -> Max Number of Records Returns from 1000 to 5000.
- Publish
scripts/Download.tbx/Download
asElectrofishing/Download
:- asynchronous
- message level: "info"
- max time a client can use the service:
300
- Copy
scripts/swq_secrets.py
,scripts/__init__.py
,scripts/download.py
, &scripts/sql/*
toC:\arcgisserver\directories\arcgissystem\arcgisinput\Electrofishing\Download.GPServer\extracted\p20\scripts
- Update
swq_secrets.py
to reflect the environment that you have published to. - Download and install Microsoft ODBC Driver 17 for SQL Server.
- Install the nodejs packages
npm install && cd functions && npm install
- Create function secrets
cd functions && cp .secret .secret.local
- fill in values in
.secret.local
- Copy the ArcGIS Maps SKD for JavaScript assets to the public folder. This needs to be done anytime the arcgis package is updated.
npm run copy:arcgis
- Create
.env.local
files in the project root and the functions folders using the corresponding.env
files as examples. - Start the development server
npm start