2026-07-23 02:19:22 +01:00
2026-07-22 07:01:58 +01:00
2026-07-08 10:19:59 +01:00
2026-07-08 10:19:59 +01:00
2026-07-08 10:19:59 +01:00
2026-07-23 02:19:22 +01:00
2026-07-21 03:02:49 +01:00
2026-07-22 08:10:25 +01:00
2026-07-08 10:19:59 +01:00
2026-07-08 10:19:59 +01:00
2026-07-08 10:19:59 +01:00

XPro Map Visualizer

Tiny static WMS viewer for the GeoServer endpoint at https://xpro-viz.jfig.net/geoserver/xpro/wms.

Run locally

Start the included Node server:

npm install
npm start

Then open http://localhost:4173.

Run with Docker

Using Docker Compose:

cp .env.example .env
# Edit .env and set GEOSERVER_PASSWORD.
docker compose up --build

Then open http://localhost:4173.

Build the image:

docker build -t xprov-map-visualizer .

Run the container:

docker run --rm -p 4173:4173 xprov-map-visualizer

Then open http://localhost:4173.

The browser never receives the GeoServer password. Configure it in .env for the backend proxy:

GEOSERVER_USERNAME=admin
GEOSERVER_PASSWORD=change-me

To change the default WMS endpoint or allow additional WMS endpoints through the proxy, edit .env:

WMS_ENDPOINT=https://xpro-viz.jfig.net/geoserver/xpro/wms
ALLOWED_WMS_ENDPOINTS=https://xpro-viz.jfig.net/geoserver/xpro/wms,https://example.com/geoserver/wms

Notes

  • The app does not store the password in the repo, local storage, or the browser.
  • The included server proxies WMS requests so the browser does not run into cross-origin auth issues.
  • The proxy only allows configured WMS endpoints. By default it allows the XPro GeoServer endpoint.
  • It fetches WMS capabilities with backend HTTP Basic Auth and loads all discovered layers on top of OpenStreetMap.
  • The currently published layers discovered during setup were parcelas and predios.
S
Description
XPro WMS map visualizer
Readme
306 KiB
Languages
JavaScript 74.3%
CSS 18.3%
HTML 5.9%
Shell 1.2%
Dockerfile 0.3%