Reusable ESRI table widget with a download button. Multiple tables can be configured by specifying a url parameter (visible here).
Svelte is a new way to build web applications. It's a compiler that takes your declarative components and converts them into efficient JavaScript that surgically updates the DOM.
Learn more at the Svelte website, or stop by the Discord chatroom.
Run the application in development mode with a local development server.
npm run dev
Build the application for deployment.
Edit base url in package.json "vite build --base=path/to/host/location". See more here: Vite Public Base Path
npm run build
Example url parameters
https://ocgis.com/ocpw/envres/irwm-table/index.html?key=swrp&ver=1
Each table configuration is looked up by providing the "key" url parameter. This key is used in /src/store/config to set relevant configuration. The url parameter ver does nothing, but can be changed to force the ESRI hubsite to create a new cache.