The map includes two utility controls:Documentation 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.
L.control.polylineMeasure() for measuring distances along drawn polylines, and L.control.browserPrint() for printing or exporting the current map view to paper or PDF. Both are initialised in js/funcionesMapa.js and attach themselves to the default map control area.
Distance Measurement (Leaflet.PolylineMeasure)
The measurement tool is provided byscripts/Leaflet.PolylineMeasure.js and lets users draw a multi-segment line directly on the map to measure cumulative distances.
How to use it:
- Click the ruler icon that appears in the map controls to activate the tool.
- Click on the map to place the first point of the measurement line.
- Continue clicking to add intermediate waypoints — the running distance updates after each click.
- Double-click to finish the polyline and lock in the final measurement.
- Distances are shown in metres for short distances and switch to kilometres automatically.
js/funcionesMapa.js:
js/funcionesMapa.js
Printing the Map (leaflet.browser.print)
The print control is provided byscripts/leaflet.browser.print.js and adds a printer icon to the map. Clicking it opens a print-mode menu. The full configuration from js/funcionesMapa.js is:
js/funcionesMapa.js
Print modes
Two modes are available from the print menu:| Mode | Paper size | Behaviour |
|---|---|---|
| Auto | A4 | Automatically scales and fits the current map viewport to A4 paper. No user interaction required beyond selecting the mode. |
| Custom (Selecionar) | A3 | Displays a draggable rectangle on the map. The user resizes and repositions it to select the exact area to print, then confirms. The selected area is rendered at A3 size. |
The
printLayer option sets the ESRI World Imagery satellite tile layer as the background used when rendering the printed output — regardless of which base map is currently active in the browser. Overlay layers (GeoJSON features, markers, etc.) are still included on top of this background.