Learn

Raster Tiles vs Vector Tiles

Raster tiles deliver pre-rendered image pixels, while vector tiles deliver encoded feature geometry and attributes that the client styles at render time.

Geobble
introductoryexplainerWeb Maps Tiles & Performance

Compare raster and vector tiles by styling, bandwidth, labels, interaction, generation cost, device rendering, and suitability for different map content.

Raster Tiles vs Vector Tiles

Raster tiles are pre-rendered images, while vector tiles contain encoded geographic features that the client renders using a style.

Both solve the same delivery problem: divide a large multiscale map into spatial pieces that can be requested as needed. They differ in where cartographic rendering happens and how much structure remains available to the client.

Raster tiles arrive already styled

A raster tile might be a PNG, JPEG, WebP, or another image format, with roads, labels, colours, terrain, and symbols already rendered as pixels.

Advantages include:

  • simple client rendering;

  • consistent appearance across clients;

  • support for imagery and complex raster cartography;

  • low client-side styling complexity.

The trade-off is limited flexibility. Changing road colours, hiding one class, or translating labels generally requires another rendered tileset unless the information was separated into multiple raster layers.

Vector tiles keep feature structure

Vector tiles encode points, lines, polygons, and selected attributes within each tile.

A renderer such as MapLibre can style those features on the client, allowing the same vector tiles to support dark and light styles, language changes, interactive filtering, and data-driven colours without regenerating the geometry tiles.

The widely used Mapbox Vector Tile specification encodes tiled vector data with Protocol Buffers and a local coordinate extent inside each tile.

Vector tiles are not full source data

The word vector can make them sound equivalent to the original vector dataset, but they are not necessarily the same.

Tile-generation pipelines can:

  • simplify geometry by zoom;

  • clip features at tile edges;

  • quantise coordinates;

  • omit attributes;

  • aggregate dense points;

  • drop features below a visibility threshold.

These transformations are useful for rendering but can make the tiles unsuitable for precise analysis or editing.

Raster tiles are natural for imagery

Satellite imagery, aerial photography, hillshade, and other inherently raster content fit naturally into raster tiles.

Converting imagery to vector tiles would not preserve its data model. A vector renderer can combine a raster basemap with vector overlays when both are needed.

Vector tiles enable dynamic labels and styles

Because the client knows features and attributes, it can place labels according to the current map state and change styles interactively.

That flexibility adds rendering work, since label collision, line tessellation, expressions, glyphs, icons, and GPU memory all affect performance. Raster tiles instead move most of that work to the tile-generation side.

Bandwidth depends on content, not only format

Vector tiles can be very compact for roads, boundaries, and other sparse line/polygon data, although dense or highly detailed vector geometry can still produce large tiles.

Raster tiles can compress efficiently for photographic content but may require several resolution/scale variants for high-density displays.

There is no universal rule that vector tiles are always smaller.

Choose by what must remain editable at render time

Use raster tiles when:

  • the content is imagery or another raster surface;

  • appearance should be fixed centrally;

  • client simplicity is important;

  • feature-level interaction is not required.

Use vector tiles when:

  • the map needs client-side restyling;

  • labels should adapt dynamically;

  • feature attributes support interaction;

  • one tile source should support several styles;

  • the content is naturally vector and can tolerate multiscale simplification.

Many production maps combine both.

References

  1. Mapbox Vector Tile Specification 2.1. Defines a widely implemented encoding for tiled vector features.

  2. MapLibre Style Specification. Shows how vector/raster sources and layers can be styled by a client renderer.

Related content