TheDocumentation 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.
preferences.json file controls everything that is not a layer or basemap source: where the map opens, which colors the interface uses, which plugins are active, how the geocoder behaves, and dozens of other startup and appearance options. The file lives at src/config/preferences.json. If that file does not exist, Argenmap falls back to the defaults in src/config/default/preferences.json.
Changes to
preferences.json take effect only after a full page reload. There is no hot-reload; refresh the browser tab after saving the file.Map viewport
These settings control the initial map position and the zoom range the viewer enforces. They are applied only when the page URL does not already carrylat, lng, or zoom parameters.
Latitude of the map center on first load. Default:
-40 (central Argentina).Longitude of the map center on first load. Default:
-59.Zoom level on first load. Default:
4.Global minimum zoom the user can reach regardless of basemap. Default:
3.Global maximum zoom the user can reach regardless of basemap. Default:
21.UI initialization
Whether the toolbar is visible when the app first loads. Set to
false to start with a clean map view. Default: true.Whether the layers panel is open when the app first loads. Default:
true.Theme colors
Thetheme object lets you override every major interface color without writing CSS. All values are CSS color strings (hex, rgb(), rgba(), or named colors).
Background color of the top header bar. Default:
"#157DB9".Background color of the layers panel / side menu. Default:
"#157DB9".Background color of the main map body area (visible before tiles load). Default:
"#0094d4".Highlight color applied to a layer button when that layer is active on the map. Default:
"#33b560".Color of the icons in the toolbar. Default:
"#4f4f4f".Color of button text and icons. Default:
"#FFFFFF".Color of text inside the legend menu. Default:
"#FFFFFF".Additional inline CSS applied to legend menu text elements. Leave as
"" for no extra styling.Color of general text inside the layers panel. Default:
"#FFFFFF".Additional inline CSS applied to layers panel text elements. Leave as
"" for no extra styling.Logo
Path to the main logo image. Example:
"src/config/styles/images/logo.png". Default points to the Argenmap banner in src/styles/images/.Path to the logo shown on narrow (mobile) viewports. Example:
"src/config/styles/images/logo_mini.png".CSS height of the logo element. Example:
"47px". Leave "" to let CSS determine the height.CSS width of the logo element. Example:
"365px".CSS height of the mobile logo. Leave
"" to use the default.CSS width of the mobile logo. Leave
"" to use the default.Additional inline CSS for the logo image. Example:
"filter: drop-shadow(1px 1px 1px #103847)".Additional inline CSS for the mobile logo image. Example:
"filter: drop-shadow(1px 1px 1px #103847); width: 128px;".Tooltip text shown when the user hovers over the logo. Example:
"Argenmap".URL the logo links to when clicked. Example:
"https://www.ign.gob.ar/".Logo text
ThelogoText object configures a text link that appears alongside the logo in the header. This is useful for displaying an organization name as a clickable link when a text label is preferred over or in addition to an image logo.
Text content displayed as the logo text link. Example:
"Instituto Geográfico Nacional".Tooltip text shown when hovering over the logo text link. Example:
"Ir al sitio del IGN".URL the logo text links to when clicked. Example:
"https://www.ign.gob.ar/". Use "#" to disable the link.References image
Thereferencias object shows or hides a clickable icon in the top-right corner of the map. When clicked, the icon opens a full-size reference/legend image. This is useful for displaying a static map reference sheet alongside the interactive viewer.
Whether to display the references icon. Default:
false.Path to the small icon image shown in the top-right corner. Clicking this icon opens the full reference image. Example:
"src/config/default/styles/images/referencias.png".Path to the full-size reference/legend image that opens when the icon is clicked. Example:
"src/config/styles/images/legends/referencias.png".CSS width of the references icon. Example:
"25px".CSS height of the references icon. Example:
"31px".Metadata
Browser tab title and page title. Example:
"Argenmap".Canonical URL for the deployment. Example:
"https://www.ign.gob.ar/".Path to the browser tab favicon. Example:
"src/styles/images/favicon.ico".Open Graph /
<meta name="title"> value for social sharing previews.<meta name="description"> content. Example: "Visor de mapas desarrollado por el Instituto Geográfico Nacional".Absolute URL to the image shown when the page is shared on social networks. Example:
"/src/styles/images/argenmap.png".Search bar
The search bar lets users search for place names using IGN’s geocoder API. It is displayed as a floating input overlay on the map canvas.Show or hide the layer panel’s built-in search box (the one that filters layers by name within the panel). Default:
true.Show or hide the floating place-name search bar on the map canvas. Default:
true.CSS top offset of the search bar from the top of the map. Default:
"5px".CSS left offset of the search bar. Default:
"40%".Text color when the input is focused. Default:
"#008dc9".Background color of the search input. Default:
"rgba(255, 255, 255, 0.7)".Placeholder text inside the search input. Default:
"Buscar lugar...".Geocoder
Base URL of the geocoding API. Default:
"https://api.ign.gob.ar/buscador/". Do not modify unless you are pointing to a custom geocoder.API path segment used for text searches. Default:
"search".API path segment used to look up a result by ID. Default:
"places".Query parameter name for the search term. Default:
"q".Language code for search results. Default:
"es".Maximum number of autocomplete results returned. Default:
5.Access key for the geocoder service. Leave as
"" for the public IGN endpoint.Plugins
Theexcluded_plugins array disables specific toolbar tools. Add a plugin’s name to the array to remove it from the UI entirely. The following plugin names are recognized:
| Plugin name | Description |
|---|---|
minimap | Mini overview map in the corner |
ZoomHome | Zoom-to-home-extent button |
locate | Geolocate-me button |
Measure | Distance and area measurement tool |
graticula | Graticule (coordinate grid) overlay |
FullScreen | Full-screen toggle |
Draw | Drawing tools (points, lines, polygons) |
ScreenShoter | Screenshot export |
Print | Print layout |
pdfPrinter | PDF export |
LoadLayer | Load layer from URL tool |
geoprocessing | Geoprocessing panel |
ConsultData | Feature info / data query |
Help | Help dialog |
Config | Configuration dialog |
accessibility | Accessibility toolbar |
Table view
When
true, WMS feature-info responses are shown in a table instead of the default popup. Default: false.Maximum number of rows displayed in the table view. Default:
5.Charts
Enables or disables chart rendering for query results that contain numeric data. Default:
true.Layer options
When
true, additional per-layer controls (opacity slider, etc.) are shown in the layers panel. Default: false.Hillshade
The hillshade feature adds an Esri World Hillshade overlay that can be toggled on any basemap listed inaddTo.
Array of basemap
nombre values (from data.json) for which the hillshade toggle button should appear. Example: ["argenmap", "argenmap_gris"].Tile URL template for the hillshade service. Default:
"https://services.arcgisonline.com/arcgis/rest/services/Elevation/World_Hillshade/MapServer/tile/{z}/{y}/{x}.png". Do not modify.Label on the hillshade toggle button. Default:
"Agregar sombra de montaña Esri".Attribution text shown on the map when hillshade is active.
Path to the icon displayed on the hillshade toggle button. Example:
"src/styles/images/mountains.svg".Internal name for the hillshade layer. Default:
"hillshade".Geoprocessing
Enables or disables the geoprocessing panel entirely. Default:
true.Array of geoprocess definitions. Each entry specifies a
name, geoprocess type key, baseUrl (WPS endpoint), layer, namePrefix for output layer names, and optional styles. See the Geoprocessing feature documentation for the full field reference.Analytics
Array of analytics tracking IDs (e.g. Google Analytics measurement IDs). Leave as an empty array
[] if you do not use analytics. Example: ["G-XXXXXXXXXX"].UI strings
Thestrings object lets you override a handful of fixed UI labels without touching source code.
Label on the basemap legend button. Default:
"Ver leyenda del mapa".Prefix text in the basemap zoom info tooltip. Default:
"Zoom mínimo de ".Infix text in the basemap zoom info tooltip. Default:
" y máximo de ".Label on the “delete geometry” option in the context menu. Default:
"Eliminar geometría".Minimal complete example
The snippet below is a minimal but fully functionalpreferences.json derived from src/config/default/preferences.json. It includes every top-level key with representative values: