Skip to main content

Documentation 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.

Argenmap is a fully static web application — there is no server-side runtime, no database, and no build step. Deploying it means copying the repository files to any directory that your web server can serve over HTTP or HTTPS. This page covers every common scenario: local development with VS Code Live Server or Python, and production deployments on Apache and Nginx.
Argenmap must be served by an HTTP server. If you open index.html directly as a file:// URL (by double-clicking the file), the browser’s CORS policy will block all WMS tile requests and the map will fail to load layers. Always use one of the server options below.

Requirements

  • Any static file web server (Apache, Nginx, lighttpd, VS Code Live Server, Python http.server, etc.)
  • The Argenmap source files on the server’s file system

Step 1 — Get the code

Clone the repository with Git, or download the ZIP archive directly. Clone with Git:
git clone https://github.com/ign-argentina/argenmap.git
cd argenmap
Download as ZIP:
# Download
curl -L -o argenmap.zip https://github.com/ign-argentina/argenmap/archive/master.zip

# Unzip (Linux / macOS)
unzip argenmap.zip
mv argenmap-master argenmap
cd argenmap
Or paste the URL directly into your browser:
https://github.com/ign-argentina/argenmap/archive/master.zip

Step 2 — Copy the configuration files

Argenmap ships with read-only reference configs in src/config/default/. Before editing anything, copy those files into src/config/ — the path the application actually reads at runtime. Linux / macOS:
cp -r src/config/default/* src/config/
Windows (PowerShell):
Copy-Item src\config\default\* src\config\ -Recurse
The two files you will edit are:
FilePurpose
src/config/data.jsonBase maps, WMS/WMTS overlay layers, and layer panel sections
src/config/preferences.jsonMap center, zoom levels, theme colors, toolbar, search bar, and meta tags
The src/config/default/ folder is the shipped reference. Keeping your edits in src/config/ means you can always compare against the defaults and pull upstream updates without overwriting your customizations.

Step 3 — Publish with a web server

Choose the option that matches your environment.
VS Code’s Live Server extension is the fastest way to start developing locally. It serves files over HTTP and reloads the browser automatically when you save a file.Install the extension:
  1. Open VS Code.
  2. Go to the Extensions panel (Ctrl+Shift+X / Cmd+Shift+X).
  3. Search for Live Server by Ritwick Dey and click Install.
Start the server:
  1. Open the argenmap folder in VS Code (File → Open Folder).
  2. In the Explorer panel, right-click index.html.
  3. Select Open with Live Server.
VS Code opens your browser at http://127.0.0.1:5500 (the port may vary). The map loads with the default Argentina base map.
Live Server watches for file changes and refreshes the browser automatically, but because Argenmap reads data.json and preferences.json asynchronously at startup, you may still need to manually reload after config edits to guarantee the new values are picked up.

Step 4 — Verify the deployment

Once the server is running, open the URL in your browser and check:
  1. Base map tiles load — you should see the Argentina base map rendered from IGN’s TMS service at:
    https://wms.ign.gob.ar/geoserver/gwc/service/tms/1.0.0/capabaseargenmap@EPSG%3A3857@png/{z}/{x}/{-y}.png
    
  2. Layer panel appears — the collapsible sidebar on the left lists the sections defined in data.json.
  3. Toolbar is visible — buttons for layers, base map selector, add layers, help, and accessibility appear in the top-left area.
If tiles are missing, open your browser’s developer console (F12) and check the Network tab for blocked requests. The most common cause is serving from a file:// URL instead of HTTP. If the layer panel is empty, confirm that src/config/data.json is present, valid JSON, and readable by the web server process.

Next steps

Now that Argenmap is running, customize it for your use case by editing the two configuration files:
  • Configure data.json — add base maps, WMS/WMTS overlay layers, and define the layer panel structure.

Build docs developers (and LLMs) love