SeaChart Open Platform
Developer Docs · Open Platform

Import charts. Embed Online Chart.

Import charts into SeaChart or embed a live nautical chart on your website.

seachart.app/open/map

What you can build with SeaChart Open Platform

01

Package & distribute custom charts

Bundle bathymetry surveys, harbor plans, satellite imagery or licensed online tile sources into .mbtiles or .sqlitedb files that sailors can import into the SeaChart app.

02

Embed live charts on any website

Display interactive nautical charts with depth contours, seamarks and routes on yacht club sites, cruising guides or blogs using a standard iframe—no API key required.

03

Read-only, script-free validation

The SeaChart app inspects imported databases in read-only mode without executing embedded scripts, and checks tile schema, zoom bounds and licensing metadata.

.mbtiles.sqlitedb

Chart import formats

Find out which MBTiles and SQLiteDB files the SeaChart app can import.

<iframe>URL

Embed Online Chart

Share a view of the SeaChart Online Chart on your website with an iframe.

01

Chart import formats

Find out which MBTiles and SQLiteDB files the SeaChart app can import.

MBTiles

.mbtiles
MBTiles 1.3 Spec
  • Provide metadata(name, value) and tiles(zoom_level, tile_column, tile_row, tile_data) as tables or views. SeaChart files can store data in map and images behind the tiles view.
  • Use Web Mercator tiles. Row numbering defaults to TMS. SeaChart also reads files that explicitly declare scheme=xyz.
  • Use PNG, JPEG or WebP for raster tiles. For vector tiles, use format=pbf and gzip-compressed Mapbox Vector Tiles. Declare the actual layer IDs and fields in the json metadata entry under vector_layers.
  • SeaChart publishing profile calls for name, format, bounds, minzoom and maxzoom. Add center for a suggested opening view and attribution for data credits.

SeaChart depth layer conventions (MVT / format=pbf)

Layer ID Geometry Fields & Types Description & example values
depth_contour LineString depth: Number Depth contours. Uses numeric depth (meters, positive downward, e.g. 5, 10, 50, 100).
depth_sounding Point depth: Number Spot soundings. Uses numeric depth (meters, e.g. 4.2, 12.5); labels render at z10+.
depth_seabed Polygon surface: String Seabed area (fill at z9+, label at z11+). Supply string field surface with any of the supported values (combinable): sand, mud, clay, rock, coral, shells, gravel, pebbles, cobbles, boulder, silt, stone, lava, weed.
reef Polygon — Reef area (optional, fill at z7+). No required attribute fields.
depth_area Polygon depth: Number Depth band polygons (retained for legacy compatibility; new exports may omit). Numeric depth is the shallow bound in meters (e.g. 0, 5, 20).
JSON

Example vector_layers in MBTiles metadata (json)

{
  "vector_layers": [
    { "id": "depth_contour", "fields": { "depth": "Number" } },
    { "id": "depth_sounding", "fields": { "depth": "Number" } },
    { "id": "depth_seabed", "fields": { "surface": "String" } },
    { "id": "reef", "fields": {} }
  ]
}
Note

Note: Vector MBTiles must declare vector_layers inside the metadata table's json key. Field names are case-sensitive (depth as Number, surface as String).

SQLiteDB

.sqlitedb
  • Raster tiles use the tiles(x, y, z, image) schema, with optional settings in the info table.
  • The app supports XYZ and BigPlanet numbering. Ellipsoid tile coordinates are unsupported.
  • Some SQLiteDB files contain an online tile URL. The app checks URL template compatibility and applicable usage restrictions.

SQLiteDB table schema & field values

