Skip to content
This repository has been archived by the owner on May 21, 2024. It is now read-only.

wmobley/texas_damageplain

Repository files navigation

TDIS Damage Plain Downloader

This is the frontend repository for the Texas Damage Plain application. This tool is designed to allow users to visualize, search and download images of the Damage Plain.

This is a React-based frontend application, using open layers for the mapping and geoserver to host the WMS and Vector Tiles.

Navigating the repository

This repository uses React Router v5 for client-side routing. The main routes component can be found in src/components/Main.js.

The src directory is split into the following sub-directories:

  • /components - all React components
  • /data - json files for direction to wms and mvts
  • /views - main pages, most edits will be in the Hazards.js

API

There are three primary spatial APIs this application queries to fetch data, a geoserver WMS Layer to visualize the Damage Plain . Mapbox Vector Tiles (MVTs) are used to supply the download locations for each clipped raster. Currently, two boundaries have been generated using Hydrologic Unit Codes (HUC-8 and HUC-12)

MVTs and selections can be editin in the MVT.js file, and the WMS layer is loaded through OLWMT.js.

Running the application

Setup & Installation

If this is your first time running the project, run npm install . to install all of the necessary dependencies.

Starting the application

Run npm start to start the app in the development mode. Open http://localhost:3000 to view it in the browser.

The page will reload if you make edits. You will also see any lint errors in the console.

Builds & Deployment

Creating development & production builds

Development and production builds can be created with npm run build:dev and npm run build:prod respectively.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •