Internative Logo

What Is Mapbox? Custom Maps, Location APIs and MapLibre

What Is Mapbox? Custom Maps, Location APIs and MapLibre

A map used to be a picture embedded in a page: you could pan and zoom it, drop a few pins, and that was it. Products built around location need far more than that. A delivery app has to show moving couriers, a real-estate platform has to style the map to match its brand, a logistics dashboard has to draw thousands of points without freezing the browser. Mapbox is a location platform built for that kind of work, with maps you style yourself and APIs for search, routing and navigation around them.

This article explains what Mapbox is, how its vector maps work, where it fits, what the 2020 licence change means, and how it compares with Google Maps and the open-source MapLibre.

What is Mapbox?

Mapbox is a mapping and location platform for developers. It provides map data, hosted vector tiles, map rendering libraries for the web and mobile, and APIs for geocoding, search, directions, travel-time areas and turn-by-turn navigation. You decide what the map looks like and which data sits on top of it; Mapbox supplies the base map, the infrastructure and the SDKs.

The company started in 2010 as a project inside Development Seed, a Washington, D.C. consultancy, to offer customised maps to non-profit organisations. Eric Gundersen and Bonnie Bogle are credited as its founders, and Gundersen led it as CEO until March 2021, when Peter Sirota, formerly of AWS, took over. Its maps appear in apps such as Strava, Instacart, Foursquare and The Weather Channel.

The base map is built from open data and commercial sources. Mapbox Streets, its main street-level tileset, uses Open Data projects such as OpenStreetMap, Microsoft Open Maps and Wikidata, together with Mapbox's own and licensed vendor data.

How Mapbox works

Vector tiles. Mapbox divides the world into tiles, but instead of sending pre-drawn images it sends compressed vector data: road geometries, building outlines, labels, house numbers. The vector tile format is an open specification that Mapbox published under a Creative Commons licence, so other tools can read and produce the same tiles.

Styling on the client. Because tiles are data, not pictures, the map is drawn on the device. Mapbox GL JS in the browser and the Maps SDKs for iOS, Android and Flutter render the tiles with the GPU according to a style document. That is what lets you change colours, fonts, 3D buildings or which layers are visible in code, without new tiles, and it keeps zooming and rotation smooth.

Mapbox Studio and your own data. Studio is the visual editor for styles and for uploading datasets. The Mapbox Tiling Service turns your own data, such as store locations, delivery zones or sensor readings, into tilesets that load as fast as the base map.

Location APIs. Around the map sit web APIs: Geocoding and Search Box for addresses and places; Directions, Matrix, Isochrone and Map Matching for routing and travel times; Static Images for map pictures in emails or reports. The Navigation SDK adds turn-by-turn guidance inside mobile apps.

Key features

  • Fully custom map styles, from colour palette to which roads, labels and buildings appear.
  • Vector rendering with the GPU, which keeps large datasets and smooth camera movement fast in the browser and on phones.
  • SDKs for web, iOS, Android and Flutter, so one map style works across a product's clients.
  • Search, routing and navigation APIs that share the same data as the map.
  • Your own data as tilesets, served from the same infrastructure as the base map.
  • Usage-based pricing with free tiers, billed per map load, request or monthly active user depending on the product.

Where Mapbox is used

  • Delivery, mobility and logistics apps that show vehicles, couriers or routes moving in real time.
  • Real estate and travel platforms where the map is part of the brand and the browsing experience.
  • Operational dashboards for fleets, field teams, IoT sensors or smart-city data.
  • Data journalism and analytics, where large datasets are visualised on interactive maps.
  • In-vehicle and mobile navigation, using the Navigation SDK and the Directions API.

When to choose Mapbox, and when not to

Choose Mapbox when:

  • The map is a core part of the product and has to match your design, not look like every other map.
  • You need to display a lot of data on the map and keep it smooth on mid-range devices.
  • You want maps, search and routing from one provider, with SDKs for the web and mobile.
  • You need to bring your own datasets onto the map without running a tile server.

Look elsewhere when:

  • You need Google's place data, reviews and Street View. Google Maps Platform is built around them.
  • You require a fully open-source rendering stack. Mapbox GL JS has not been open source since version 2.0; MapLibre is the open alternative.
  • Your traffic is very high and the map is a commodity feature. Usage-based billing can then cost more than self-hosting open tiles.
  • The map must work completely offline or inside a closed network. That needs self-hosted tiles, or a self-hosted commercial offering such as Mapbox Atlas, rather than the public API.

Mapbox and its alternatives

OptionLicence modelBest fit
MapboxCommercial, usage-basedCustom-styled maps with search and routing
Google Maps PlatformCommercial, usage-basedPlace data, reviews and Street View
MapLibre GL JS / NativeOpen sourceVector maps without a vendor's SDK licence
Leaflet, OpenLayersOpen sourceSimple or GIS-heavy web maps
Esri ArcGISCommercialEnterprise GIS and spatial analysis

The comparison that matters most is Mapbox versus MapLibre. On 8 December 2020 Mapbox released GL JS 2.0 under a proprietary licence: the library was no longer under the 3-clause BSD licence, upgrading meant accepting Mapbox's terms of service, and every map initialisation became a billable map load. The next day, community members agreed on the MapLibre name and continued the last BSD version, 1.13, as an open fork. MapLibre now maintains MapLibre GL JS for the web, MapLibre Native for mobile and desktop, and tools such as Martin, a tile server that can serve vector tiles from a PostgreSQL database with PostGIS. MapLibre gives you the rendering engine; you still need tiles, which you can host yourself or buy from a provider.

Mapbox versus Google Maps is mostly a question of what the product needs. Google is strongest on places, business listings and Street View; Mapbox is strongest when you control the map's look and draw your own data on it.

How we use Mapbox at Internative

We use Mapbox to build location-based features that need a high degree of customisation, performance and real-time visualisation. Its flexible APIs let us bring geospatial data into complex digital platforms, on the web with frameworks such as Next.js and React, and in mobile apps built with Flutter or React Native.

If you are planning a product where the map is part of the experience, such as live tracking, delivery zones or a location search, our web application development team can help you choose between Mapbox and an open-source stack.

Frequently asked questions

Does Mapbox use OpenStreetMap?

Yes, as one of several sources. Mapbox Streets, the main base map, is built from Open Data projects such as OpenStreetMap, Microsoft Open Maps and Wikidata, combined with Mapbox's own data and licensed vendor data for some regions.

Can I use Mapbox for free?

For small projects, often yes. Mapbox uses pay-as-you-go pricing, and most products have a monthly free tier before billing starts. Beyond that, costs depend on the product: map loads for GL JS, requests for APIs such as Geocoding and Directions, or monthly active users for the mobile SDKs.

How is the Mapbox API priced?

Each product is billed in its own unit: map loads for Mapbox GL JS, requests for APIs such as Directions or Static Images, sessions for search, and monthly active users for the mobile and navigation SDKs. Volume discounts apply as usage grows, and larger contracts and self-hosted options go through Mapbox sales.

Which is better, Google Maps or Mapbox?

Neither is better in general. Google Maps is the stronger choice when you need its place database, reviews and Street View. Mapbox is the stronger choice when the map's design, custom data layers and rendering performance matter more, and when you want search and routing to share the same map data.

Related services

Where this topic becomes an engagement.

Keep reading

The articles that follow this one.