Ocean bathymetry 3D

Show a detailed 3D map of the ocean’s seafloor and its bathymetry.

Increase the authenticity of your web mapping applications and data by incorporating ocean relief into your maps. This will provide a greater sense of realism and depth to your visuals.

NPM module setup


npm install --save @maptiler/sdk
import { Map, config } from '@maptiler/sdk';
import '@maptiler/sdk/dist/maptiler-sdk.css';

config.apiKey = 'YOUR_MAPTILER_API_KEY_HERE';
const map = new Map({
  container: 'map', // container id
  style: 'ocean', 
  center: [126.419, 10.2021], // starting position [lng, lat]
  zoom: 9.12, // starting zoom
  pitch: 77,
  bearing: -20,
  maxPitch: 85,
});
map.on('load', function() {
  map.addSource("bathymetry", {
    type: 'raster-dem',
    url: 'https://api.maptiler.com/tiles/ocean-rgb/tiles.json',
  });
  map.setTerrain({ source: 'bathymetry', exaggeration: 1.5 });
});
Display a 3D terrain map

3D terrain map

Tutorials

Create and display 3D terrain maps on web pages.

Elevation profile control

Add elevation profile control

Examples

Show elevation profiles for GeoJSON traces using MapTiler.

Add hillshading

Add hillshading

Examples

Add raster hillshading effect to a MapTiler map.

Was this helpful?