A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://docs.mapbox.com/help/getting-started/mapbox-data/ below:

Add your data | Help

This guide focuses on the process of taking geographic data that already exists and transforming it into a format that can be used on a web or mobile map. This could be data that you downloaded from an open data portal, data that you drew in a GIS application, aerial imagery taken by a drone, or something else.

How do I add my data to a map?​

Below are four options to add your custom data to a map. If your data has to be hosted externally, skip to Option 4.

Option 1: Upload data with Mapbox Studio​

Best for styling your data on a map using a no-code style editor and to quickly publish map changes to your live app with minimal changes to client-side code.

This option converts your source data into a tileset that is hosted on the Mapbox platform. Tilesets are a styleable format optimized for high-performant rendering across all platforms.

Supported formats: MBTiles, KML, GPX, GeoJSON, Shapefile (zipped), CSV file, GeoTIFF

Limitations: 300 MB filesize limit.

Option 2: Use the Mapbox Tiling Service (MTS)​

Best for jobs of any size and update frequency where you want more control over how your source data is transformed and tiled. MTS is also a good option if you want to programmatically create tilesets.

Supported formats: Line-delimited GeoJSON, GeoJSON (Tilesets CLI). Note that there are several publicly available tools (like mapshaper) that convert formats like Shapefiles, KML, and CSV to GeoJSON.

Limitations: Each uploaded file must be below 20 GB. The maximum combined total size of all files that compose a tileset source is 50 GB. Read more about MTS restrictions and limits.

Option 3: Use the Uploads API​

If you want to programmatically create a tileset and cannot use MTS (because GeoJSON is not a suitable format for your data or your data is in a raster format), use the Uploads API.

Supported formats: MBTiles, KML, GPX, GeoJSON, Shapefile (zipped), CSV file, GeoTIFF

Get started with the Uploads API.

Option 4: Load your data at runtime​

If your data lives in a third-party data-source, you can load it on the client during runtime using the addSource method. The examples below show how you can load an externally-hosted GeoJSON on web or mobile.

Dive even deeper with these code examples:

How do I style my data?​

You can either style your data at runtime or in Studio.

Style your data dynamically at runtime​

After adding your data to a new layer, style it using one of the available paint properties for that layer type.

The example snippet below show how you can style custom line data on web with Mapbox GL JS:

Style your map in Studio​

Any data uploaded to our platform is accessible from within Studio for quick styling. Changes you publish in Studio will be reflected in your mobile and web applications with no additional code changes needed.

Learn more about styling in Studio.

How much will it cost?​

Tilesets uploaded in Mapbox Studio are free, and do not incur processing or hosting charges. Tilesets uploaded using the Mapbox Tiling Service (MTS) or the Uploads API are billed by tileset hosting and tileset processing.

Additional Developer Resources


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4