Argenmap separates its built-in assets from your customizations. Everything underDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/ign-argentina/argenmap/llms.txt
Use this file to discover all available pages before exploring further.
src/styles/ ships with the application and should not be edited directly — doing so would be overwritten when you update Argenmap. Instead, place your overrides in src/config/styles/, which the application checks first. Any file found there takes precedence over its equivalent in src/styles/.
File structure
The recommended directory layout insidesrc/config/styles/ is:
CSS customization
Place your CSS overrides insrc/config/styles/css/main.css. The application loads this file after its own styles, so any rule you define here wins over the defaults. The original stylesheet lives at src/styles/css/main.css — copy it from there (or from src/config/default/styles/css/main.css) as a reference for available class names and custom properties.
Example: overriding header and panel colors
The followingmain.css targets the same structural elements controlled by the theme block in preferences.json, but with full CSS flexibility:
For simple color changes, prefer editing the
theme block in preferences.json — it is faster and does not require knowing CSS class names. Use main.css when you need changes beyond color: fonts, spacing, borders, shadows, responsive breakpoints, etc.Custom logo
The logo displayed in the header is configured entirely throughpreferences.json. Point logo.src and logo.srcLogoMini to image files you have placed in src/config/styles/images/:
| Field | Recommendation |
|---|---|
src | Full-width logo for desktop; PNG or WebP with transparent background recommended. |
srcLogoMini | Compact logo for mobile/portrait viewports; keep it under 128 px wide. |
height / width | Set explicit values to prevent layout shift during load. |
style | Use filter: drop-shadow(…) to add depth against dark header backgrounds. |
link | Typically your organization’s homepage. |
src/config/styles/images/ and referenced with that same path in preferences.json.
Legend images
Argenmap automatically looks for legend images insrc/config/styles/images/legends/ using the WMS layer name as the filename. If a matching file is found, it is shown as the layer’s legend or preview image in the layers panel.
Image filenames are case-sensitive and must match the WMS
Name element from the capabilities document exactly. A layer named area_protegida_070115 requires a file named area_protegida_070115.png (or .svg / .jpg) — not Area_Protegida_070115.png or any other variation.Supported formats
| Extension | Notes |
|---|---|
.png | Best for icons and graphics with transparency. |
.svg | Scalable — ideal for single-color icons and simple diagrams. |
.jpg / .jpeg | Best for photographic previews; no transparency support. |
Naming examples
| WMS layer name | Expected legend file |
|---|---|
argenmap | legends/argenmap.jpg |
area_protegida_070115 | legends/area_protegida_070115.png |
provincia_FA003 | legends/provincia_FA003.svg |
Centro | legends/Centro.png |
data.json via the legend field, so their filenames just need to match what you write there. Overlay-layer legend images, however, are discovered automatically by name — no configuration required.
Theme colors via preferences.json
As an alternative to CSS overrides, you can change the most visible interface colors by editing thetheme block in preferences.json. No knowledge of CSS class names is needed — Argenmap reads these values at startup and injects them directly into the UI.
The full theme block from src/config/default/preferences.json:
| Field | Affects |
|---|---|
headerBackground | Top bar background |
menuBackground | Layers panel background |
bodyBackground | Map body background (visible before tiles load) |
activeLayer | Highlight on enabled layer buttons |
iconBar | Toolbar icon color |
btnColor | Button text and icon color |
textLegendMenu | Legend panel text color |
textMenu | General layers panel text color |
textLegendMenuStyle and textMenuStyle for additional inline CSS on those text elements.
Applying changes
Create or edit your override file
Add or modify a file inside
src/config/styles/. For CSS changes edit src/config/styles/css/main.css; for logo changes place your image in src/config/styles/images/ and update preferences.json.Validate JSON if you edited preferences.json
Run your
preferences.json through a JSON linter to catch any syntax errors before reloading.