MapTiler Ocean focuses on global bathymetry. You can now have oceans, seas and even landforms with labels, contours with more precise depth, special color ramps in shades of blue and the bathymetry terrain hillshade in your maps. This article will help you to leverage the MapTiler Ocean map style to the hilt!
To use the MapTiler Ocean, you need to set up a MapTiler Cloud account. If you don't have one yet, don't hesitate to sign up for free!
MapTiler Ocean datasets
MapTiler Ocean map style uses various sources of data. The core one is MapTiler Ocean - world gridded bathymetry vector tiles. MapTiler Ocean tiles include detailed bathymetry features such as ocean floor polygons with maximum depth (minimal depth value), contours, landforms or labels.
Additionally, there is the terrain hill shading for both land and ocean, land polygons and selected features from MapTiler Planet (such as rivers or island names) to provide better context information.
Customize the MapTiler Ocean
You can directly use the Ocean map style from MapTiler Cloud or find it at this link. It is listed as a Standard Map in your account's Maps section.
To easily adjust the map colors, use Customize a Copy button that will take you to the Customize interface. In the Quick edits panel, you can change the color scheme and create a completely different map experience in a few clicks!
Advanced editing of colors
Advanced users can adjust the map colors more extensively in the Layers tab. You can change all layers included in the map and make it completely in your desired style. Labels are split into Lake, River, Water, Undersea, Depth, Landform, Glacier contour, Contour and Island layers. Terrain hillshading colors and exaggeration can be adjusted separately for land (Terrain RGB layer) and ocean (Ocean RGB layer). There are also shadow layers highlighting the land polygons that can be changed.
For the ocean floor changing based on the depth values, there are 29 layers of different colors. Thanks to this, bathymetry color ramps can be adjusted to a completely different gradient by changing each of the layers. Either adjust the color or the depth value or both!
The colors go from the lightest blue for a depth of 0m to -50m to the darkest for a depth of -11,000m to -12,000m. We are keeping consistent intervals between the depths.
The Depth labels on contours are also changing based on the ocean floor. With the depth getting lower than -4,000m, the labels are paled out to stand out in the dark waters. The case
expression was used here to differentiate between two colors and two levels of zooming.
You can adjust the expressions prepared by our cartographers or write your own based on the MapLibre GL JS Style specification. Expressions can be written in the JSON editor tab (accessible by Alt+E shortcut).
Adding placenames and more geographical context
By default, the Ocean map doesn't include any labels or borders on the land. You can easily add any geographical context information from MapTiler Planet in Customize. Click on the "Plus" button in the Layer tab and choose adding of a new Layer. Here, you will see all available Data sources which you can pull into your map. In this example, we will use borders and country labels from the MapTiler Planet source. In case you would like to know more technical details, please visit the MapTiler Planet schema page.
As for the borders, these are available from the boundary layer. When asked to specify the layer's data content, please scroll to Filter admin_level dialogue and choose only level 2 (country borders). Click on Continue and provide a unique name to your new border layer before adding it to your map.
Now you can style your borders based on your preference. We are using #466D86
hex code for outline color and width changing based on zoom level.
You can also add country labels using the same workflow. Country labels are available from the place layer of MapTiler Planet. When asked to specify the layer's data content, please scroll to Filter class dialogue and choose only country class. As a Visualization before adding the labels to your map, choose Symbol. This way, you will be able to style the data as text labels.
Now, you can adjust the Fill color for example to the same one as for the borders. Don't forget to add also the Outline color to make your texts easily readable. You can also change the font and size or transform the text into upper case.
Useful links
- MapTiler Ocean map
- How to build an ocean vector bathymetry map with MapTiler
- MapTiler Planet schema page
- MapTiler Ocean schema page
Comments
0 comments
Please sign in to leave a comment.