The map ships with four base maps selectable from the layer control — ESRI Satellite, Argenmap (IGN), OpenTopoMap, and OpenStreetMap. They are defined at the top of theDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/Observatorio-GC/Nodos/llms.txt
Use this file to discover all available pages before exploring further.
<body> script block in index.html and registered in the baseMaps object that is passed to L.control.groupedLayers(). Only one base map is active at a time; the one included in the layers array of L.map() is the default shown on initial load.
Pre-configured base maps
Argenmap — Argentina national mapping service
Argenmap is served by the Instituto Geográfico Nacional (IGN) via the WMTS protocol. It requires theleaflet-tilelayer-wmts.js plugin (already loaded in index.html):
index.html
ESRI Satellite — default base map on load
ESRI World Imagery provides high-resolution aerial photography. It is the default base map because it is included in thelayers array passed to L.map():
index.html
OpenTopoMap
OpenTopoMap renders elevation and terrain detail derived from OpenStreetMap and SRTM data:index.html
OpenStreetMap
OpenStreetMap is also defined inindex.html and available for use:
index.html
The baseMaps object and changing the default
ThebaseMaps object maps the label strings shown in the layer control to their corresponding layer variables:
index.html
layers array when L.map() is constructed. Currently ESRI Satellite is the default:
index.html
mapabase_esri with mapabase_argenmap in that array:
index.html
Adding a new tile layer
To introduce a tile provider that is not yet defined, declare the variable before the/* OVERLAYS Y GRUPOS */ section and add it to baseMaps. For example, to add OpenStreetMap to the layer switcher:
index.html
index.html
Changing the initial map view
The map centres on Godoy Cruz at zoom level 13 by default. Adjust thesetView() call to change the starting position or zoom:
index.html
[latitude, longitude] in decimal degrees (WGS 84). Zoom levels range from 1 (world) to 20 (street level); the tile providers used here all support maxZoom: 20.
Argenmap uses the WMTS protocol via the
leaflet-tilelayer-wmts.js plugin (loaded in index.html as scripts/leaflet-tilelayer-wmts.js), which is why it is instantiated with new L.TileLayer.WMTS(...) instead of L.tileLayer(...). The other three providers — ESRI, OpenTopoMap, and OpenStreetMap — use standard slippy-map TMS tile URLs and work with the built-in L.tileLayer() constructor without any plugin.