GeoJSON vs Vector Tiles
GeoJSON sends complete feature objects directly, while vector tiles partition and simplify vector data by location and zoom for scalable web-map delivery.
Explain when direct GeoJSON is simpler, when vector tiles become more scalable, and what semantic trade-offs tiling introduces.
GeoJSON vs Vector Tiles
GeoJSON sends geographic features directly as JSON, whereas vector tiles partition vector data into spatial tiles, usually across several zoom levels, so a browser receives only the data needed for the current map view.
GeoJSON is often the simpler choice for small or moderate layers. Vector tiles become attractive when the map needs to serve much larger datasets, many users, or multiscale detail efficiently.
The important difference is not only file size. It is delivery architecture.
GeoJSON is straightforward
A GeoJSON FeatureCollection can contain geometry and attributes in one readable document, a simplicity that is valuable for:
API responses;
small thematic overlays;
browser-side filtering and editing;
debugging;
one-off maps;
workflows where the client needs the complete feature objects.
The browser can load the file, parse it, and give it directly to many mapping libraries.
The browser pays for the whole payload
That simplicity becomes expensive when a GeoJSON file grows, because a browser may need to:
download the entire text payload;
decompress it if HTTP compression is used;
parse JSON;
allocate geometry and properties in memory;
build spatial/rendering structures;
style and draw features.
Even if the user is looking at one city, a national GeoJSON may force the browser to process every feature.
Why Large GeoJSON Files Make Web Maps Slow examines those costs directly.
Vector tiles send the current spatial subset
A vector tileset divides the dataset by tile and zoom.
When the user views a city, the client requests the tiles that cover that viewport. At low zoom, those tiles can contain simplified or filtered representations appropriate to a broad overview, while more detailed features can appear at high zoom.
This avoids asking every browser to reconstruct the entire dataset before displaying one small part of it.
Tiling changes the representation
Vector tiles are not just GeoJSON files cut into squares.
Generation often includes:
clipping geometry at tile boundaries;
quantising coordinates to tile-local integer space;
simplifying geometry by zoom;
dropping unnecessary attributes;
aggregating points or small features;
filtering features that are not useful at a given scale.
Those changes are why vector tiles perform well, but also why they should normally be treated as a publication representation, not as the authoritative source dataset.
Vector tiles preserve styling flexibility
Unlike raster tiles, vector tiles leave feature geometry and selected attributes available to the renderer.
A client can change colours, line widths, labels, and visibility according to zoom or feature attributes, allowing the same tile source to support several map styles.
That is a major reason vector tiles are common in modern interactive basemaps.
GeoJSON can still win for moderate data
Moving to vector tiles adds infrastructure:
tile generation or a tile server;
zoom-level decisions;
attribute selection;
tile-boundary behaviour;
cache invalidation or archive regeneration;
style configuration.
For a few hundred or a few thousand simple features, that complexity may not be justified, and a smaller GeoJSON layer can be easier to update, inspect, filter, and integrate into the application.
Use evidence rather than a file-size superstition
There is no universal threshold such as “anything above 5 MB must become tiles”.
Performance depends on:
compressed transfer size;
feature count;
vertex count;
property width;
geometry complexity;
style complexity;
labels;
device capability;
frequency of data updates.
Profile the actual bottleneck before redesigning the delivery stack.
References
RFC 7946 — The GeoJSON Format. Defines GeoJSON Features and FeatureCollections.
Mapbox Vector Tile Specification 2.1. Defines a compact tiled vector representation used by many web-mapping systems.
Related content
What Are Map Tiles? — tile architecture
Raster Tiles vs Vector Tiles — tile representation choices
Why Large GeoJSON Files Make Web Maps Slow — performance diagnosis