NautaCharts documentation

Add marine vector charts to your map

Add an authenticated MVT vector source, then use the NautaCharts plugin to install chart layers, sprites, and themes without replacing your base map or operational overlays.

Get an API key

New to marine vector charts? Read the architecture guide or check coverage and sources.

Integration overview

NautaCharts adds chart portrayal to an existing MapLibre or Mapbox map. The host application remains responsible for the map, base style, camera, authenticated vector source, and operational overlays.

Integration MCP

Add the server URL below to a coding assistant that supports Streamable HTTP MCP. Set authentication to None.

MCP server URL
https://nautacharts.com/mcp

Try asking “Add NautaCharts to my MapLibre map using the Europe chart, below my AIS layer.” The get_integration_guide tool supplies MapLibre or Mapbox setup code using direct MVT tiles, plus layer ordering and cleanup instructions. Keep your publishable key in your app configuration.

Prerequisites

  • A browser API key and an organization entitled to Europe, USA, or both.
  • An existing MapLibre GL JS or current Mapbox GL JS map with a loaded style.
  • An optional host layer ID, such as the first AIS or vessel layer, to keep operational overlays above the chart.

Implementation sequence

  1. Create a publishable key in your organization and check that it has access to your chart region.
  2. Use the Verify tile access example to test your key against the MVT endpoint.
  3. Load the NautaCharts plugin once and wait for your map style to load.
  4. Add a vector source using your region’s MVT tile URL.
  5. Call addTo with your source ID and theme. Use beforeId to keep vessel positions, tracks, or other overlays above the charts.
  6. Check that charts and symbols appear. If a layer is missing, check the returned failedLayers list.
  7. If you replace the map style, add the source again and reinstall the chart layers.

Recommended map workers

Use the device’s reported logical processor count, capped at four workers, as a starting point. Configure this in the browser before creating your first map or calling prewarm. If the device count is unavailable, use two workers. Tune against performance on your target devices.

MapLibre workers
const cores = navigator.hardwareConcurrency || 2;
maplibregl.setWorkerCount(Math.min(cores, 4));
Mapbox workers
const cores = navigator.hardwareConcurrency || 2;
mapboxgl.workerCount = Math.min(cores, 4);
Plugin script
<script src="https://nautacharts.com/maritime-vectors-plugin.js"></script>

Place this blocking script before your application bundle, or use the promise-based loader in Plugin API. Do not call addTo until the plugin global exists.

Source zoom levelsEurope supports source tiles through z15; USA through z14. Keep each source at its own maximum and let the camera overzoom above it.
Three themesSwitch between day, dusk, and dark without rebuilding the host map.
Host-owned sourceUse an existing vector source, or pass a publishable key to let the plugin create one.