Table / Column Type Description & expected values
tiles.xINTEGERWeb Mercator tile column (0 to 2^z - 1).
tiles.yINTEGERWeb Mercator tile row (top-down XYZ numbering).
tiles.zINTEGERZoom level. With info.tilenumbering='XYZ', store z directly (0–30). If omitted or 'BigPlanet', store 17 - z (e.g. z=10 is stored as 7).
tiles.sINTEGEROptional compatibility column (typically 0) for OsmAnd / BigPlanet exports.
tiles.imageBLOBRaster tile bytes (PNG / JPEG / WebP), up to 8 MB (8,388,608 bytes) per tile.
info.tilenumberingTEXTTile numbering scheme: 'XYZ' (recommended) or 'BigPlanet' (default when omitted).
info.minzoom / maxzoomINTEGERMin/max zoom levels (0–30). For offline-only files, SeaChart infers these from tiles if omitted.
info.urlTEXTOptional online tile URL template with {z}, {x}, {y} (also accepts {0}/{1}/{2}, {$z}/{$x}/{$y}, and {s}). Local tiles take priority if present.
info.ellipsoidTEXTMust not be '1'; ellipsoid tile coordinates are unsupported.
info.name / attributionTEXTOptional display name and attribution. Databases declaring third-party prohibition are blocked.

SQLiteDB SQL example

SQL

Offline raster chart example (XYZ numbering)

CREATE TABLE tiles (
  x INTEGER NOT NULL,
  y INTEGER NOT NULL,
  z INTEGER NOT NULL,
  s INTEGER DEFAULT 0,
  image BLOB NOT NULL,
  PRIMARY KEY (x, y, z, s)
);

CREATE TABLE info (
  name TEXT,
  tilenumbering TEXT,
  minzoom INTEGER,
  maxzoom INTEGER,
  attribution TEXT
);

INSERT INTO info (name, tilenumbering, minzoom, maxzoom, attribution)
VALUES ('Harbor Survey 2026', 'XYZ', 8, 16, 'Survey Data © Example');

-- Tile at z=10, x=1008, y=624 (PNG/JPEG/WebP bytes)
INSERT INTO tiles (x, y, z, s, image)
VALUES (1008, 624, 10, 0, X'89504E470D0A1A0A...');
SQL

Online tile source example (no pre-cached tiles needed)

CREATE TABLE tiles (
  x INTEGER NOT NULL,
  y INTEGER NOT NULL,
  z INTEGER NOT NULL,
  s INTEGER DEFAULT 0,
  image BLOB,
  PRIMARY KEY (x, y, z, s)
);

CREATE TABLE info (
  name TEXT,
  tilenumbering TEXT,
  minzoom INTEGER,
  maxzoom INTEGER,
  url TEXT,
  attribution TEXT
);

INSERT INTO info (name, tilenumbering, minzoom, maxzoom, url, attribution)
VALUES (
  'Custom Sea Tile Layer',
  'XYZ',
  0,
  18,
  'https://tiles.example.com/chart/{z}/{x}/{y}.png',
  'Tiles © Example'
);

Import in the SeaChart app

Open Layers → Imported charts, choose Import file and select your .mbtiles or .sqlitedb file.

Troubleshooting

If import fails, check the database schema, tile format, zoom range and whether the file contains usable tiles.

02

Embed Online Chart

Share a view of the SeaChart Online Chart on your website with an iframe.

Add a chart to your website

Online chart
  1. Open Online Chart and choose the location, zoom and layers you want to share.
  2. Select “Share / Embed” to preview that view and copy its link or iframe code.
  3. Paste the code into an HTML block on your site. In WordPress, use a Custom HTML block when your site allows iframes. A share link works on platforms that block them.

Embed example

<iframe>
https://seachart.app/open/map?x=174.76&y=-36.83&z=10
HTML

Embed code

<iframe title="SeaChart Online Chart"
  src="https://seachart.app/open/map?x=174.76&amp;y=-36.83&amp;z=10&amp;site_lang=en"
  width="100%" height="480" style="border:0"
  loading="lazy" allow="geolocation" referrerpolicy="strict-origin"></iframe>

Note

The embedded map displays SeaChart copyright, official website link and available map data credits.

Use menu=0 to hide the layer menu and buttons=0 to hide the zoom buttons. You can set both in Share / Embed.