Simple Leaflet frontend for the Demscore MapServer WMS layer.
- Select dataset (
qog,repdem,v_dem) - Select variable per dataset
- Select year and hex size
- Switch between multiple baselayers
- Overlay dynamic WMS hex layer from MapServer
- Read UI config from
web-backendAPI endpoints - Configure variable polarity (
positive/negative) inconfig/variable_polarity.json(served throughweb-backend)
config/variable_polarity.json is served by web-backend and controls whether higher values map to blue (positive) or red (negative).
defaults.polarity: global fallbackdataset_defaults: fallback per datasetvariable_overrides: explicit per-major-variable settingsrules(optional): regex-based overrides for variable ids
- Webapp config is fetched from split endpoints on
http://127.0.0.1:8091:/api/config/variables/api/config/legend-semantics/api/config/variable-polarity/api/config/variable-metadata/:dataset(lightweight summary, loaded on demand per dataset)/api/config/variable-metadata/:dataset/:variable(full metadata, loaded only when opening Variable Information)
- Map tiles/imagery are still fetched directly from MapServer (
:8088or cached:8089).
http://127.0.0.1:8090
- Toggle cache in repo
.env:DEMSCORE_ENABLE_MAPCACHE=0disables cache (default)DEMSCORE_ENABLE_MAPCACHE=1enables cache
- Start services for local dev:
./scripts/dev_up.sh - Open app in cached mode:
http://127.0.0.1:8090/?cache=1 - Override WMS base manually:
?wmsBase=http://127.0.0.1:8089/?map=/etc/mapserver/mapserver.map