Skip to content

agrc/wri

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

259 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

wri

The spatial mapping component to the Watershed Restoration Initiative

Production: wri.utah.gov

Staging: wri-stage.at.utah.gov

Development

Setup

  1. Duplicate .env.example as .env.local in the root directory and fill in the required values
  2. See functions/README.md for instructions on setting up the Firebase Functions

Publishing Services to ArcGIS Server

Export Web Map

This is required for the export to PDF functionality. We need our own service to support custom layouts. Follow the instructions in Esri's documentation to create the service.

  • The Pro project is in /maps
  • The Pro project requires Pro 3.5 or higher (other wise some of the map surround elements, such as the scale bar, will be dropped)
  • Leave the service set to asynchronous

After the service has been published, you can update the layout by exporting the Layout to Layout.pagx (overwrite) in the ArcGIS Server directory (e.g. arcgisserver\directories\arcgissystem\arcgisinput\WRI\ExportWebMap.GPServer\extracted\cd\layouts). No need to republish the service.

Deployment

  • secret DATABASE_INFORMATION needs to be accessible with

    {
      "user": "",
      "password": "",
      "instance": ""
    }

Warning

This project is currently using NPM. If it is switched to PNPM, then we will need to coordinate with DTS to update the deployment pipeline in Jenkins.

Attribution

This project was developed with the assistance of GitHub Copilot.

About

The spatial mapping component to the Watershed Restoration Initiative

Topics

Resources

License

Code of conduct

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors